[Pkg-electronics-devel] Bug#1075316: ngspice: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:37:56 BST 2024


Package: src:ngspice
Version: 42+ds-3
Severity: important
Tags: sid trixie
User: debian-gcc at 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/ngspice_42+ds-3_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

[...]
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../../../src/ciderlib/twod -I../../../src/include -I../../../../../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -std=gnu11 -fopenmp -c ../../../../../../src/ciderlib/twod/twosolve.c  -fPIC -DPIC -o .libs/twosolve.o
/bin/bash ../../../libtool  --tag=CC   --mode=link gcc -shared -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -std=gnu11 -fopenmp  -Wl,-z,relro -Wl,-z,now -o libcidertwod.la  twoadmit.lo twoaval.lo twocond.lo twocont.lo twocurr.lo twodest.lo twodopng.lo twoelect.lo twofield.lo twomesh.lo twomobdv.lo twomobfn.lo twomobil.lo twoncont.lo twopcont.lo twopoiss.lo twoprint.lo twoproj.lo tworead.lo twosetbc.lo twosetup.lo twosolve.lo  -lm -lpthread -lBLT   -lstdc++
libtool: link: ar cr .libs/libcidertwod.a .libs/twoadmit.o .libs/twoaval.o .libs/twocond.o .libs/twocont.o .libs/twocurr.o .libs/twodest.o .libs/twodopng.o .libs/twoelect.o .libs/twofield.o .libs/twomesh.o .libs/twomobdv.o .libs/twomobfn.o .libs/twomobil.o .libs/twoncont.o .libs/twopcont.o .libs/twopoiss.o .libs/twoprint.o .libs/twoproj.o .libs/tworead.o .libs/twosetbc.o .libs/twosetup.o .libs/twosolve.o 
libtool: link: ranlib .libs/libcidertwod.a
libtool: link: ( cd ".libs" && rm -f "libcidertwod.la" && ln -s "../libcidertwod.la" "libcidertwod.la" )
make[5]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/tclspice/src/ciderlib/twod'
make[5]: Entering directory '/<<PKGBUILDDIR>>/debian/build/tclspice/src/ciderlib'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/tclspice/src/ciderlib'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/tclspice/src/ciderlib'
make[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build/tclspice/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I. -I../../../../src -I../src/include -I../../../../src/include -I../../../../src/spicelib/devices   -DSIMULATOR -DTCLSPICE_version="\"42\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -shared -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -std=gnu11 -fopenmp -c -o libspice_la-main.lo `test -f 'main.c' || echo '../../../../src/'`main.c
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I. -I../../../../src -I../src/include -I../../../../src/include -I../../../../src/spicelib/devices   -DSIMULATOR -DTCLSPICE_version="\"42\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -shared -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -std=gnu11 -fopenmp -c -o libspice_la-conf.lo `test -f 'conf.c' || echo '../../../../src/'`conf.c
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I. -I../../../../src -I../src/include -I../../../../src/include -I../../../../src/spicelib/devices   -DSIMULATOR -DTCLSPICE_version="\"42\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -shared -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -std=gnu11 -fopenmp -c -o libspice_la-ngspice.lo `test -f 'ngspice.c' || echo '../../../../src/'`ngspice.c
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I. -I../../../../src -I../src/include -I../../../../src/include -I../../../../src/spicelib/devices   -DSIMULATOR -DTCLSPICE_version="\"42\"" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -shared -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -std=gnu11 -fopenmp -c -o libspice_la-tclspice.lo `test -f 'tclspice.c' || echo '../../../../src/'`tclspice.c
rm -f spinit spinit.tmp
rm -f tclspinit tclspinit.tmp
rm -f pkgIndex.tcl pkgIndex.tcl.tmp
srcdir=''; \
  test -f ./spinit.in || srcdir=../../../../src/; \
  sed -e 's|@XSPICEINIT[@]||g' -e 's|@pkglibdir[@]|/usr/lib/x86_64-linux-gnu/ngspice|g' ${srcdir}spinit.in >spinit.tmp
srcdir=''; \
  test -f ./tclspinit.in || srcdir=../../../../src/; \
  sed -e 's|@XSPICEINIT[@]||g' -e 's|@pkglibdir[@]|/usr/lib/x86_64-linux-gnu/ngspice|g' ${srcdir}tclspinit.in >tclspinit.tmp
srcdir=''; \
  test -f ./pkgIndex.tcl.in || srcdir=../../../../src/; \
  sed -e 's|%LIB_DIR%|/usr/lib/x86_64-linux-gnu|g' -e 's|%VERSION%|42|g' ${srcdir}pkgIndex.tcl.in >pkgIndex.tcl.tmp
mv tclspinit.tmp tclspinit
mv spinit.tmp spinit
mv pkgIndex.tcl.tmp pkgIndex.tcl
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../src -I../src/include -I../../../../src/include -I../../../../src/spicelib/devices -DSIMULATOR -DTCLSPICE_version=\"42\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -std=gnu11 -fopenmp -c ../../../../src/ngspice.c  -fPIC -DPIC -o .libs/libspice_la-ngspice.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../src -I../src/include -I../../../../src/include -I../../../../src/spicelib/devices -DSIMULATOR -DTCLSPICE_version=\"42\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -std=gnu11 -fopenmp -c ../../../../src/tclspice.c  -fPIC -DPIC -o .libs/libspice_la-tclspice.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../src -I../src/include -I../../../../src/include -I../../../../src/spicelib/devices -DSIMULATOR -DTCLSPICE_version=\"42\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -std=gnu11 -fopenmp -c ../../../../src/main.c  -fPIC -DPIC -o .libs/libspice_la-main.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../src -I../src/include -I../../../../src/include -I../../../../src/spicelib/devices -DSIMULATOR -DTCLSPICE_version=\"42\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -std=gnu11 -fopenmp -c ../../../../src/conf.c  -fPIC -DPIC -o .libs/libspice_la-conf.o
../../../../src/tclspice.c: In function ‘tmeasure’:
../../../../src/tclspice.c:2436:19: error: passing argument 1 of ‘wl_build’ from incompatible pointer type [-Wincompatible-pointer-types]
 2436 |     wl = wl_build((char **)argv);
      |                   ^~~~~~~~~~~~~
      |                   |
      |                   char **
In file included from ../../../../src/include/ngspice/randnumb.h:4,
                 from ../../../../src/tclspice.c:29:
../../../../src/include/ngspice/wordlist.h:17:41: note: expected ‘const char * const*’ but argument is of type ‘char **’
   17 | wordlist * wl_build(const char * const *v);
      |                     ~~~~~~~~~~~~~~~~~~~~^
../../../../src/tclspice.c: In function ‘get_output’:
../../../../src/tclspice.c:1260:5: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1260 |     freopen("/tmp/tclspice.tmp_out", "w", stdout);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/tclspice.c:1262:9: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1262 |         freopen("/tmp/tclspice.tmp_err", "w", stderr);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/tclspice.c:1281:5: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1281 |     freopen("/dev/fd/1", "w", stdout);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/tclspice.c:1283:9: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1283 |         freopen("/dev/fd/2", "w", stderr);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:1264: libspice_la-tclspice.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/tclspice/src'
make[3]: *** [Makefile:1482: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/tclspice/src'
make[2]: *** [Makefile:509: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/tclspice'
dh_auto_build: error: cd debian/build/tclspice && make -j8 returned exit code 2
make[1]: *** [debian/rules:115: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:66: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-electronics-devel mailing list