Bug#984137: form: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:12:29 GMT 2021


Package: src:form
Version: 4.2.1+git20200217-1
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye 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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/form_4.2.1+git20200217-1_unstable_gcc11.log
The last lines of the build log are at the end of this report.

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

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
5039: 
5039:  return 0;
5039: }
5039: # 4901 "optimize.cc"
5039: int ClearOptimize()
5039: {
5039:  char str[20];
5039:  WORD numexpr, *w;
5039:  int error = 0;
5039:  if ( A.O.OptimizeResult.code != 
5039: # 4906 "optimize.cc" 3 4
5039:                                __null 
5039: # 4906 "optimize.cc"
5039:                                     ) {
5039:   M_free(A.O.OptimizeResult.code, "optimize output");
5039:   A.O.OptimizeResult.code = 
5039: # 4908 "optimize.cc" 3 4
5039:                           __null
5039: # 4908 "optimize.cc"
5039:                               ;
5039:   A.O.OptimizeResult.codesize = 0;
5039:   PutPreVar((UBYTE *)"optimminvar_",(UBYTE *)("0"),0,1);
5039:   PutPreVar((UBYTE *)"optimmaxvar_",(UBYTE *)("0"),0,1);
5039:   PruneExtraSymbols(A.O.OptimizeResult.minvar-1);
5039:   ((CBUF *)(A.C.cbufList.lijst))[A.M.sbufnum].numrhs = A.O.OptimizeResult.minvar-1;
5039:   A.O.OptimizeResult.minvar = A.O.OptimizeResult.maxvar = 0;
5039:  }
5039:  if ( A.O.OptimizeResult.nameofexpr != 
5039: # 4916 "optimize.cc" 3 4
5039:                                      __null 
5039: # 4916 "optimize.cc"
5039:                                           ) {
5039: 
5039: 
5039: 
5039: 
5039: 
5039: 
5039:   if ( GetName(A.C.exprnames,A.O.OptimizeResult.nameofexpr,&numexpr,0) != 5 ) {
5039:    MesPrint("@Internal error while clearing optimized expression %s ",A.O.OptimizeResult.nameofexpr);
5039:    Terminate(-1);
5039:   }
5039:   M_free(A.O.OptimizeResult.nameofexpr, "optimize expression name");
5039:   A.O.OptimizeResult.nameofexpr = 
5039: # 4928 "optimize.cc" 3 4
5039:                                 __null
5039: # 4928 "optimize.cc"
5039:                                     ;
5039:   w = &(((EXPRESSIONS)(A.C.ExpressionList.lijst))[numexpr].status);
5039:   *w = SetExprCases(2,1,*w);
5039:   if ( *w < 0 ) error = 1;
5039:  }
5039:  sprintf (str,"%d",((CBUF *)(A.C.cbufList.lijst))[A.M.sbufnum].numrhs);
5039:  PutPreVar(A.M.oldnumextrasymbols,(UBYTE *)str,0,1);
5039:  PutPreVar((UBYTE *)"optimvalue_",(UBYTE *)("0"),0,1);
5039:  PutPreVar((UBYTE *)"optimscheme_",(UBYTE *)("0"),0,1);
5039:  return(error);
5039: }
=== END GCC DUMP ===
make[4]: *** [Makefile:5532: tform-optimize.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/sources'
make[3]: *** [Makefile:406: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:347: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make[1]: *** [debian/rules:14: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the debian-science-maintainers mailing list