Bug#957856: systemc: ftbfs with GCC-10

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug#957856: systemc: ftbfs with GCC-10

Carsten Schoenert
Control: tags -1 patch

As usual after a new C++ compiler version the symbols within the
binaries get some changes.

I adjusted the symbols file again to fix the changed symbols and make
makeshlibs happy. Appended as patch or if you prefer I can also commit
the changed files to the tree on Salsa.
Tested on i386, amd64 and arm64 as also done before.

I'm sure we will see some more breakage within future uploads of new
Debian revision for the GCC 10 suite.

If you want to rebuild things locally you can do this by apply the
following additional changes to the debian folder. The override for
dh_makeshlibs is helpful in case you want to explicitly be able call this rule
dedicated.

diff --git a/debian/control b/debian/control
index 0e6fd8e..4aae00b 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: systemc
 Section: electronics
 Priority: optional
 Maintainer: أحمد المحمودي (Ahmed El-Mahmoudy) <[hidden email]>
-Build-Depends: debhelper (>= 11), texinfo
+Build-Depends: debhelper (>= 11), texinfo, gcc-10, g++-10
 Standards-Version: 4.4.0
 Homepage: https://www.accellera.org/downloads/standards/systemc/
 Vcs-Git: https://salsa.debian.org/electronics-team/systemc.git
diff --git a/debian/rules b/debian/rules
index e3aad18..52e42c8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,8 +7,13 @@ export DEB_BUILD_MAINT_OPTIONS += hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+export CC=gcc-10
+export CXX=g++-10
 %:
        dh $@
 
 override_dh_auto_configure:
        dh_auto_configure -- --with-unix-layout
+
+override_dh_makeshlibs:
+       dh_makeshlibs

Regards
Carsten

0001-libsystemc.symbols-update-again-after-GCC-update.patch (24K) Download Attachment