[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#956400: pdf: FTBFS on multiple 32-bit architectures, needs libatomic



Source: qpdf
Version: 10.0.1-1
Severity: serious
Justification: ftbfs
User: debian-arm@lists.debian.org
Usertags: armel

Hi!

qpdf fails to build from source on multiple architectures due to
missing symbols from libatomic [1]:

/usr/bin/ld: /<<PKGBUILDDIR>>/libqpdf/build/.libs/libqpdf.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /<<PKGBUILDDIR>>/libqpdf/build/.libs/libqpdf.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
/usr/bin/ld: /<<PKGBUILDDIR>>/libqpdf/build/.libs/libqpdf.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[1]: *** [libtests/build.mk:52: libtests/build/aes] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [libtests/build.mk:52: libtests/build/bits] Error 1
make[1]: *** [zlib-flate/build.mk:22: zlib-flate/build/zlib-flate] Error 1
/usr/bin/ld: /<<PKGBUILDDIR>>/libqpdf/build/.libs/libqpdf.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[1]: *** [libtests/build.mk:52: libtests/build/buffer] Error 1
/usr/bin/ld: /<<PKGBUILDDIR>>/libqpdf/build/.libs/libqpdf.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status

This is a known issue with gcc [2] and can be fixed by linking against
libatomic, similar to apt-cacher-ng [3] and [4]. Please apply such
a fix for armel, mipsel, m68k, powerpc and sh4.

Thanks,
Adrian

> [1] https://buildd.debian.org/status/fetch.php?pkg=qpdf&arch=armel&ver=10.0.1-1&stamp=1586486160&raw=0 
> [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
> [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862002
> [4] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859689


Reply to: