Bug#912819: llvm-toolchain-7: FTBFS on hurd-i386

Samuel Thibault sthibault at debian.org
Sun Nov 4 01:33:38 GMT 2018


Source: llvm-toolchain-7
Version: 1:7-8
Severity: important
User: debian-hurd at lists.debian.org
Usertags: hurd

Hello,

llvm-toolchain-7 currently FTBFS on hurd-i386, on openmp issues first,
which are being submitted upstream on https://reviews.llvm.org/D54079 ,
but after applying the fix for openmp I'm getting a weird issue:

/usr/bin/ranlib ../../../lib/libgtest_main.a
make[4] : on quitte le répertoire « /mnt/compil/llvm-toolchain-7-7/build-llvm »
[100%] Built target gtest_main
make[3] : on quitte le répertoire « /mnt/compil/llvm-toolchain-7-7/build-llvm »
/usr/bin/cmake -E cmake_progress_start /mnt/compil/llvm-toolchain-7-7/build-llvm/CMakeFiles 0
make[2] : on quitte le répertoire « /mnt/compil/llvm-toolchain-7-7/build-llvm »
mkdir -p libcxxabi/build
mkdir -p libcxx/build
CMAKE_BIN=cmake; \
if test -f /tmp/cmake/bin/cmake; then \
        CMAKE_BIN=/tmp/cmake/bin/cmake; \
fi; \
echo "Using cmake: $CMAKE_BIN"; \
cd libcxxabi/build && \
 $CMAKE_BIN ../ \
-DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-7 -DLLVM_CONFIG_PATH=/mnt/compil/llvm-toolchain-7-7/build-llvm/bin/llvm-config -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_COMPILER=/mnt/compil/llvm-toolchain-7-7/build-llvm/bin/clang++ -DCMAKE_C_COMPILER=/mnt/compil/llvm-toolchain-7-7/build-llvm/bin/clang -DCMAKE_CXX_FLAGS="-g -O2 -fdebug-prefix-map=/mnt/compil/llvm-toolchain-7-7=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" -DCMAKE_EXE_LINKER_FLAGS="" -DCMAKE_SHARED_LINKER_FLAGS="" -DCMAKE_MODULE_LINKER_FLAGS="" -DCMAKE_AR=/mnt/compil/llvm-toolchain-7-7/build-llvm/bin/llvm-ar -DCMAKE_RANLIB=/mnt/compil/llvm-toolchain-7-7/build-llvm/bin/llvm-ranlib -DCMAKE_C_COMPILER=/mnt/compil/llvm-toolchain-7-7/build-llvm/bin/clang -DLLVM_EXTERNAL_LIT=/mnt/compil/llvm-toolchain-7-7/utils/lit/lit.py  -DLLVM_BINUTILS_INCDIR=/usr/include/  \
-DLIBCXXABI_LIBCXX_PATH=/mnt/compil/llvm-toolchain-7-7/libcxx \
-DLIBCXXABI_LIBCXX_LIBRARY_PATH=/mnt/compil/llvm-toolchain-7-7/libcxx/build/lib \
-DLIBCXXABI_LIBCXX_INCLUDES=/mnt/compil/llvm-toolchain-7-7/libcxx/include \
-DLIBCXXABI_ENABLE_EXCEPTIONS=ON \
-DLLVM_ENABLE_RTTI=ON && \
 /usr/bin/make -j 1 VERBOSE=1 CXXFLAGS=" -fuse-ld=gold -Wl,--no-keep-files-mapped -Wl,--no-map-whole-files"  LDFLAGS=" -fuse-ld=gold --no-keep-files-mapped --no-map-whole-files"
Using cmake: cmake
-- The CXX compiler identification is Clang 7.0.0
-- The C compiler identification is Clang 7.0.0
-- Check for working CXX compiler: /mnt/compil/llvm-toolchain-7-7/build-llvm/bin/clang++
-- Check for working CXX compiler: /mnt/compil/llvm-toolchain-7-7/build-llvm/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /mnt/compil/llvm-toolchain-7-7/build-llvm/bin/clang
-- Check for working C compiler: /mnt/compil/llvm-toolchain-7-7/build-llvm/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring for standalone build.
-- Found LLVM_CONFIG_PATH as /mnt/compil/llvm-toolchain-7-7/build-llvm/bin/llvm-config
-- Linker detection: GNU ld
-- Performing Test LLVM_NO_OLD_LIBSTDCXX
-- Performing Test LLVM_NO_OLD_LIBSTDCXX - Failed
CMake Error at /mnt/compil/llvm-toolchain-7-7/build-llvm/lib/cmake/llvm/CheckCompilerVersion.cmake:38 (message):
  Host Clang must be able to find libstdc++4.8 or newer!
Call Stack (most recent call first):
  /mnt/compil/llvm-toolchain-7-7/build-llvm/lib/cmake/llvm/HandleLLVMOptions.cmake:9 (include)
  cmake/Modules/HandleOutOfTreeLLVM.cmake:97 (include)
  cmake/Modules/HandleOutOfTreeLLVM.cmake:140 (configure_out_of_tree_llvm)
  CMakeLists.txt:29 (include)


-- Configuring incomplete, errors occurred!
See also "/mnt/compil/llvm-toolchain-7-7/libcxxabi/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/compil/llvm-toolchain-7-7/libcxxabi/build/CMakeFiles/CMakeError.log".


CMakeError.log shows:

/mnt/compil/llvm-toolchain-7-7/build-llvm/bin/clang++    -g -O2 -fdebug-prefix-map=/mnt/compil/llvm-toolchain-7-7=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLLVM_NO_OLD_LIBSTDCXX  -std=c++0x   -o CMakeFiles/cmTC_b2902.dir/src.cxx.o -c /mnt/compil/llvm-toolchain-7-7/libcxxabi/build/CMakeFiles/CMakeTmp/src.cxx
/mnt/compil/llvm-toolchain-7-7/libcxxabi/build/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'atomic' file not found
#include <atomic>
         ^~~~~~~~
1 error generated.


But the atomic file is there in the /mnt/compil/llvm-toolchain-7-7/libcxx/include directory given as LIBCXXABI_LIBCXX_INCLUDES::

€ ls -l /mnt/compil/llvm-toolchain-7-7/libcxx/include/atomic
-rw-r--r-- 1 samy samy 63749 sept. 17 12:02 /mnt/compil/llvm-toolchain-7-7/libcxx/include/atomic

Any idea what could be going wrong?

Samuel

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Pkg-llvm-team mailing list