-
-
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
Build fails with USE_SYSTEM_CSL=1 #47987
Comments
I've hit this too while packaging Julia version # Julia's build system still fails to copy/link GCC's libs.
mkdir -p "${S}"/usr/lib || die
local gcc_prefix
if use amd64 ; then
gcc_prefix=x86_64-pc-linux-gnu
elif use x86 ; then
gcc_prefix=x86-pc-linux-gnu
else
die "Unsupported architecture"
fi
ln -s "${EROOT}"/usr/lib/gcc/${gcc_prefix}/*/libstdc++.so.6 \
"${S}"/usr/lib/ || die But that is way too hacky and error prone. |
Here is the full log: build.log |
HMMM... |
We are hitting this bug in Homebrew as well: Homebrew/homebrew-core#120170 |
Can everyone affected by this issue please try out #48342 and see if that fixes anything for them? |
Works for me |
Thanks for fixing. Re-building |
This fixes the build on Linux for Homebrew. |
For me v1.8.5 patched with #48342 [ ... SNIP ... ]
cp: cannot stat '/var/tmp/portage/dev-lang/julia-1.8.5/work/julia-1.8.5/usr/lib/julia/libbtf.so*': No such file or directory
chmod: cannot access '/var/tmp/portage/dev-lang/julia-1.8.5/image/usr/lib64/julia/libbtf.so*': No such file or directory
[ ... SNIP ... ]
MSYS2_ARG_CONV_EXCL='*' /var/tmp/portage/dev-lang/julia-1.8.5/work/julia-1.8.5/usr/tools/stringreplace $(strings -t x - '/var/tmp/portage/dev-lang/julia-1.8.5/image""/usr"/lib64"/libjulia.so.1.8' | grep "julia/libgcc_s.so.1:julia/libopenlibm.so:@julia/libstdc++.so.6:@libjulia-internal.so.1:@libjulia-codegen.so.1:$" | awk '{print $1;}') "julia/libgcc_s.so.1:julia/libopenlibm.so:@julia/libstdc++.so.6:@julia/libjulia-internal.so.1:@julia/libjulia-codegen.so.1:" 255 "/var/tmp/portage/dev-lang/julia-1.8.5/image""/usr"/lib64"/libjulia.so.1.8"
strings: '/var/tmp/portage/dev-lang/julia-1.8.5/image""/usr"/lib64"/libjulia.so.1.8': No such file
Usage:
/var/tmp/portage/dev-lang/julia-1.8.5/work/julia-1.8.5/usr/tools/stringreplace <hex offset> <string to write> <maxlen> <file>
make: *** [Makefile:279: install] Error 255 Build log: |
It looks to me like the critical failure in your log is:
It looks to me like you've got some strange quoting issues going on, but that's probably not the issue. The issue is probably that it's using |
Via
Full config: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-lang/julia/julia-1.8.3-r2.ebuild#n115 |
it is unlikely you want a relative path starting with the |
True, I do not want a path starting with |
Yeah, you should drop the quotes from your makefile overrides; Make is going to insert those, and you'll get those strange quoting issues everywhere. This isn't a problem with our makefile, it's just how Make itself works:
Note how |
After fixing custom Make config the install process passes. |
Another issue related to setting libdir it seems: ERROR: could not load library "/usr/bin/../lib/julia/sys.so"
/usr/bin/../lib/julia/sys.so: cannot open shared object file: No such file or directory |
and when /usr/lib/julia is linked to /usr/lib64/julia, then Julia will fails to precompile many packages (because it fails to find libraries). |
[email protected]:1.8.5 fails to build because it does not find libstdc++ (see JuliaLang/julia#47987).
[email protected]:1.8.5 fails to build because it does not find libstdc++ (see JuliaLang/julia#47987).
Fixed by #48342. |
[email protected]:1.8.5 fails to build because it does not find libstdc++ (see JuliaLang/julia#47987).
Since commit 96592e2 julia build fails with USE_SYSTEM_CSL=1 with error
The
libstdc++.so.6
symlink is inusr/lib/julia
, but the build system expects to find it inusr/lib
The text was updated successfully, but these errors were encountered: