[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#925739: libcommoncpp2: ftbfs with GCC-9



Package: src:libcommoncpp2
Version: 1.8.1-7
Severity: normal
Tags: sid bullseye
User: debian-gcc@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/libcommoncpp2_1.8.1-7_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.

[...]
config.status: creating Makefile
config.status: creating commoncpp2.spec
config.status: creating tests/Makefile
config.status: creating commoncpp2.list
config.status: WARNING:  'commoncpp2.list.in' seems to ignore the --datarootdir setting
config.status: creating w32/ccgnu2.dsp
config.status: creating w32/ccext2.dsp
config.status: creating w32/ccgnu2.vcproj
config.status: creating w32/ccext2.vcproj
config.status: creating config.h
config.status: executing libtool commands
config.status: executing depfiles commands
   dh_auto_build -a
	make -j4
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make  all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in inc
make[3]: Entering directory '/<<PKGBUILDDIR>>/inc'
Making all in cc++
make[4]: Entering directory '/<<PKGBUILDDIR>>/inc/cc++'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>/inc/cc++'
make[4]: Entering directory '/<<PKGBUILDDIR>>/inc'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>/inc'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/inc'
Making all in src
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../inc   -Wdate-time -D_FORTIFY_SOURCE=2 -I../src -DCCXX_EXPORT_LIBRARY  -D_GNU_SOURCE -I../inc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o thread.lo thread.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../inc   -Wdate-time -D_FORTIFY_SOURCE=2 -I../src -DCCXX_EXPORT_LIBRARY  -D_GNU_SOURCE -I../inc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o mutex.lo mutex.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../inc   -Wdate-time -D_FORTIFY_SOURCE=2 -I../src -DCCXX_EXPORT_LIBRARY  -D_GNU_SOURCE -I../inc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o semaphore.lo semaphore.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../inc   -Wdate-time -D_FORTIFY_SOURCE=2 -I../src -DCCXX_EXPORT_LIBRARY  -D_GNU_SOURCE -I../inc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o threadkey.lo threadkey.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -Wdate-time -D_FORTIFY_SOURCE=2 -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c mutex.cpp  -fPIC -DPIC -o .libs/mutex.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -Wdate-time -D_FORTIFY_SOURCE=2 -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c semaphore.cpp  -fPIC -DPIC -o .libs/semaphore.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -Wdate-time -D_FORTIFY_SOURCE=2 -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c thread.cpp  -fPIC -DPIC -o .libs/thread.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -Wdate-time -D_FORTIFY_SOURCE=2 -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c threadkey.cpp  -fPIC -DPIC -o .libs/threadkey.o
In file included from ../inc/cc++/exception.h:52,
                 from mutex.cpp:41:
../inc/cc++/string.h:734:35: error: friend declaration of 'std::istream& getline(std::istream&, ost::String&, char, size_t)' specifies default arguments and isn't a definition [-fpermissive]
  734 |     friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0);
      |                                   ^~~~~~~
In file included from ../inc/cc++/exception.h:52,
                 from semaphore.cpp:41:
../inc/cc++/string.h:734:35: error: friend declaration of 'std::istream& getline(std::istream&, ost::String&, char, size_t)' specifies default arguments and isn't a definition [-fpermissive]
  734 |     friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0);
      |                                   ^~~~~~~
In file included from ../inc/cc++/thread.h:50,
                 from threadkey.cpp:41:
../inc/cc++/string.h:734:35: error: friend declaration of 'std::istream& getline(std::istream&, ost::String&, char, size_t)' specifies default arguments and isn't a definition [-fpermissive]
  734 |     friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0);
      |                                   ^~~~~~~
In file included from ../inc/cc++/thread.h:50,
                 from thread.cpp:41:
../inc/cc++/string.h:734:35: error: friend declaration of 'std::istream& getline(std::istream&, ost::String&, char, size_t)' specifies default arguments and isn't a definition [-fpermissive]
  734 |     friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0);
      |                                   ^~~~~~~
make[3]: *** [Makefile:708: threadkey.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:708: semaphore.lo] Error 1
make[3]: *** [Makefile:708: mutex.lo] Error 1
make[3]: *** [Makefile:708: thread.lo] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:486: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:414: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j4 returned exit code 2
make: *** [debian/rules:3: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2


Reply to: