-
Notifications
You must be signed in to change notification settings - Fork 21
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
Linking hell at /cgnutools' LLVM (1-Stage0/7-LLVM.stage0) #104
Comments
Looks like cgnutools is missing zlib. A possible workaround would possibly copy/link zlib library from llvmtools? |
Well, that what I was going to mention: there's no mention of compiling (nor sym'linking) zlib to cgnutools in the first place at the zlib-ng recipe file. Lines 1 to 14 in 5c47590
Didn't this happen before on your builds? |
Fixed using a symlink. |
I could compile it without problems, but now I just can't get it to pass the tests that were made. ld.lld: /cgnutools/bin/../lib/gcc/x86_64-crossCOPACABANA-linux-musl/14.2.0/../../../../x86_64-crossCOPACABANA-linux-musl/lib/Scrt1.o
ld.lld: /cgnutools/bin/../lib/gcc/x86_64-crossCOPACABANA-linux-musl/14.2.0/../../../../x86_64-crossCOPACABANA-linux-musl/lib/crti.o
ld.lld: /dsk/0v/cgnutools/lib/clang/17/lib/x86_64-crossCOPACABANA-linux-musl/clang_rt.crtbegin.o
ld.lld: /dsk/0v/cgnutools/lib/clang/17/lib/x86_64-crossCOPACABANA-linux-musl/clang_rt.crtend.o
ld.lld: /cgnutools/bin/../lib/gcc/x86_64-crossCOPACABANA-linux-musl/14.2.0/../../../../x86_64-crossCOPACABANA-linux-musl/lib/crtn.o Why does this happen? And how could I force it to use the crt*.o files from /llvmtools? |
Discovered why: I've written erred code for automatizing it and it resulted in the |
As I said in #91, I rewrote the manual for the CMLFS toolchain as Copacabana pkgbuild scripts (just plain shell scripts, nothing to worry about), and, since then, I started getting the same error at the 79%:
Before you ask: yes, I tried using
-Wl,-rpath=/llvmtools/lib
along with the already mentioned-Wl,-rpath=/cgnutools/lib
, tried to use-L/llvmtools/lib
, used-DCMAKE_C_FLAGS
and-DCMAKE_CXX_FLAGS
instead ofexport CFLAGS CXXFLAGS
, even broke some rules and tookCLLVM+="-DZLIB_INCLUDE_DIR=/llvmtools/include "
andCLLVM+="-DZLIB_LIBRARY_RELEASE=/llvmtools/lib/libz.so "
from the second stage. Zero success. Nothing. Zilch.This last build was made per using
-Wl,--verbose
along with-v
, so I could get a more complete log (I would also recommend doing this for new maintainers both at CMLFS and Copacabana --- or glaucus, or Andes, or any other new Linux distribution part of this new movement) and, as per what I understood, it seems likeld
just plain ignores the/llvmtools
path after not encounteringlibm
,libgcc_s
norlibstdc++
.I would like to know how much of this is my fault and if this is just a error from LLVM 17.0.1 on this specific setup.
The text was updated successfully, but these errors were encountered: