* Package: sys-devel/clang-9.0.0  * Repository: gentoo  * Maintainer: llvm@gentoo.org  * USE: abi_x86_64 amd64 elibc_glibc kernel_linux llvm_targets_ARM llvm_targets_BPF llvm_targets_RISCV llvm_targets_WebAssembly llvm_targets_X86 prefix python_single_target_python3_6 python_targets_python2_7 python_targets_python3_6 static-analyzer userland_GNU  * FEATURES: network-sandbox nostrip preserve-libs >>> Unpacking source... * Unpacking cfe-9.0.0.src from cfe-9.0.0.src.tar.xz ...  [ ok ] * Unpacking clang-tools-extra-9.0.0.src from clang-tools-extra-9.0.0.src.tar.xz ...  [ ok ] * Unpacking llvm-9.0.0-manpages.tar.bz2 ...  [ ok ] >>> Source unpacked in /srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work >>> Preparing source in /srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang ... * Applying 0001-clang-unittest-Import-LLVMTestingSupport-if-necessar.patch ... patching file unittests/CMakeLists.txt  [ ok ] * Applying 0002-Initialize-all-fields-in-ABIArgInfo.patch ... patching file include/clang/CodeGen/CGFunctionInfo.h  [ ok ] * Applying 0003-Fix-Driver-modules.cpp-test-to-work-when-build-direc.patch ... patching file test/Driver/modules.cpp  [ ok ] >>> Source prepared. * Use /srv/scratch/entrup/gentoo as default sysroot ...  [ ok ] * Use dynamic linker from /srv/scratch/entrup/gentoo ...  [ ok ] * Remove --sysroot call on ld for native toolchain ...  [ ok ] >>> Configuring source in /srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang ... * abi_x86_64.amd64: running multilib-minimal_abi_src_configure >>> Working in BUILD_DIR: "/srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang-abi_x86_64.amd64" cmake -C /srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang-abi_x86_64.amd64/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/srv/scratch/entrup/gentoo/usr -DCMAKE_INSTALL_PREFIX=/srv/scratch/entrup/gentoo/usr/lib/llvm/9 -DCMAKE_INSTALL_MANDIR=/srv/scratch/entrup/gentoo/usr/lib/llvm/9/share/man -DCLANG_RESOURCE_DIR=../../../../lib/clang/9.0.0 -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD=ARM;BPF;RISCV;WebAssembly;X86 -DLLVM_BUILD_TESTS=no -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON -DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=yes -DCLANG_DEFAULT_OPENMP_RUNTIME=libomp -DCLANG_DEFAULT_CXX_STDLIB= -DCLANG_DEFAULT_RTLIB= -DCLANG_ENABLE_ARCMT=yes -DCLANG_ENABLE_STATIC_ANALYZER=yes -DCLANG_INCLUDE_DOCS=no -DCLANG_TOOLS_EXTRA_INCLUDE_DOCS=no -DGCC_INSTALL_PREFIX=/srv/scratch/entrup/gentoo/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang-abi_x86_64.amd64/gentoo_toolchain.cmake /srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang loading initial cache file /srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang-abi_x86_64.amd64/gentoo_common_config.cmake -- The C compiler identification is GNU 9.2.0 -- The CXX compiler identification is GNU 9.2.0 -- Check for working C compiler: /srv/scratch/entrup/gentoo/usr/bin/x86_64-pc-linux-gnu-gcc -- Check for working C compiler: /srv/scratch/entrup/gentoo/usr/bin/x86_64-pc-linux-gnu-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /srv/scratch/entrup/gentoo/usr/bin/x86_64-pc-linux-gnu-g++ -- Check for working CXX compiler: /srv/scratch/entrup/gentoo/usr/bin/x86_64-pc-linux-gnu-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Linker detection: GNU ld -- Performing Test C_SUPPORTS_FPIC -- Performing Test C_SUPPORTS_FPIC - Success -- Performing Test CXX_SUPPORTS_FPIC -- Performing Test CXX_SUPPORTS_FPIC - Success -- Building with -fPIC -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success -- Performing Test C_SUPPORTS_WERROR_DATE_TIME -- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success -- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME -- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success -- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW -- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed -- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW -- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed -- Performing Test CXX_SUPPORTS_CXX11 -- Performing Test CXX_SUPPORTS_CXX11 - Success -- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG -- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success -- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG -- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed -- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG -- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed -- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG -- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Failed -- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG -- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed -- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG -- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Failed -- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG -- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Failed -- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS -- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Failed -- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS -- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Success -- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS -- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS - Success -- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS -- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS - Success -- Performing Test C_SUPPORTS_FDATA_SECTIONS -- Performing Test C_SUPPORTS_FDATA_SECTIONS - Success -- Performing Test CXX_SUPPORTS_FDATA_SECTIONS -- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success CMake Warning (dev) at /usr/lib/llvm-6.0/cmake/HandleLLVMOptions.cmake:752 (option): Policy CMP0077 is not set: option() honors normal variables. Run "cmake --help-policy CMP0077" for policy details. Use the cmake_policy command to set the policy and suppress this warning. For compatibility with older versions of CMake, option is clearing the normal variable 'LLVM_ENABLE_EH'. Call Stack (most recent call first): CMakeLists.txt:115 (include) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /usr/lib/llvm-6.0/cmake/HandleLLVMOptions.cmake:753 (option): Policy CMP0077 is not set: option() honors normal variables. Run "cmake --help-policy CMP0077" for policy details. Use the cmake_policy command to set the policy and suppress this warning. For compatibility with older versions of CMake, option is clearing the normal variable 'LLVM_ENABLE_RTTI'. Call Stack (most recent call first): CMakeLists.txt:115 (include) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /usr/lib/llvm-6.0/cmake/HandleLLVMOptions.cmake:832 (option): Policy CMP0077 is not set: option() honors normal variables. Run "cmake --help-policy CMP0077" for policy details. Use the cmake_policy command to set the policy and suppress this warning. For compatibility with older versions of CMake, option is clearing the normal variable 'LLVM_EXPORT_SYMBOLS_FOR_PLUGINS'. Call Stack (most recent call first): CMakeLists.txt:115 (include) This warning is for project developers. Use -Wno-dev to suppress it. -- Found PythonInterp: /srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/temp/python3.6/bin/python (found version "3.6.9") -- Looking for sys/resource.h -- Looking for sys/resource.h - found -- Clang version: 6.0.0 -- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG -- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed CMake Warning at /usr/lib/llvm-6.0/cmake/AddLLVM.cmake:383 (message): MODULE with SHARED|STATIC doesn't make sense. Call Stack (most recent call first): /usr/lib/llvm-6.0/cmake/AddLLVM.cmake:605 (llvm_add_library) lib/Analysis/plugins/SampleAnalyzer/CMakeLists.txt:6 (add_llvm_library) CMake Warning at /usr/lib/llvm-6.0/cmake/AddLLVM.cmake:383 (message): MODULE with SHARED|STATIC doesn't make sense. Call Stack (most recent call first): /usr/lib/llvm-6.0/cmake/AddLLVM.cmake:605 (llvm_add_library) lib/Analysis/plugins/CheckerDependencyHandling/CMakeLists.txt:6 (add_llvm_library) CMake Warning at /usr/lib/llvm-6.0/cmake/AddLLVM.cmake:383 (message): MODULE with SHARED|STATIC doesn't make sense. Call Stack (most recent call first): /usr/lib/llvm-6.0/cmake/AddLLVM.cmake:605 (llvm_add_library) lib/Analysis/plugins/CheckerOptionHandling/CMakeLists.txt:6 (add_llvm_library) -- Looking for include file sys/inotify.h -- Looking for include file sys/inotify.h - found -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success -- Performing Test LLVM_HAS_ATOMICS -- Performing Test LLVM_HAS_ATOMICS - Success CMake Warning at /usr/lib/llvm-6.0/cmake/AddLLVM.cmake:383 (message): MODULE with SHARED|STATIC doesn't make sense. Call Stack (most recent call first): /usr/lib/llvm-6.0/cmake/AddLLVM.cmake:605 (llvm_add_library) examples/PrintFunctionNames/CMakeLists.txt:12 (add_llvm_library) CMake Warning at /usr/lib/llvm-6.0/cmake/AddLLVM.cmake:383 (message): MODULE with SHARED|STATIC doesn't make sense. Call Stack (most recent call first): /usr/lib/llvm-6.0/cmake/AddLLVM.cmake:605 (llvm_add_library) examples/AnnotateFunctions/CMakeLists.txt:1 (add_llvm_library) -- <<< Gentoo configuration >>> Build type RelWithDebInfo Install path /srv/scratch/entrup/gentoo/usr/lib/llvm/9 Compiler flags: C -O2 -pipe -O2 -pipe -fomit-frame-pointer -fPIC -Werror=date-time -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -Wno-comment -ffunction-sections -fdata-sections C++ -O2 -pipe -O2 -pipe -fomit-frame-pointer -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -pedantic -Wno-long-long Linker flags: Executable -Wl,-O1 -Wl,--as-needed Module -Wl,-O1 -Wl,--as-needed Shared -Wl,-O1 -Wl,--as-needed -Wl,-z,defs -Wl,-z,nodelete -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: LLVM_BUILD_TESTS -- Build files have been written to: /srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang-abi_x86_64.amd64 >>> Source configured. >>> Compiling source in /srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang ... * abi_x86_64.amd64: running multilib-minimal_abi_src_compile >>> Working in BUILD_DIR: "/srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang-abi_x86_64.amd64" ninja -v -j96 -l0 ninja: error: '/usr/lib/llvm-6.0/lib/cmake/llvm/GenerateVersionFromVCS.cmake', needed by 'lib/Basic/VCSVersion.inc', missing and no known rule to make it * ERROR: sys-devel/clang-9.0.0::gentoo failed (compile phase): * ninja -v -j96 -l0 failed * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 3887: Called multilib-minimal_src_compile * environment, line 2262: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile' * environment, line 2506: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 2197: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 2195: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile' * environment, line 659: Called multilib-minimal_abi_src_compile * environment, line 2256: Called multilib_src_compile * environment, line 2726: Called cmake-utils_src_compile * environment, line 973: Called cmake-utils_src_make * environment, line 1154: Called _cmake_ninja_src_make * environment, line 493: Called eninja * environment, line 1455: Called die * The specific snippet of code: * "$@" || die "${nonfatal_args[@]}" "${*} failed" * * If you need support, post the output of `emerge --info '=sys-devel/clang-9.0.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/clang-9.0.0::gentoo'`. * The complete build log is located at '/srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/temp/build.log'. * The ebuild environment file is located at '/srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/temp/environment'. * Working directory: '/srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang-abi_x86_64.amd64' * S: '/srv/scratch/entrup/gentoo/var/tmp/portage/sys-devel/clang-9.0.0/work/x/y/clang'