Bug#1009286: gcc-12: DEB_STAGE=rtlibs should include libatomic
Source: gcc-12
Version: 12-20220319-1
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
Hi Matthias,
I think DEB_STAGE=rtlibs should include libatomic. This is not currently
the case and it causes issues. The cross compiler build normally
includes e.g. libatomic1-riscv64-cross and when building e.g. zstd, it
generates symbol uses for libatomic1, but dpkg-shlibdeps cannot locate
libatomic.so.1, because dpkg-shlibdeps does not search
/usr/riscv64-linux-gnu/lib. We need libatomic1:riscv64 here, which was
disabled by DEB_STAGE=rtlibs. Please consider applying the attached
patch.
Helmut
diff --minimal -Nru gcc-12-12-20220319/debian/changelog gcc-12-12-20220319/debian/changelog
--- gcc-12-12-20220319/debian/changelog 2022-03-19 08:39:27.000000000 +0100
+++ gcc-12-12-20220319/debian/changelog 2022-04-11 06:06:01.000000000 +0200
@@ -1,3 +1,10 @@
+gcc-12 (12-20220319-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Do build libatomic for DEB_STAGE=rtlibs. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Mon, 11 Apr 2022 06:06:01 +0200
+
gcc-12 (12-20220319-1) unstable; urgency=medium
* New upstream snapshot, taken from the trunk.
diff --minimal -Nru gcc-12-12-20220319/debian/rules.defs gcc-12-12-20220319/debian/rules.defs
--- gcc-12-12-20220319/debian/rules.defs 2022-02-25 11:18:28.000000000 +0100
+++ gcc-12-12-20220319/debian/rules.defs 2022-04-11 06:06:01.000000000 +0200
@@ -1630,7 +1630,6 @@
with_hppa64 := $(call envfilt, hppa64, , , $(with_hppa64))
ifeq ($(DEB_STAGE),rtlibs)
- with_libatomic := disabled for rtlibs stage
with_libasan := disabled for rtlibs stage
with_liblsan := disabled for rtlibs stage
with_libtsan := disabled for rtlibs stage
Reply to: