-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
"ELF load command alignment not page-aligned" issue on ppc64le #33293
Comments
Do you have a huge page kernel? I've seen something similar (less clear error message) on arm when the libraries are not aligned to the larger page size. Fix would be to either use smaller page size (4k) or recompile the library that has the issue. |
I think ppc64le frequently uses huge pages (64k), and so sounds like the problem is with BinaryBuilder (@staticfloat) and might need |
For arm I believe the latest binutils already default to a large enough page size. I had problem before due to binaries that are built with older linker that hasn't been updated. |
I don't think I am using any huge page now. Is there any specific way to check if this is indeed a huge page problem ? root@5b95ee340ef3:/tmp/julia# grep -i huge /proc/meminfo |
I finally succeeded in building julia on ppc64le, but this is only a makeshift. I replaced the *.so files with the page-alignment error with the corresponding OS files under /usr/lib directory, just like below. root@5b95ee340ef3:/tmp/julia# cp /usr/lib/powerpc64le-linux-gnu/libcurl.so.4.5.0 ./usr/lib/libcurl.so.4 root@5b95ee340ef3:/tmp/julia# cp /usr/lib/powerpc64le-linux-gnu/libmbedtls.so.2.8.0 ./usr/lib/libmbedtls.so.2.6.0 root@5b95ee340ef3:/tmp/julia# cp /usr/lib/powerpc64le-linux-gnu/libssh2.so.1.0.1 ./usr/lib/libssh2.so.1.0.1 After that, make works fine. root@5b95ee340ef3:/tmp/julia# make |
Fixed by #33745 |
I am trying to build julia on Ubuntu 18.04 LTS, ppc64le (IBM POWER8), and came across the following error of "ELF load command alignment not page-aligned".
Any comment ?
root@5b95ee340ef3:/tmp/julia# git checkout tags/v1.2.0
root@5b95ee340ef3:/tmp/julia# nohup make -j8 &
...
Serialization ── 1.911660 seconds
Libdl ────────── 0.074467 seconds
Markdown ─────── 1.986755 seconds
error during bootstrap:
LoadError("sysimg.jl", 16, LoadError("/tmp/julia/usr/share/julia/stdlib/v1.2/LibGit2/src/LibGit2.jl", 21, LoadError("/tmp/julia/usr/share/julia/stdlib/v1.2/LibGit2/src/utils.jl", 44, ErrorException("error compiling version: could not load library "libgit2"\nlibcurl.so.4: ELF load command alignment not page-aligned"))))
rec_backtrace at /tmp/julia/src/stackwalk.c:94
record_backtrace at /tmp/julia/src/task.c:219 [inlined]
...
The text was updated successfully, but these errors were encountered: