Summary: | llvm-runtimes/compiler-rt-sanitizers-15.0.7 fails to build broken compiler | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mamadou Babaei <info> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | O01eg |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build log |
Description
Mamadou Babaei
2023-01-29 20:18:51 UTC
$ emerge -pqv '=sys-libs/compiler-rt-sanitizers-15.0.7::gentoo' [ebuild NS ] sys-libs/compiler-rt-sanitizers-15.0.7 [14.0.6, 15.0.5] USE="asan cfi clang dfsan gwp-asan hwasan libfuzzer lsan memprof msan orc profile safestack scudo tsan ubsan xray -debug (-shadowcallstack) -test -verify-sig" ABI_X86="32 (64)" I tried to unmerge everything clang/llvm related and remerge again it seems it's not able to prioritize the dependencies and fails. Now, even libcxx and libcxxabi merge: * Package: sys-libs/libcxxabi-15.0.7:0 * Repository: gentoo * Maintainer: llvm@gentoo.org * USE: abi_x86_32 abi_x86_64 amd64 clang elibc_glibc kernel_linux userland_GNU * FEATURES: ccache network-sandbox preserve-libs sandbox userpriv usersandbox * Checking whether python3_11 is suitable ... * >=dev-lang/python-3.11.1:3.11 ... [ ok ] * python_check_deps ... [ ok ] * Using python3.11 to build (via PYTHON_COMPAT iteration) >>> Unpacking source... * Unpacking from llvm-project-15.0.7.src.tar.xz ... [ ok ] >>> Source unpacked in /var/tmp/portage/sys-libs/libcxxabi-15.0.7/work >>> Preparing source in /var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes ... * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes" * Build directory (BUILD_DIR): "/var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build" >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes ... * abi_x86_32.x86: running multilib-minimal_abi_src_configure * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes" * Build directory (BUILD_DIR): "/var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86" cmake -C /var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_COMPILER_TARGET=i686-pc-linux-gnu -DPython3_EXECUTABLE=/usr/bin/python3.11 -DLLVM_ENABLE_RUNTIMES=libcxxabi;libcxx -DLLVM_INCLUDE_TESTS=OFF -DLLVM_LIBDIR_SUFFIX= -DLIBCXXABI_ENABLE_SHARED=ON -DLIBCXXABI_ENABLE_STATIC=no -DLIBCXXABI_INCLUDE_TESTS=no -DLIBCXXABI_USE_COMPILER_RT=ON -DLIBCXXABI_LIBUNWIND_INCLUDES=/usr/include -DLIBCXX_LIBDIR_SUFFIX= -DLIBCXX_ENABLE_SHARED=ON -DLIBCXX_ENABLE_STATIC=OFF -DLIBCXX_CXX_ABI=libcxxabi -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF -DLIBCXX_HAS_MUSL_LIBC=no -DLIBCXX_HAS_GCC_S_LIB=OFF -DLIBCXX_INCLUDE_BENCHMARKS=OFF -DLIBCXX_INCLUDE_TESTS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86/gentoo_toolchain.cmake /var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes loading initial cache file /var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86/gentoo_common_config.cmake -- The C compiler identification is Clang 15.0.7 -- The CXX compiler identification is Clang 15.0.7 -- The ASM compiler identification is Clang with GNU-like command-line -- Found assembler: /usr/lib/ccache/bin/i686-pc-linux-gnu-clang -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/lib/ccache/bin/i686-pc-linux-gnu-clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: /usr/lib/ccache/bin/i686-pc-linux-gnu-clang++ -- Check for working CXX compiler: /usr/lib/ccache/bin/i686-pc-linux-gnu-clang++ - broken CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:63 (message): The C++ compiler "/usr/lib/ccache/bin/i686-pc-linux-gnu-clang++" is not able to compile a simple test program. It fails with the following output: Change Dir: /var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86/CMakeFiles/CMakeScratch/TryCompile-OD0gAs Run Build Command(s):/usr/bin/ninja cmTC_ab90a && [1/2] Building CXX object CMakeFiles/cmTC_ab90a.dir/testCXXCompiler.cxx.o [2/2] Linking CXX executable cmTC_ab90a FAILED: cmTC_ab90a : && /usr/lib/ccache/bin/i686-pc-linux-gnu-clang++ --target=i686-pc-linux-gnu -march=native -O2 -pipe -Wl,-O1 -Wl,--sort-common -Wl,--as-needed CMakeFiles/cmTC_ab90a.dir/testCXXCompiler.cxx.o -o cmTC_ab90a && : ld.lld: error: unable to find library -lc++ clang-15: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "/var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86/CMakeFiles/CMakeOutput.log". See also "/var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86/CMakeFiles/CMakeError.log". * ERROR: sys-libs/libcxxabi-15.0.7::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 136: Called src_configure * environment, line 3779: Called cmake-multilib_src_configure * environment, line 1248: Called multilib-minimal_src_configure * environment, line 2711: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 2961: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2666: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 2664: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 520: Called multilib-minimal_abi_src_configure * environment, line 2705: Called multilib_src_configure * environment, line 3197: Called cmake_src_configure * environment, line 1509: Called die * The specific snippet of code: * "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed"; * * If you need support, post the output of `emerge --info '=sys-libs/libcxxabi-15.0.7::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-libs/libcxxabi-15.0.7::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-libs/libcxxabi-15.0.7/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libcxxabi-15.0.7/temp/environment'. * Working directory: '/var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes_build-abi_x86_32.x86' * S: '/var/tmp/portage/sys-libs/libcxxabi-15.0.7/work/runtimes' I did: USE="-clang" emerge -1 sys-libs/libcxxabi libcxx And, now this succeeds: emerge -1atuv sys-libs/compiler-rt-sanitizers Now, I'm moving to build the rest. I get something like this but instead got error: ``` /usr/lib/llvm/15/bin/x86_64-pc-linux-gnu-clang++ -DHAVE_RPC_XDR_H=0 -I/tmp/portage/sys-libs/compiler-rt-sanitizers-15.0.7/work/compiler-rt/lib/sanitizer_common/.. -DNDEBUG -O2 -march=native -pipe -fomit-frame-pointer -Wall -std=c++14 -Wno-unused-parameter -m32 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -nostdinc++ -Wno-format -fno-rtti -Wframe-larger-than=570 -Wglobal-constructors -MD -MT lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.i386.dir/sanitizer_platform_limits_linux.cpp.o -MF lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.i386.dir/sanitizer_platform_limits_linux.cpp.o.d -o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.i386.dir/sanitizer_platform_limits_linux.cpp.o -c /tmp/portage/sys-libs/compiler-rt-sanitizers-15.0.7/work/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp /tmp/portage/sys-libs/compiler-rt-sanitizers-15.0.7/work/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp:25:10: fatal error: 'stddef.h' file not found #include <stddef.h> ``` |