[PATCH] D70764: build: reduce CMake handling for zlib
Khem Raj via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 12:51:42 PST 2020
raj.khem added a comment.
this is now in master, and I am seeing build failures in cross-building clang, e.g. when building clang for arm on a x86_64 host. its resorting to finding, libz from buildhost instead of target sysroot ( using --sysroot) and failing in link step. e.g.
FAILED: bin/llvm-config
...
.... -o bin/llvm-config -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMSupport.a /usr/lib/libz.so -lrt -ldl -ltinfo -lm lib/libLLVMDemangle.a
...
aarch64-yoe-linux-musl/aarch64-yoe-linux-musl-ld: /usr/lib/libz.so: error adding symbols: file in wrong format
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
you can see that its adding /usr/lib/libz.so to linker cmdline while cross linking.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70764/new/
https://reviews.llvm.org/D70764
More information about the llvm-commits
mailing list