Source: poselib
Version: 2.0.5-1
Severity: important
Tags: ftbfs patch
Control: affects -1 src:colmap

https://buildd.debian.org/status/logs.php?pkg=poselib&ver=2.0.5-1

32-bit:

...
cc1plus: out of memory allocating 6802320 bytes after a total of 155566080 bytes
make[3]: *** [PoseLib/CMakeFiles/PoseLib.dir/build.make:600: 
PoseLib/CMakeFiles/PoseLib.dir/robust/bundle.cc.o] Error 1


riscv64:

...
E: Build killed with signal TERM after 720 minutes of inactivity



Fix/Workaround:

--- poselib-2.0.5/debian/rules  2025-10-24 11:03:10.000000000 +0300
+++ poselib-2.0.5/debian/rules  2025-10-24 11:03:10.000000000 +0300
@@ -10,6 +10,16 @@
 # Package maintainers to append LDFLAGS.
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+# workaround g++ running out of address space
+ifeq ($(DEB_HOST_ARCH_BITS), 32)
+  export DEB_CXXFLAGS_MAINT_APPEND  = -g1
+endif
+
+# build time reduction
+ifneq (,$(filter $(DEB_HOST_ARCH), riscv64))
+  export DEB_CXXFLAGS_MAINT_APPEND += -g1
+endif
+
 %:
        dh $@ --buildsystem=cmake
 

Reply via email to