[PATCH] D47865: [CMake] Filter out -z, defs when building custom libc++
Matt Morehouse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 11 18:44:38 PDT 2018
morehouse added a comment.
In https://reviews.llvm.org/D47865#1129155, @morehouse wrote:
> https://reviews.llvm.org/rCRT334458 should fix the build bot.
Partially fixes. We still get:
Performing C++ SOURCE FILE Test LIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG failed with the following output:
Change Dir: /b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/fuzzer/libcxx_fuzzer_x86_64-bins/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_08c90/fast"
make[3]: Entering directory '/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/fuzzer/libcxx_fuzzer_x86_64-bins/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_08c90.dir/build.make CMakeFiles/cmTC_08c90.dir/build
make[4]: Entering directory '/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/fuzzer/libcxx_fuzzer_x86_64-bins/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_08c90.dir/src.cxx.o
/b/sanitizer-x86_64-linux/build/llvm_build64/bin/clang++ -Wall -Werror -std=c++11 -Wno-unused-parameter -m64 -D_LIBCPP_ABI_VERSION=Fuzzer -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS=1 -fvisibility=hidden -DLIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG -nodefaultlibs -std=c++11 -o CMakeFiles/cmTC_08c90.dir/src.cxx.o -c /b/sanitizer-x8
6_64-linux/build/compiler_rt_build/lib/fuzzer/libcxx_fuzzer_x86_64-bins/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_08c90
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_08c90.dir/link.txt --verbose=1
/b/sanitizer-x86_64-linux/build/llvm_build64/bin/clang++ -Wall -Werror -std=c++11 -Wno-unused-parameter -m64 -D_LIBCPP_ABI_VERSION=Fuzzer -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS=1 -fvisibility=hidden -DLIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG -nodefaultlibs CMakeFiles/cmTC_08c90.dir/src.cxx.o -o cmTC_08c90 -lgcc_s
/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crt1.o:function _start: **error: undefined reference to '__libc_csu_fini**'
/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crt1.o:function _start: error: undefined reference to '__libc_csu_init'
/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crt1.o:function _start: error: undefined reference to '__libc_start_main'
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
Repository:
rL LLVM
https://reviews.llvm.org/D47865
More information about the llvm-commits
mailing list