[From nobody Tue Jun 30 17:37:07 2026
Received: (at maintonly) by bugs.debian.org; 3 Jul 2024 12:42:39 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-114.1 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,FVGT_m_MULTI_ODD,HAS_PACKAGE,
 RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE,USER_IN_DKIM_WELCOMELIST,
 USER_IN_DKIM_WHITELIST autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 19; hammy, 150; neutral, 231; spammy,
 0. spammytokens: hammytokens:0.000-+--pkgbuilddir,
 0.000-+--PKGBUILDDIR, 0.000-+--H*F:U*doko, 0.000-+--trixie,
 0.000-+--qalogsdebiannet
Return-path: &lt;doko@paradis.debian.org&gt;
Received: from mitropoulos.debian.org
 ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:54290)
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=mitropoulos.debian.org, EMAIL=hostmaster@mitropoulos.debian.org (verified)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;doko@paradis.debian.org&gt;)
 id 1sOzJo-00CmLP-BV
 for maintonly@bugs.debian.org; Wed, 03 Jul 2024 12:42:39 +0000
Received: from paradis.debian.org ([2607:f8f0:614:1::1274:67]:53886)
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=paradis.debian.org, EMAIL=hostmaster@paradis.debian.org (verified)
 by mitropoulos.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;doko@paradis.debian.org&gt;)
 id 1sOzJl-0045ib-IB
 for maintonly@bugs.debian.org; Wed, 03 Jul 2024 12:42:36 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.paradis;
 h=Date:Message-Id:Content-Transfer-Encoding:Content-Type:
 MIME-Version:From:Subject:To:Reply-To:Cc:Content-ID:Content-Description:
 In-Reply-To:References; bh=xzY2GaGJU7lgtHf6zU6Lj7NaeH2h3BE7Ok8JGE1gR9o=; b=K4
 vjR+SiDjjPguJQdKVDM3MRKdmqDrErUa9MEYwE7ftUYht6HWrh5A7i0KgPIKTFRvhhxYMymuXFKea
 D+0mspFXSR7M8luXKOn//+czTkHTIRqALRwND/JKAl5PefkBCe/h9HFgTI3lCAi/kPuYmHfB/IJ9T
 igbCgYkgxvizqER6lBzmmi2Sg/L53KlDB7OQuvj6irS1aJdQRz1SEgcIKQu8AHmgv+fLEKbRcsX83
 /uFghdt4uAJNIyOxbKIUkKoOEh29bCIDIAhUNcFmc6dBYorniiqpDF2vV1c+UICbaSZa8ctNWzivH
 YVG4znP5zeAwLu86hC2qw699zK5J4UIA==;
Received: from doko by paradis.debian.org with local (Exim 4.94.2)
 (envelope-from &lt;doko@paradis.debian.org&gt;) id 1sOzJi-0043ck-MI
 for maintonly@bugs.debian.org; Wed, 03 Jul 2024 12:42:34 +0000
To: maintonly@bugs.debian.org
Subject: ruby-gd: ftbfs with GCC-14
From: Matthias Klose &lt;doko@debian.org&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=&quot;UTF-8&quot;
Content-Transfer-Encoding: 8bit
Message-Id: &lt;E1sOzJi-0043ck-MI@paradis.debian.org&gt;
Date: Wed, 03 Jul 2024 12:42:34 +0000
Delivered-To: maintonly@bugs.debian.org

Package: src:ruby-gd
Version: 0.8.0-8
Severity: important
Tags: sid trixie
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/ruby-gd_0.8.0-8_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html

[...]
conftest.c:14:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include &quot;ruby.h&quot;
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc &gt; 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf(&quot;%d&quot;, (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))gdImageAlphaBlending; return !p; }
/* end */

LD_LIBRARY_PATH=.:/usr/lib/x86_64-linux-gnu &quot;x86_64-linux-gnu-gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-3.1.0 -I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. -I/usr/X11R6/include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/usr/X11R6/lib -L/usr/local/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -lm -lgd -lpng -lz -lfreetype -lXpm -lX11 -ljpeg  -lruby-3.1 -lm -lgd -lpng -lz -lfreetype -lXpm -lX11 -ljpeg  -lm  -lc&quot;
checked program was:
/* begin */
 1: #include &quot;ruby.h&quot;
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc &gt; 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf(&quot;%d&quot;, (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void gdImageAlphaBlending();
15: int t(void) { gdImageAlphaBlending(); return 0; }
/* end */

--------------------

/usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:119:in `run': make failed, exit code 2 (Gem::InstallError)
	from /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:53:in `block in make'
	from /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:45:in `each'
	from /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:45:in `make'
	from /usr/lib/ruby/vendor_ruby/rubygems/ext/ext_conf_builder.rb:42:in `build'
	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:81:in `block in build_and_install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:71:in `chdir'
	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:71:in `build_and_install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:115:in `block in build_all_extensions'
	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:112:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:112:in `build_all_extensions'
	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:128:in `&lt;main&gt;'
~~~~~~~~~~~~~~~~~~~~~ ↑ mkmf.log ~~~~~~~~~~~~~~~~~~~~~
/usr/lib/ruby/vendor_ruby/gem2deb.rb:52:in `run': /usr/bin/ruby3.1 /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb /&lt;&lt;PKGBUILDDIR&gt;&gt; debian/ruby-gd (Gem2Deb::CommandFailed)
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:64:in `block in run_ruby'
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:87:in `maybe_crossbuild'
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:63:in `run_ruby'
	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:57:in `block in install_files_and_build_extensions'
	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:54:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:54:in `install_files_and_build_extensions'
	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:28:in `build'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:54:in `block in install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:52:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:52:in `install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:163:in `install'
	from /usr/bin/dh_ruby:89:in `&lt;main&gt;'
dh_auto_install: error: dh_ruby --install /&lt;&lt;PKGBUILDDIR&gt;&gt;/debian/ruby-gd returned exit code 1
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
]