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

Bug#895969: webkit2gtk: FTBFS on riscv64 due to not linking against libatomic



Source: webkit2gtk
Version: 2.20.1-1
X-Debbugs-CC: debian-riscv@lists.debian.org
User: debian-riscv@lists.debian.org
Usertags: riscv64

Hello,

webkit2gtk 2.20.1-1 FTBFS on the riscv64 architecture with "undefined
reference to `__atomic_compare_exchange_1'". Full log at:

  https://buildd.debian.org/status/fetch.php?pkg=webkit2gtk&arch=riscv64&ver=2.20.1-1&stamp=1523866710&raw=0

This happens due to the fact that riscv64 has native atomics support,
but only for 32bit and 64bit operations. Support for 8bit/16bit atomic
operations is provided by libatomic, but webkit2gtk doesn't link against
libatomic, so the build fails.

There is support for automatically linking in libatomic when required,
but for that the linker needs to be called with the "-pthread" parameter
(not "-lpthread").

Regards,
Karsten
-- 
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.


Reply to: