[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1107416: marked as done (gcc-14: Please build with -fno-fold-mem-offsets on m68k)



Your message dated Mon, 09 Jun 2025 11:49:54 +0000
with message-id <E1uOb0k-009jLc-Ql@fasolo.debian.org>
and subject line Bug#1107416: fixed in gcc-15 15.1.0-6
has caused the Debian Bug report #1107416,
regarding gcc-14: Please build with -fno-fold-mem-offsets on m68k
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1107416: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107416
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: gcc-14
Version: 14.2.0-19
Severity: normal
Tags: patch
User: debian-68k@lists.debian.org
Usertags: m68k
X-Debbugs-Cc: debian-68k@lists.debian.org

Hello,

the new RTL optimization introduced in [1] breaks the gcc-14 build on m68k.

As discovered by the Gentoo m68k maintainers, building gcc-14 with the option
-fno-fold-mem-offsets to disable this new optimization fixes this problem.

The option does not seem to be needed on gcc-15 which builds fine in experimental [2].

I have used the following patch against the gcc-14 package to pass the option
during build which works for me:

--- debian/rules2.orig	 2025-02-19 16:04:38.000000000 +0100
+++ debian/rules2	 2025-06-06 11:55:20.606692824 +0200
@@ -227,6 +227,17 @@
   endif
 endif
 
+ifeq ($(DEB_TARGET_ARCH),m68k)
+  CFLAGS               += -fno-fold-mem-offsets
+  CXXFLAGS             += -fno-fold-mem-offsets
+  CFLAGS_FOR_BUILD     += -fno-fold-mem-offsets
+  CXXFLAGS_FOR_BUILD   += -fno-fold-mem-offsets
+  CFLAGS_FOR_TARGET    += -fno-fold-mem-offsets
+  CXXFLAGS_FOR_TARGET  += -fno-fold-mem-offsets
+  BOOT_CFLAGS          += -fno-fold-mem-offsets
+  STAGE1_CFLAGS        += -fno-fold-mem-offsets
+endif
+
 ifneq (,$(findstring -fno-omit-frame-pointer,$(shell DEB_HOST_ARCH=$(DEB_TARGET_ARCH) dpkg-buildflags --get CFLAGS)))
   CFLAGS_FRAME_POINTER = -fno-omit-frame-pointer
 else

The gcc maintainer will certainly know better whether all of these are
needed to fix the build and consequently avoid other packages from being
miscompiled or failing to build.

Thanks,
Adrian

> [1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=04c9cf5c786b94fbe3f6f21f06cae73a7575ff7a
> [2] https://buildd.debian.org/status/package.php?p=gcc-15&suite=experimental

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- debian/rules2.orig   2025-02-19 16:04:38.000000000 +0100
+++ debian/rules2        2025-06-06 11:55:20.606692824 +0200
@@ -227,6 +227,17 @@
   endif
 endif

+ifeq ($(DEB_TARGET_ARCH),m68k)
+  CFLAGS               += -fno-fold-mem-offsets
+  CXXFLAGS             += -fno-fold-mem-offsets
+  CFLAGS_FOR_BUILD     += -fno-fold-mem-offsets
+  CXXFLAGS_FOR_BUILD   += -fno-fold-mem-offsets
+  CFLAGS_FOR_TARGET    += -fno-fold-mem-offsets
+  CXXFLAGS_FOR_TARGET  += -fno-fold-mem-offsets
+  BOOT_CFLAGS          += -fno-fold-mem-offsets
+  STAGE1_CFLAGS        += -fno-fold-mem-offsets
+endif
+
 ifneq (,$(findstring -fno-omit-frame-pointer,$(shell DEB_HOST_ARCH=$(DEB_TARGET_ARCH) dpkg-buildflags --get CFLAGS)))
   CFLAGS_FRAME_POINTER = -fno-omit-frame-pointer
 else

--- End Message ---
--- Begin Message ---
Source: gcc-15
Source-Version: 15.1.0-6
Done: Matthias Klose <doko@debian.org>

We believe that the bug you reported is fixed in the latest version of
gcc-15, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1107416@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-15 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 09 Jun 2025 13:27:55 +0200
Source: gcc-15
Architecture: source
Version: 15.1.0-6
Distribution: experimental
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Closes: 1107416
Changes:
 gcc-15 (15.1.0-6) experimental; urgency=medium
 .
   * Update to git 20250609 from the gcc-15 branch.
     - Fix PR tree-optimization/120357, PR tree-optimization/120341,
       PR rtl-optimization/120182, PR tree-optimization/120003,
       PR tree-optimization/119960, PR tree-optimization/116352,
       PR target/86772 (microblaze), PR c/120180, PR c++/120123, PR c/120180,
       PR c++/120413, PR c++/120363, PR c++/120414, PR fortran/99838,
       PR fortran/102599, PR fortran/114022, PR fortran/101735,
       PR fortran/101735, PR fortran/120193, PR fortran/120049,
       PR fortran/120355, PR target/120442 (AVR), PR target/120441 (AVR),
       PR libfortran/119856, PR middle-end/118694, PR middle-end/118694,
       PR libstdc++/120432, PR libstdc++/120465, PR libstdc++/120367.
   * Don't default to -ffold-mem-offsets on m68k (Adrian Glaubitz).
     Closes: #1107416.
Checksums-Sha1:
 80fb26f1fcbd855fff04cdffb68503c049b9326a 52172 gcc-15_15.1.0-6.dsc
 f4f11f23d1852e3178e579a74e70293e4d818cf2 2494416 gcc-15_15.1.0-6.debian.tar.xz
 3283fea56a9b6b25acb9dcbe3fded786619b4778 9868 gcc-15_15.1.0-6_source.buildinfo
Checksums-Sha256:
 ac91bc5656b7b5a727d65b0241e51d8645999ef84354bdba9c49e6e0b8eb9f2b 52172 gcc-15_15.1.0-6.dsc
 d0ff3f6ce46a2bc87481076faa8cbf0b7b9af8e2cf9f0ab5152231d04db521fd 2494416 gcc-15_15.1.0-6.debian.tar.xz
 40162f0cb457978b3cd870b3fb090e1b7ad8e7d7cc53372d6285a6a6ff5621c8 9868 gcc-15_15.1.0-6_source.buildinfo
Files:
 aa1a464bc2dc76d31c724943fa4e13f7 52172 devel optional gcc-15_15.1.0-6.dsc
 af213404489913e08ad2d629f0264ef1 2494416 devel optional gcc-15_15.1.0-6.debian.tar.xz
 649eea807308f358156740d5f9838552 9868 devel optional gcc-15_15.1.0-6_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmhGxYsQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9dGpEACZKqsBDA0vaalZMlmHmZlT81eSJbgQQgXE
IB2u88g4/CPiZOhvcNr3tBo++1DBSx1arOv8jEtvbS6oZxz/y4nbe+T8nad02BnS
KgV8zOUvODa2350Yrv3/J4LLn0uRipTzf9qM0K0X0iTPKgAEpKV6dNXsyGDUQpLq
8GHrELkgxmGhMxcIoMov7+O5bObZhWbRk1TAIYy7Kc5TAhmZd7KJCl/u9Muy99AM
G+kdlNJXEKaJii67dkZ9OdVwvZuEiv8zAfUfU83IWmqmihswaVkakVNa3SEAK156
VRws1UaolHmaV89voRohKClM1GGwxHcAFP49iB+E9RD9fwc96Fubm57oLRRlpS19
Bp6jd4SUx5+1uWYcMF/e4wLhEPmj1fDvlP1vrxNLFb5L9qIId69Csd6z/KC+15ez
qk/bCBMj4W2RHe0YH7WrkbsRWoHWooswSH/ngMOUwwhgvlOo/sDbJn5Ft856f9hf
4MsUOkZHSfxm2XSr9U++K8/Umsr1qocLAWUuvKEws3WHHdvnemTE41a/CGQnaHlq
REv0jJMsiwhTWcCN7mDTovmcZvv7Y4a2jVzOpx7xei/6bj06KfPITmOv2qbfTRvD
v/d/zwDz8QUxu4XGdVOHQjTt+W42pz7aQYOw/RqV03eLe3oz112CLuSzCfyzx276
jecOY9tDRg==
=UBtg
-----END PGP SIGNATURE-----

Attachment: pgp8zAX1k6im3.pgp
Description: PGP signature


--- End Message ---

Reply to: