Package: src:yasm
Version: 1.3.0-5
Severity: important
Tags: sid forky
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/yasm_1.3.0-5_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
./genmacro nasm-version.c nasm_version_mac version.mac
./genmacro win64-nasm.c win64_nasm_stdmac ./modules/objfmts/coff/win64-nasm.mac
./genmacro win64-gas.c win64_gas_stdmac ./modules/objfmts/coff/win64-gas.mac
gcc -o genperf  genperf.o gp-perfect.o gp-phash.o gp-xmalloc.o gp-xstrdup.o 
./genperf x86insn_nasm.gperf x86insn_nasm.c
./genperf x86insn_gas.gperf x86insn_gas.c
fail to map group of size 2 for tab size 512
gcc -o re2c  re2c-main.o re2c-code.o re2c-dfa.o re2c-parser.o re2c-actions.o 
re2c-scanner.o re2c-mbo_getopt.o re2c-substr.o re2c-translate.o 
./re2c -b -o gas-token.c ./modules/parsers/gas/gas-token.re
./re2c -b -o nasm-token.c ./modules/parsers/nasm/nasm-token.re
make  all-recursive
make[2]: Entering directory '/build/reproducible-path/yasm-1.3.0'
Makefile:4369: warning: ignoring prerequisites on suffix rule definition
Making all in po
make[3]: Entering directory '/build/reproducible-path/yasm-1.3.0/po'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/build/reproducible-path/yasm-1.3.0/po'
Making all in .
make[3]: Entering directory '/build/reproducible-path/yasm-1.3.0'
Makefile:4369: warning: ignoring prerequisites on suffix rule definition
./genperf ./modules/arch/x86/x86cpu.gperf x86cpu.c
./genperf ./modules/arch/x86/x86regtmod.gperf x86regtmod.c
./re2c -s -o lc3bid.c ./modules/arch/lc3b/lc3bid.re
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/yasm-1.3.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -c -o gas-token.o gas-token.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/yasm-1.3.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -c -o nasm-token.o nasm-token.c
gcc -I.  -c -o genmodule.o `test -f libyasm/genmodule.c || echo 
'./'`libyasm/genmodule.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/yasm-1.3.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -c -o frontends/yasm/yasm.o 
frontends/yasm/yasm.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/yasm-1.3.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -c -o frontends/yasm/yasm-options.o 
frontends/yasm/yasm-options.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/yasm-1.3.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -c -o modules/arch/x86/x86arch.o 
modules/arch/x86/x86arch.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/yasm-1.3.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -c -o modules/arch/x86/x86bc.o 
modules/arch/x86/x86bc.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/yasm-1.3.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -c -o modules/arch/x86/x86expr.o 
modules/arch/x86/x86expr.c
In file included from frontends/yasm/yasm.c:31:
./libyasm/bitvect.h:86:32: error: cannot use keyword ‘false’ as enumeration 
constant
   86 |         typedef enum boolean { false = FALSE, true = TRUE } boolean;
      |                                ^~~~~
./libyasm/bitvect.h:86:32: note: ‘false’ is a keyword with ‘-std=c23’ onwards
In file included from modules/arch/x86/x86arch.h:30,
                 from modules/arch/x86/x86arch.c:31:
./libyasm/bitvect.h:86:32: error: cannot use keyword ‘false’ as enumeration 
constant
   86 |         typedef enum boolean { false = FALSE, true = TRUE } boolean;
      |                                ^~~~~
./libyasm/bitvect.h:86:32: note: ‘false’ is a keyword with ‘-std=c23’ onwards
In file included from modules/arch/x86/x86arch.h:30,
                 from modules/arch/x86/x86bc.c:31:
./libyasm/bitvect.h:86:32: error: cannot use keyword ‘false’ as enumeration 
constant
   86 |         typedef enum boolean { false = FALSE, true = TRUE } boolean;
      |                                ^~~~~
./libyasm/bitvect.h:86:32: note: ‘false’ is a keyword with ‘-std=c23’ onwards
frontends/yasm/yasm.c:220:20: warning: macro ‘__DATE__’ might prevent 
reproducible builds [-Wdate-time]
  220 |     "Compiled on " __DATE__ ".",
      |                    ^~~~~~~~
In file included from modules/arch/x86/x86arch.h:30,
                 from modules/arch/x86/x86expr.c:31:
./libyasm/bitvect.h:86:32: error: cannot use keyword ‘false’ as enumeration 
constant
   86 |         typedef enum boolean { false = FALSE, true = TRUE } boolean;
      |                                ^~~~~
./libyasm/bitvect.h:86:32: note: ‘false’ is a keyword with ‘-std=c23’ onwards
make[3]: *** [Makefile:2913: modules/arch/x86/x86arch.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:2913: modules/arch/x86/x86expr.o] Error 1
make[3]: *** [Makefile:2913: modules/arch/x86/x86bc.o] Error 1
make[3]: *** [Makefile:2913: frontends/yasm/yasm.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/yasm-1.3.0'
make[2]: *** [Makefile:3151: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/yasm-1.3.0'
make[1]: *** [Makefile:2234: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/yasm-1.3.0'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to