Bug#981888: iwyu FTBFS on mipsel: Linking CXX executable bin/include-what-you-use fails

Paul Gevers elbrus at debian.org
Thu Feb 4 20:03:51 GMT 2021


Source: iwyu
Version: 8.15-2
Severity: serious
Tags: ftbfs

Hi,

iwyu FTBFS on mispel.

https://buildd.debian.org/status/fetch.php?pkg=iwyu&arch=mipsel&ver=8.15-2&stamp=1612343226&raw=0

Maybe the relevant part is this:

[100%] Linking CXX executable bin/include-what-you-use
/usr/bin/cmake -E cmake_link_script
CMakeFiles/include-what-you-use.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC -fno-shrink-wrap -fvisibility-inlines-hidden
-Werror=date-time -w -ffunction-sections -fdata-sections -Wl,-z,relro
-Wl,-rpath-link,  -Wl,-O3 -Wl,--gc-sections
CMakeFiles/include-what-you-use.dir/iwyu.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_ast_util.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_cache.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_driver.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_getopt.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_globals.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_include_picker.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_lexer_utils.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_location_util.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_output.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_path_util.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_preprocessor.cc.o
CMakeFiles/include-what-you-use.dir/iwyu_verrs.cc.o -o
bin/include-what-you-use
-Wl,-rpath,"\$ORIGIN/../lib:/usr/lib/llvm-11/lib" -lpthread
/usr/lib/llvm-11/lib/libclang-cpp.so.11
/usr/lib/llvm-11/lib/libLLVM-11.so.1
CMakeFiles/include-what-you-use.dir/iwyu.cc.o: in function
`std::char_traits<char>::compare(char const*, char const*, unsigned int)':
iwyu.cc:(.text._ZNSt11char_traitsIcE7compareEPKcS2_j[_ZNSt11char_traitsIcE7compareEPKcS2_j]+0x50):
relocation truncated to fit: R_MIPS_CALL16 against `memcmp@@GLIBC_2.0'
CMakeFiles/include-what-you-use.dir/iwyu.cc.o: in function
`std::__cxx11::to_string(int)':
iwyu.cc:(.text._ZNSt7__cxx119to_stringEi[_ZNSt7__cxx119to_stringEi]+0x90):
relocation truncated to fit: R_MIPS_CALL16 against
`std::allocator<char>::allocator()@@GLIBCXX_3.4'
iwyu.cc:(.text._ZNSt7__cxx119to_stringEi[_ZNSt7__cxx119to_stringEi]+0xb8):
relocation truncated to fit: R_MIPS_CALL16 against
`std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::basic_string(unsigned int, char,
std::allocator<char> const&)@@GLIBCXX_3.4.21'
iwyu.cc:(.text._ZNSt7__cxx119to_stringEi[_ZNSt7__cxx119to_stringEi]+0xd4):
relocation truncated to fit: R_MIPS_CALL16 against
`std::allocator<char>::~allocator()@@GLIBCXX_3.4'
iwyu.cc:(.text._ZNSt7__cxx119to_stringEi[_ZNSt7__cxx119to_stringEi]+0xf4):
relocation truncated to fit: R_MIPS_CALL16 against
`std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::operator[](unsigned int)@@GLIBCXX_3.4.21'
CMakeFiles/include-what-you-use.dir/iwyu.cc.o: in function
`llvm::alignTo(unsigned long long, unsigned long long, unsigned long long)':
iwyu.cc:(.text._ZN4llvm7alignToEyyy[_ZN4llvm7alignToEyyy]+0x60):
relocation truncated to fit: R_MIPS_CALL16 against
`__assert_fail@@GLIBC_2.0'
iwyu.cc:(.text._ZN4llvm7alignToEyyy[_ZN4llvm7alignToEyyy]+0x78):
relocation truncated to fit: R_MIPS_CALL16 against `__umoddi3@@GLIBC_2.0'
iwyu.cc:(.text._ZN4llvm7alignToEyyy[_ZN4llvm7alignToEyyy]+0x118):
relocation truncated to fit: R_MIPS_CALL16 against `__udivdi3@@GLIBC_2.0'
CMakeFiles/include-what-you-use.dir/iwyu.cc.o: in function
`llvm::StringRef::strLen(char const*)':
iwyu.cc:(.text._ZN4llvm9StringRef6strLenEPKc[_ZN4llvm9StringRef6strLenEPKc]+0x28):
relocation truncated to fit: R_MIPS_CALL16 against `strlen@@GLIBC_2.0'
CMakeFiles/include-what-you-use.dir/iwyu.cc.o: in function
`llvm::StringRef::str[abi:cxx11]() const':
iwyu.cc:(.text._ZNK4llvm9StringRef3strB5cxx11Ev[_ZNK4llvm9StringRef3strB5cxx11Ev]+0x44):
relocation truncated to fit: R_MIPS_CALL16 against
`std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::basic_string()@@GLIBCXX_3.4.21'
iwyu.cc:(.text._ZNK4llvm9StringRef3strB5cxx11Ev[_ZNK4llvm9StringRef3strB5cxx11Ev]+0x78):
additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
make[4]: *** [CMakeFiles/include-what-you-use.dir/build.make:288:
bin/include-what-you-use] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/iwyu-build'
make[3]: *** [CMakeFiles/Makefile2:131:
CMakeFiles/include-what-you-use.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/iwyu-build'
make[2]: *** [Makefile:163: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/iwyu-build'
dh_auto_build: error: cd iwyu-build && make -j4 "INSTALL=install
--strip-program=true" VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:29: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:21: build-arch] Error 2

Paul

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20210204/a3ab5531/attachment.sig>


More information about the Pkg-llvm-team mailing list