-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build-id.sh failed #279
Comments
$ cat test-suite.log
|
I have the same problem. What should I do. I am running as a user on a cluster. |
@zzzqiii can you add set -x to the failing script at the top after the shebang and re-run the test? |
I am sorry I don't understand how to set -x to the failling script at the top.
|
same problem |
Also on redhat? |
This is most likely caused by too old readelf(1) versions not recognising the build id section. OpenBSD for example still ships an old
Building
correctly adds a build id as per
but readelf does not recognise it:
That is a |
I guess we can also grep for |
Can you check? diff --git a/tests/build-id.sh b/tests/build-id.sh
index 45a6c4d..0ac23c7 100755
--- a/tests/build-id.sh
+++ b/tests/build-id.sh
@@ -16,4 +16,5 @@ long_rpath="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
../src/patchelf \
--set-rpath "$long_rpath" "${SCRATCH}/libbuildid.so"
-readelf -n "${SCRATCH}/libbuildid.so" | grep -q "Build ID"
+# older readelf versions do not recognize build id.
+readelf -n "${SCRATCH}/libbuildid.so" | grep -q -E 'Build ID|Unknown note type: \(0x00000003\)' |
This makes Not exactly pretty but it works. Your call. Edit: I can only guess that this fixes it for RHEL as per the original issue. |
I assume this one was also fixed. |
when running
./bootstrap.sh
, it exported:OS
autoreconf version
automake version
gcc version
Update
After installing
autoconf-latest
andlibtool
and updating gcc 4.4.7 to gcc 6.4.0, it maked successfully.However, when making check, it failed.
It is same as #148.
Do you have any suggestion on this issue? Thanks!
The text was updated successfully, but these errors were encountered: