Bug#1027013: llvm-toolchain-14 autopkg test fails

Matthias Klose doko at ubuntu.com
Mon Dec 26 10:22:21 GMT 2022


Package: src:llvm-toolchain-14
Version: 1:14.0.6-9
Severity: serious
Tags: sid bookworm

no idea what this test is supposed to test ...

however the source reads:

// Test the link against libclang-cppXX
//
// REQUIRES: clang, llvm-config
// RUN: %clangxx -lclang-cpp -v %s -o %t `%llvm-config --cxxflags --ldflags --libs`
// RUN: ldd %t 2>&1|grep -q libclang-cpp

with --as-needed as the default in the linker this is doomed to fail, having the 
library on the command line before the object file.

unsure if that is the root cause, as it only fails on amd64 and arm64.

https://ci.debian.net/data/autopkgtest/testing/amd64/l/llvm-toolchain-14/29644065/log.gz


[...]
FAIL: LLVM regression suite :: libclang_cpp.cpp (25 of 45)
******************** TEST 'LLVM regression suite :: libclang_cpp.cpp' FAILED 
********************
Script:
--
: 'RUN: at line 4';   /usr/bin/clang++-14 -lclang-cpp -v 
/tmp/autopkgtest-lxc._y_hntgm/downtmp/autopkgtest_tmp/tests/libclang_cpp.cpp -o 
/tmp/autopkgtest-lxc._y_hntgm/downtmp/autopkgtest_tmp/build/tests/Output/libclang_cpp.cpp.tmp 
`/usr/bin/llvm-config-14 --cxxflags --ldflags --libs`
: 'RUN: at line 5';   ldd 
/tmp/autopkgtest-lxc._y_hntgm/downtmp/autopkgtest_tmp/build/tests/Output/libclang_cpp.cpp.tmp 
2>&1|grep -q libclang-cpp
--
Exit Code: 1

Command Output (stderr):
--
Debian clang version 14.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/10
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Candidate multilib: .;@m64
Selected multilib: .;@m64
  "/usr/lib/llvm-14/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-obj 
-mrelax-all --mrelax-relocations -disable-free -clear-ast-before-backend 
-disable-llvm-verifier -discard-value-names -main-file-name libclang_cpp.cpp 
-mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno 
-ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 
-target-cpu x86-64 -tune-cpu generic -mllvm 
-treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v 
-fcoverage-compilation-dir=/tmp/autopkgtest-lxc._y_hntgm/downtmp/autopkgtest_tmp/build/tests 
-resource-dir /usr/lib/llvm-14/lib/clang/14.0.6 -I /usr/lib/llvm-14/include -D 
_GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D 
__STDC_LIMIT_MACROS -internal-isystem 
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 
-internal-isystem 
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 
-internal-isystem 
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward 
-internal-isystem /usr/lib/llvm-14/lib/clang/14.0.6/include -internal-isystem 
/usr/local/include -internal-isystem 
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include 
-internal-externc-isystem /usr/include/x86_64-linux-gnu 
-internal-externc-isystem /include -internal-externc-isystem /usr/include 
-std=c++14 -fdeprecated-macro 
-fdebug-compilation-dir=/tmp/autopkgtest-lxc._y_hntgm/downtmp/autopkgtest_tmp/build/tests 
-ferror-limit 19 -fgnuc-version=4.2.1 -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o 
/tmp/lit-tmp-f4zxudnz/libclang_cpp-b074e4.o -x c++ 
/tmp/autopkgtest-lxc._y_hntgm/downtmp/autopkgtest_tmp/tests/libclang_cpp.cpp
clang -cc1 version 14.0.6 based upon LLVM 14.0.6 default target x86_64-pc-linux-gnu
ignoring nonexistent directory 
"/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
  /usr/lib/llvm-14/include
  /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12
 
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12
  /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward
  /usr/lib/llvm-14/lib/clang/14.0.6/include
  /usr/local/include
  /usr/include/x86_64-linux-gnu
  /usr/include
End of search list.
  "/usr/bin/ld" -pie --hash-style=both --build-id --eh-frame-hdr -m elf_x86_64 
-dynamic-linker /lib64/ld-linux-x86-64.so.2 -o 
/tmp/autopkgtest-lxc._y_hntgm/downtmp/autopkgtest_tmp/build/tests/Output/libclang_cpp.cpp.tmp 
/lib/x86_64-linux-gnu/Scrt1.o /lib/x86_64-linux-gnu/crti.o 
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/crtbeginS.o -L/usr/lib/llvm-14/lib 
-L/usr/bin/../lib/gcc/x86_64-linux-gnu/12 
-L/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../lib64 
-L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu 
-L/usr/lib/../lib64 -L/usr/lib/llvm-14/bin/../lib -L/lib -L/usr/lib -lclang-cpp 
/tmp/lit-tmp-f4zxudnz/libclang_cpp-b074e4.o -lLLVM-14 -lstdc++ -lm -lgcc_s -lgcc 
-lc -lgcc_s -lgcc /usr/bin/../lib/gcc/x86_64-linux-gnu/12/crtendS.o 
/lib/x86_64-linux-gnu/crtn.o

--



More information about the Pkg-llvm-team mailing list