Bug#1075302: nam: ftbfs with GCC-14
Package: src:nam
Version: 1.15-7
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/nam_1.15-7_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
[...]
| ^~~~~
/<<PKGBUILDDIR>>/netmodel.cc:1180:29: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
1180 | n->set_down("gray");
| ^~~~~~
/<<PKGBUILDDIR>>/netmodel.cc:1196:29: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
1196 | n->set_down("gray");
| ^~~~~~
In file included from /<<PKGBUILDDIR>>/packet.cc:44:
/<<PKGBUILDDIR>>/node.h: In member function ‘virtual char* BoxNode::style()’:
/<<PKGBUILDDIR>>/node.h:280:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
280 | char *style() {return "box";}
| ^~~~~
/<<PKGBUILDDIR>>/node.h: In member function ‘virtual char* CircleNode::style()’:
/<<PKGBUILDDIR>>/node.h:291:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
291 | char *style() {return "circle";}
| ^~~~~~~~
/<<PKGBUILDDIR>>/node.h: In member function ‘virtual char* HexagonNode::style()’:
/<<PKGBUILDDIR>>/node.h:302:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
302 | char *style() {return "hexagon";}
| ^~~~~~~~~
/<<PKGBUILDDIR>>/node.h: In member function ‘virtual char* VirtualNode::style()’:
/<<PKGBUILDDIR>>/node.h:318:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
318 | char *style() {return "virtual";}
| ^~~~~~~~~
/<<PKGBUILDDIR>>/netmodel.cc: In member function ‘int NetModel::add_group(Group*)’:
/<<PKGBUILDDIR>>/netmodel.cc:1659:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1659 | (const char *)grp->addr(),
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/tcl/tcl.h:2570:62: note: in definition of macro ‘Tcl_CreateHashEntry’
2570 | (*((tablePtr)->createProc))(tablePtr, (const char *)(key), newPtr)
| ^~~
/<<PKGBUILDDIR>>/netmodel.cc: In member function ‘Group* NetModel::lookupGroup(unsigned int)’:
/<<PKGBUILDDIR>>/netmodel.cc:1672:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1672 | Tcl_HashEntry *he = Tcl_FindHashEntry(grpHash_, (const char *)addr);
| ^~~~~~~~~~~~~~~~~~
/usr/include/tcl/tcl.h:2567:60: note: in definition of macro ‘Tcl_FindHashEntry’
2567 | (*((tablePtr)->findProc))(tablePtr, (const char *)(key))
| ^~~
In file included from /<<PKGBUILDDIR>>/node.cc:46:
/<<PKGBUILDDIR>>/node.h: In member function ‘virtual char* BoxNode::style()’:
/<<PKGBUILDDIR>>/node.h:280:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
280 | char *style() {return "box";}
| ^~~~~
/<<PKGBUILDDIR>>/node.h: In member function ‘virtual char* CircleNode::style()’:
/<<PKGBUILDDIR>>/node.h:291:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
291 | char *style() {return "circle";}
| ^~~~~~~~
/<<PKGBUILDDIR>>/node.h: In member function ‘virtual char* HexagonNode::style()’:
/<<PKGBUILDDIR>>/node.h:302:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
302 | char *style() {return "hexagon";}
| ^~~~~~~~~
/<<PKGBUILDDIR>>/node.h: In member function ‘virtual char* VirtualNode::style()’:
/<<PKGBUILDDIR>>/node.h:318:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
318 | char *style() {return "virtual";}
| ^~~~~~~~~
/<<PKGBUILDDIR>>/netmodel.cc: In member function ‘int NetModel::registerObjName(const char*, int)’:
/<<PKGBUILDDIR>>/netmodel.cc:2745:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
2745 | Tcl_SetHashValue(he, (ClientData)id);
| ^~~~~~~~~~~~~~
/usr/include/tcl/tcl.h:2553:69: note: in definition of macro ‘Tcl_SetHashValue’
2553 | #define Tcl_SetHashValue(h, value) ((h)->clientData = (ClientData) (value))
| ^~~~~
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:86: CMakeFiles/nam.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:10: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: