Bug#1101710: polyml: FTBFS: /usr/lib/linux/uapi/x86/asm/elf.h:14:15: error: expected constructor, destructor, or type conversion before '(' token
Santiago Vila
sanvila at debian.org
Sun Mar 30 20:12:22 BST 2025
Package: src:polyml
Version: 5.7.1-5
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -DMODULEDIR=\"/usr/lib/x86_64-linux-gnu/polyml/modules\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c xwindows.cpp -o xwindows.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -DMODULEDIR=\"/usr/lib/x86_64-linux-gnu/polyml/modules\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o x86assembly_gas64.lo x86assembly_gas64.S
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -DMODULEDIR=\"/usr/lib/x86_64-linux-gnu/polyml/modules\" -Wdate-time -D_FORTIFY_SOURCE=2 -c x86assembly_gas64.S -fPIC -DPIC -o .libs/x86assembly_gas64.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -DMODULEDIR=\"/usr/lib/x86_64-linux-gnu/polyml/modules\" -Wdate-time -D_FORTIFY_SOURCE=2 -c x86assembly_gas64.S -o x86assembly_gas64.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -DMODULEDIR=\"/usr/lib/x86_64-linux-gnu/polyml/modules\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o elfexport.lo elfexport.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -DMODULEDIR=\"/usr/lib/x86_64-linux-gnu/polyml/modules\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c elfexport.cpp -fPIC -DPIC -o .libs/elfexport.o
cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++
In file included from elfexport.cpp:95:
/usr/lib/linux/uapi/x86/asm/elf.h:14:15: error: expected constructor, destructor, or type conversion before '(' token
14 | _Static_assert(sizeof(struct x86_xfeat_component) % 4 == 0, "x86_xfeat_component is not aligned");
| ^
make[3]: *** [Makefile:755: elfexport.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -DMODULEDIR=\"/usr/lib/x86_64-linux-gnu/polyml/modules\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c x86_dep.cpp -o x86_dep.o >/dev/null 2>&1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/libpolyml'
make[2]: *** [Makefile:729: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:493: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202503/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:polyml, so that this is still
visible in the BTS web page for this package.
Thanks.
More information about the debian-science-maintainers
mailing list