Bug#957063: calculix-cgx: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 11:57:34 BST 2020


Package: src:calculix-cgx
Version: 2.11+dfsg-1
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/calculix-cgx_2.11+dfsg-1_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html

[...]
generateTet.cpp:402:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  402 |   delSet("+snodSet");
      |          ^~~~~~~~~~
generateTet.cpp:403:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  403 |   delSet("+velemSet");
      |          ^~~~~~~~~~~
generateTet.cpp:404:20: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  404 |   snodSet=pre_seta("+snodSet","i",0);
      |                    ^~~~~~~~~~
generateTet.cpp:404:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  404 |   snodSet=pre_seta("+snodSet","i",0);
      |                               ^~~
generateTet.cpp:405:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  405 |   setNr=pre_seta("+velemSet","i",0);
      |                  ^~~~~~~~~~~
generateTet.cpp:405:30: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  405 |   setNr=pre_seta("+velemSet","i",0);
      |                              ^~~
generateTet.cpp:419:39: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  419 |       for(k=0; k<3; k++) seta(snodSet,"n",e_enqire[surf[s].elem[i]].nod[k]);
      |                                       ^~~
generateTet.cpp:439:14: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  439 |     { errMsg("ERROR: realloc failure in generateTet\n"); return(0); }
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
generateTet.cpp:500:19: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  500 |   if ( (  readNG( "test.vol", anz_ng, &setx, &node_ng, &elem_ng, NULL)) == -1)
      |                   ^~~~~~~~~~
generateTet.cpp:529:14: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  529 |     { errMsg("ERROR: realloc failure in generateTet\n"); return(0); }
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
generateTet.cpp:607:63: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  607 |     elem_define( anz->emax+1, 3, cgxtet, 1, 0 ); seta( setNr, "e", anz->emax );
      |                                                               ^~~
generateTet.cpp:619:39: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  619 |     fixMidsideNodes( set[setNr].name, "gen" );
      |                                       ^~~~~
generateTet.cpp:622:23: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  622 |     snodSet2=pre_seta("+snodSet2","i",0);
      |                       ^~~~~~~~~~~
generateTet.cpp:622:35: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  622 |     snodSet2=pre_seta("+snodSet2","i",0);
      |                                   ^~~
generateTet.cpp:640:25: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  640 |           seta(snodSet2,"n",e_enqire[set[setNr].elem[k]].nod[nodseq_te10[n*3+1]]);
      |                         ^~~
generateTet.cpp:648:41: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  648 |       for (n=0; n<10; n++) seta( setNr, "n", e_enqire[set[setNr].elem[k]].nod[n] );
      |                                         ^~~
generateTet.cpp:651:39: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  651 |     fixMidsideNodes( set[setNr].name, "" );
      |                                       ^~
generateTet.cpp:657:40: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  657 |       for (n=0; n<4; n++) seta( setNr, "n", e_enqire[set[setNr].elem[k]].nod[n] );
      |                                        ^~~
generateTet.cpp:661:55: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  661 |   for (k = 0; k < set[snodSet].anz_n; k++) setr(setNr,"n",set[snodSet].node[k]);
      |                                                       ^~~
generateTet.cpp:670:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  670 |   delSet("+velemSet");
      |          ^~~~~~~~~~~
/usr/bin/ld: iniMeshData.o:./cgx_2.11/src/iniMeshData.c:54: multiple definition of `setall'; cgx.o:./cgx_2.11/src/cgx.c:347: first defined here
/usr/bin/ld: plotFunktions.o:./cgx_2.11/src/plotFunktions.c:90: multiple definition of `colNr'; cgx.o:./cgx_2.11/src/cgx.c:194: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:25: cgx] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/cgx_2.11/src'
dh_auto_build: error: cd cgx_2.11/src && make -j1 "CFLAGS+=-Wl,-z,relro -I." returned exit code 2
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:14: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the debian-science-maintainers mailing list