Source: castxml
Version: 0.1+git20180702-3
Severity: serious
Tags: ftbfs

Hi Maintainer

A recent rebuild of castxml failed to build from source on armel [1].
I've copied what I hope is the relevant part of the log below.

I believe this may be related to the recent switch from GCC 8 to 9.

"GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source."

Regards
Graham


[1] 
https://buildd.debian.org/status/fetch.php?pkg=castxml&arch=armel&ver=0.1%2Bgit20180702-3%2Bb1&stamp=1569346877&raw=0


/usr/bin/c++  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -fno-exceptions -fno-rtti -std=c++11  -Wl,-z,relro
-Wl,-z,now -latomic -rdynamic CMakeFiles/castxml.dir/castxml.cxx.o
CMakeFiles/castxml.dir/Detect.cxx.o
CMakeFiles/castxml.dir/Output.cxx.o
CMakeFiles/castxml.dir/RunClang.cxx.o
CMakeFiles/castxml.dir/Utils.cxx.o  -o ../bin/castxml
-L/usr/lib/llvm-8/lib -Wl,-rpath,/usr/lib/llvm-8/lib: -lclangFrontend
-lclangDriver -lclangSerialization -lclangParse -lclangSema
-lclangAnalysis -lclangEdit -lclangAST -lclangLex -lclangBasic
/usr/lib/llvm-8/lib/libLLVM-8.so.1
/usr/bin/ld: 
/usr/lib/llvm-8/lib/libclangFrontend.a(SerializedDiagnosticReader.cpp.o):
undefined reference to symbol '__atomic_load_4@@LIBATOMIC_1.0'
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/9/libatomic.so: error
adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [src/CMakeFiles/castxml.dir/build.make:148: bin/castxml] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabi'
make[2]: *** [CMakeFiles/Makefile2:1022: src/CMakeFiles/castxml.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabi'
make[1]: *** [Makefile:144: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabi'
dh_auto_build: cd obj-arm-linux-gnueabi && make -j4 returned exit code 2
make: *** [debian/rules:15: build-arch] Error 255

Reply via email to