Bug#957233: freefem++: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:00:35 BST 2020


Package: src:freefem++
Version: 3.61.1+dfsg1-5
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/freefem++_3.61.1+dfsg1-5_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

[...]
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/Algo'
Making all in lglib
make[4]: Entering directory '/<<PKGBUILDDIR>>/src/lglib'
make  all-am
make[5]: Entering directory '/<<PKGBUILDDIR>>/src/lglib'
g++ -Wl,-z,relro -Wl,--as-needed -DHAVE_CONFIG_H -I. -I../..  -I./../fflib -I./../bamglib -I./../Graphics -I./../femlib -Wdate-time -D_FORTIFY_SOURCE=2  -g  -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -O3 -mmmx -mavx -DBAMG_LONG_LONG  -DNCHECKPTR -fPIC -c -o lg.tab.o lg.tab.cpp
g++ -Wl,-z,relro -Wl,--as-needed -DHAVE_CONFIG_H -I. -I../..  -I./../fflib -I./../bamglib -I./../Graphics -I./../femlib -Wdate-time -D_FORTIFY_SOURCE=2  -g  -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -O3 -mmmx -mavx -DBAMG_LONG_LONG  -DNCHECKPTR -fPIC -c -o mymain.o mymain.cpp
lg.ypp: In function ‘int lgparse()’:
lg.ypp:444:73: error: cannot bind rvalue reference of type ‘const char*&&’ to lvalue of type ‘char*’
  444 |  | ID '=' no_set_expr                     { $$=make_pair<const char *,const C_F0>($1,$3);}
      |                                                       ~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
                 from /usr/include/c++/10/bits/char_traits.h:39,
                 from /usr/include/c++/10/ios:40,
                 from /usr/include/c++/10/ostream:38,
                 from /usr/include/c++/10/iostream:39,
                 from lg.ypp:33:
/usr/include/c++/10/bits/stl_pair.h:566:21: note:   initializing argument 1 of ‘constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = const char*; _T2 = const C_F0; typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type = C_F0; typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type = const char*]’
  566 |     make_pair(_T1&& __x, _T2&& __y)
      |               ~~~~~~^~~
lg.ypp:446:101: error: cannot bind rvalue reference of type ‘const char*&&’ to lvalue of type ‘char*’
  446 |  | parameters_list ',' id '=' no_set_expr { $$= ($1+= make_pair<const char *,const C_F0>($3,$5));}
      |                                                                                   ~~~~~~~~~~~~~~~~  ^   
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
                 from /usr/include/c++/10/bits/char_traits.h:39,
                 from /usr/include/c++/10/ios:40,
                 from /usr/include/c++/10/ostream:38,
                 from /usr/include/c++/10/iostream:39,
                 from lg.ypp:33:
/usr/include/c++/10/bits/stl_pair.h:566:21: note:   initializing argument 1 of ‘constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = const char*; _T2 = const C_F0; typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type = C_F0; typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type = const char*]’
  566 |     make_pair(_T1&& __x, _T2&& __y)
      |               ~~~~~~^~~
lg.ypp:692:74: error: cannot bind rvalue reference of type ‘const char*&&’ to lvalue of type ‘char*’
  692 |   | id /*[[id]]*/ '=' no_set_expr /*[[no_set_expr:]]*/      {$$ = make_pair<const char *,const C_F0>($1,$3);}
      |                                                        ~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
                 from /usr/include/c++/10/bits/char_traits.h:39,
                 from /usr/include/c++/10/ios:40,
                 from /usr/include/c++/10/ostream:38,
                 from /usr/include/c++/10/iostream:39,
                 from lg.ypp:33:
/usr/include/c++/10/bits/stl_pair.h:566:21: note:   initializing argument 1 of ‘constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = const char*; _T2 = const C_F0; typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type = C_F0; typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type = const char*]’
  566 |     make_pair(_T1&& __x, _T2&& __y)
      |               ~~~~~~^~~
lg.ypp:700:101: error: cannot bind rvalue reference of type ‘const char*&&’ to lvalue of type ‘char*’
  700 |   | parameters ',' id '=' no_set_expr /*[[no_set_expr:]]*/  {$$ = ($1+= make_pair<const char *,const C_F0>($3,$5));}
      |                                                                                   ~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
                 from /usr/include/c++/10/bits/char_traits.h:39,
                 from /usr/include/c++/10/ios:40,
                 from /usr/include/c++/10/ostream:38,
                 from /usr/include/c++/10/iostream:39,
                 from lg.ypp:33:
/usr/include/c++/10/bits/stl_pair.h:566:21: note:   initializing argument 1 of ‘constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = const char*; _T2 = const C_F0; typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type = C_F0; typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type = const char*]’
  566 |     make_pair(_T1&& __x, _T2&& __y)
      |               ~~~~~~^~~
make[5]: *** [Makefile:537: lg.tab.o] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/src/lglib'
make[4]: *** [Makefile:475: all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/lglib'
make[3]: *** [Makefile:534: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:612: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:562: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list