Bug#925654: code-saturne: ftbfs with GCC-9

Matthias Klose doko at debian.org
Wed Mar 27 19:44:27 GMT 2019


Package: src:code-saturne
Version: 5.3.2+repack-1
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-9

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-9/g++-9, but succeeds to build with gcc-8/g++-8. 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/gcc9-20190321/code-saturne_5.3.2+repack-1_unstable_gcc9.log
The last lines of the build log are at the end of this report.

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

GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source.

[...]
 1949 |     const cs_real_t  time_eval = t_cur + 0.5*dt_cur;
      |                                  ~~~~~~^~~~~~~~~~~~
cs_cdofb_scaleq.c:1938:10: error: enclosing 'parallel'
 1938 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)     \
      |          ^~~
cs_cdofb_scaleq.c:2091:11: error: '__func__' not specified in enclosing 'parallel'
 2091 |           bft_error(__FILE__, __LINE__, 0,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2092 |                     "%s: Not implemented yet.", __func__);
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cs_cdofb_scaleq.c:1938:10: error: enclosing 'parallel'
 1938 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)     \
      |          ^~~
cs_cdofb_scaleq.c: In function 'cs_cdofb_scaleq_balance':
cs_cdofb_scaleq.c:2295:5: error: 'time_eval' not specified in enclosing 'parallel'
 2295 |     cs_equation_init_properties(eqp, eqb, time_eval, cb);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cs_cdofb_scaleq.c:2262:10: error: enclosing 'parallel'
 2262 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)    \
      |          ^~~
make[5]: *** [Makefile:948: cs_cdofb_scaleq.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
cs_cdofb_uzawa.c: In function '_build_system_uzawa':
cs_cdofb_uzawa.c:390:20: warning: unused variable 'odt' [-Wunused-variable]
  390 |   const cs_real_t  odt = cs_equation_param_has_time(eqp) ? 1./dt_cur : 1.0;
      |                    ^~~
cs_cdofb_uzawa.c:433:40: error: 't_cur' not specified in enclosing 'parallel'
  433 |     const cs_real_t  time_eval = t_cur + 0.5*dt_cur;
      |                                  ~~~~~~^~~~~~~~~~~~
cs_cdofb_uzawa.c:423:10: error: enclosing 'parallel'
  423 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)   \
      |          ^~~
cs_cdofb_uzawa.c:509:11: error: '__func__' not specified in enclosing 'parallel'
  509 |           bft_error(__FILE__, __LINE__, 0,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  510 |                     " %s: Case not handle yet\n", __func__);
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cs_cdofb_uzawa.c:423:10: error: enclosing 'parallel'
  423 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)   \
      |          ^~~
make[5]: *** [Makefile:948: cs_cdofb_uzawa.lo] Error 1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/alge -I../../src/bft -I../../src/fvm -I../../src/base -I../../src/mesh -I../../libple/src -I../../libple -I/usr/include/x86_64-linux-gnu/mpi -DOMPI_SKIP_MPICXX -Wdate-time -D_FORTIFY_SOURCE=2 -D_POSIX_SOURCE -DNDEBUG -funroll-loops -O2 -Wuninitialized -fexcess-precision=fast -std=c99 -fms-extensions -funsigned-char -pedantic -W -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wunused -Wfloat-equal -Wmisleading-indentation -Wduplicated-cond -fdiagnostics-color=auto -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/code-saturne-5.3.2+repack=. -fstack-protector-strong -Wformat -Werror=format-security -fopenmp -c cs_cdofb_vecteq.c  -fPIC -DPIC -o .libs/cs_cdofb_vecteq.o
cs_cdofb_vecteq.c: In function 'cs_cdofb_vecteq_build_system':
cs_cdofb_vecteq.c:746:40: error: 't_cur' not specified in enclosing 'parallel'
  746 |     const cs_real_t  time_eval = t_cur + 0.5*dt_cur;
      |                                  ~~~~~~^~~~~~~~~~~~
cs_cdofb_vecteq.c:735:10: error: enclosing 'parallel'
  735 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)   \
      |          ^~~
cs_cdofb_vecteq.c:800:11: error: '__func__' not specified in enclosing 'parallel'
  800 |           bft_error(__FILE__, __LINE__, 0, " %s: Case not handle yet\n",
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  801 |                     __func__);
      |                     ~~~~~~~~~
cs_cdofb_vecteq.c:735:10: error: enclosing 'parallel'
  735 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)   \
      |          ^~~
make[5]: *** [Makefile:948: cs_cdofb_vecteq.lo] Error 1
make[5]: Leaving directory '/<<BUILDDIR>>/code-saturne-5.3.2+repack/src/cdo'
make[4]: *** [Makefile:978: all-recursive] Error 1
make[4]: Leaving directory '/<<BUILDDIR>>/code-saturne-5.3.2+repack/src'
make[3]: *** [Makefile:1440: all-recursive] Error 1
make[3]: Leaving directory '/<<BUILDDIR>>/code-saturne-5.3.2+repack'
make[2]: *** [Makefile:947: all] Error 2
make[2]: Leaving directory '/<<BUILDDIR>>/code-saturne-5.3.2+repack'
dh_auto_build: make -j4 returned exit code 2
make[1]: *** [debian/rules:36: override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/code-saturne-5.3.2+repack'
make: *** [debian/rules:17: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the debian-science-maintainers mailing list