Bug#1074861: calculix-cgx: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:23:36 BST 2024


Package: src:calculix-cgx
Version: 2.21+dfsg-1
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/calculix-cgx_2.21+dfsg-1_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

[...]
generateTet.cpp:416:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  416 |   mnodSet=pre_seta("+mnodSet","i",0);
      |                               ^~~
generateTet.cpp:417:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  417 |   setNr=pre_seta("+velemSet","i",0);
      |                  ^~~~~~~~~~~
generateTet.cpp:417:30: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  417 |   setNr=pre_seta("+velemSet","i",0);
      |                              ^~~
generateTet.cpp:428:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  428 |         for(k=0; k<3; k++) seta(mnodSet,"n",e_enqire[surf[s].elem[i]].nod[k+3]);
      |                                         ^~~
generateTet.cpp:435:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  435 |       for(k=0; k<3; k++) seta(snodSet,"n",e_enqire[surf[s].elem[i]].nod[k]);
      |                                       ^~~
generateTet.cpp:451:14: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  451 |     { errMsg("ERROR: realloc failure in generateTet\n"); return(0); }
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
generateTet.cpp:521:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  521 |     if ( (  readNG( "test.vol", anz_ng, &setx, &node_ng, &elem_ng, NULL)) == -1)
      |                     ^~~~~~~~~~
generateTet.cpp:579:14: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  579 |     { errMsg("ERROR: realloc failure in generateTet\n"); return(0); }
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
generateTet.cpp:652:82: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  652 |     elem_define(anz,&e_enqire, anz->enext++, 3, cgxtet, 1, eattr ); seta( setNr, "e", anz->emax );
      |                                                                                  ^~~
generateTet.cpp:663:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  663 |     fixMidsideNodes( set[setNr].name, "gen" );
      |                                       ^~~~~
generateTet.cpp:665:23: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  665 |     snodSet2=pre_seta("+snodSet2","i",0);
      |                       ^~~~~~~~~~~
generateTet.cpp:665:35: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  665 |     snodSet2=pre_seta("+snodSet2","i",0);
      |                                   ^~~
generateTet.cpp:683:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  683 |           seta(snodSet2,"n",e_enqire[set[setNr].elem[k]].nod[nodseq_te10[n*3+1]]);
      |                         ^~~
generateTet.cpp:691:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  691 |       for (n=0; n<10; n++) seta( setNr, "n", e_enqire[set[setNr].elem[k]].nod[n] );
      |                                         ^~~
generateTet.cpp:694:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  694 |     fixMidsideNodes( set[setNr].name, "" );
      |                                       ^~
generateTet.cpp:700:40: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  700 |       for (n=0; n<4; n++) seta( setNr, "n", e_enqire[set[setNr].elem[k]].nod[n] );
      |                                        ^~~
generateTet.cpp:704:55: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  704 |   for (k = 0; k < set[snodSet].anz_n; k++) setr(setNr,"n",set[snodSet].node[k]);
      |                                                       ^~~
generateTet.cpp:705:55: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  705 |   for (k = 0; k < set[mnodSet].anz_n; k++) setr(setNr,"n",set[mnodSet].node[k]);
      |                                                       ^~~
generateTet.cpp:713:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  713 |   delSet("+snodSet");
      |          ^~~~~~~~~~
generateTet.cpp:714:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  714 |   delSet("+mnodSet");
      |          ^~~~~~~~~~
generateTet.cpp:715:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  715 |   delSet("+velemSet");
      |          ^~~~~~~~~~~
make[2]: *** [Makefile:31: cgx] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/cgx_2.21/src'
dh_auto_build: error: cd cgx_2.21/src && make -j8 "INSTALL=install --strip-program=true" "CFLAGS+=-Wl,-z,relro -I." FFLAGS=-fallow-argument-mismatch returned exit code 2
make[1]: *** [debian/rules:27: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:20: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list