instrumentation code uses atomic ops on 64bit variables, which leads to build
failures on 32bit targets using libtorrent because of missing builtins on
riscv32/gcc

/usr/lib/libtorrent.so: undefined reference to `__sync_add_and_fetch_8'
/usr/lib/libtorrent.so: undefined reference to `__sync_fetch_and_and_8'

The developer added a "--disable-instrumentation" switch which skips the build
of the offending codepaths in libtorrent.

Signed-off-by: Khem Raj <[email protected]>
---
 meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb 
b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
index 3ee69554b6..e0d3bef3ca 100644
--- a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
+++ b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
@@ -19,6 +19,7 @@ PACKAGECONFIG ??= "instrumentation"
 
 PACKAGECONFIG_remove_mipsarch = "instrumentation"
 PACKAGECONFIG_remove_powerpc = "instrumentation"
+PACKAGECONFIG_remove_riscv32 = "instrumentation"
 
 PACKAGECONFIG[instrumentation] = 
"--enable-instrumentation,--disable-instrumentation,"
 
-- 
2.29.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#87951): 
https://lists.openembedded.org/g/openembedded-devel/message/87951
Mute This Topic: https://lists.openembedded.org/mt/78276671/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to