Hello, I did try to hack some patches to make it build. 1) reduce parallelism makes it build almost everywhere. 2) add Break/Replaces for the binary move of gambdoc 3) Add O2 on ppc64el to make it build sanely 4) disable lto, gcc segfaults with lto enabled 5) Disable tco on ppc64el
How do you feel about them? G. diff -Nru gambc-4.9.7+dfsg/debian/changelog gambc-4.9.7+dfsg/debian/changelog --- gambc-4.9.7+dfsg/debian/changelog 2025-08-18 14:24:05.000000000 +0200 +++ gambc-4.9.7+dfsg/debian/changelog 2026-07-06 12:52:52.000000000 +0200 @@ -1,3 +1,13 @@ +gambc (4.9.7+dfsg-1ubuntu1) stonking; urgency=medium + + * Non-maintainer upload + * Try to fix build issues by forcing parallel build to 2 (Closes: #1138230) + * Add Break/Replaces to ease transition to new version (Closes: #1138243) + * Force O2 on ppc64el to fix a build failure with O3 + * Disable lto to fix a build failure due to gcc internal error + + -- Gianfranco Costamagna <[email protected]> Mon, 06 Jul 2026 12:52:52 +0200 + gambc (4.9.7+dfsg-1) unstable; urgency=medium * New upstream release. diff -Nru gambc-4.9.7+dfsg/debian/control gambc-4.9.7+dfsg/debian/control --- gambc-4.9.7+dfsg/debian/control 2025-08-18 14:24:05.000000000 +0200 +++ gambc-4.9.7+dfsg/debian/control 2026-07-06 12:52:32.000000000 +0200 @@ -20,6 +20,7 @@ Package: gambc Architecture: any Multi-Arch: foreign +Breaks: gambc-doc (<<4.9.7+dfsg-1) Depends: libgambit4 (= ${binary:Version}), libgambit4-dev (= ${binary:Version}), @@ -73,6 +74,8 @@ Package: gambc-doc Section: doc +Breaks: gambc (<<4.9.7+dfsg-1) +Replaces: gambc (<<4.9.7+dfsg-1) Architecture: all Multi-Arch: foreign Depends: diff -Nru gambc-4.9.7+dfsg/debian/rules gambc-4.9.7+dfsg/debian/rules --- gambc-4.9.7+dfsg/debian/rules 2025-08-18 14:24:05.000000000 +0200 +++ gambc-4.9.7+dfsg/debian/rules 2026-07-06 12:52:52.000000000 +0200 @@ -1,15 +1,29 @@ #!/usr/bin/make -f # export DH_VERBOSE = 1 -export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=-fixfilepath,-fixdebugpath +export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=-fixfilepath,-fixdebugpath optimize=-lto + +VENDOR=$(shell lsb_release -is) +ifeq ($(VENDOR)-$(DEB_HOST_ARCH),Ubuntu-ppc64el) + export DEB_CFLAGS_MAINT_STRIP = -O3 + export DEB_CXXFLAGS_MAINT_STRIP = -O3 + export DEB_CFLAGS_MAINT_APPEND = -O2 + export DEB_CXXFLAGS_MAINT_APPEND = -O2 + export TCO=--disable-trust-c-tco +else + export TCO=--enable-trust-c-tco +endif %: - dh $@ + dh $@ --max-parallel=1 + +override_dh_auto_build: + dh_auto_build --max-parallel=2 override_dh_auto_configure: dh_auto_configure -- \ --enable-single-host \ - --enable-trust-c-tco \ + $(TCO) \ --enable-dynamic-clib \ --enable-shared \ --disable-absolute-shared-libs \

