Source: godot
Version: 3.2.3-stable-1
Severity: normal
Tags: ftbfs, patch
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org

Dear Maintainer,

The package has a ftbfs issue due to:

usr/include/c++/11/bits/atomic_base.h:571: undefined reference to 
`__atomic_compare_exchange_1'


The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=godot&arch=riscv64&ver=3.2.3-stable-1&stamp=1635495260&raw=0

The patch attached is to fix the issue and I have tested it on my
local real riscv64 hardware.

please let me know if there are any issues.

-- 
Regards,
--
  Bo YU

diff -Nru godot-3.2.3-stable/debian/rules godot-3.2.3-stable/debian/rules
--- godot-3.2.3-stable/debian/rules     2020-10-28 12:56:05.000000000 +0000
+++ godot-3.2.3-stable/debian/rules     2020-10-28 12:56:05.000000000 +0000
@@ -7,6 +7,11 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+# Link with libatomic on riscv64
+ifeq ($(DEB_HOST_ARCH),riscv64)
+       export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic 
-Wl,--as-needed
+endif
+
 override_dh_clean:
        dh_clean
        scons -c

Attachment: signature.asc
Description: PGP signature

Reply via email to