[Debian-iot-maintainers] Bug#853305: alljoyn-core-1509: ftbfs with GCC-7

Matthias Klose doko at debian.org
Tue Jan 31 09:29:33 UTC 2017


Package: src:alljoyn-core-1509
Version: 15.09a-5
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-7

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-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/alljoyn-core-1509_15.09a-5_unstable_gcc7.log
The last lines of the build log are at the end of this report.

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

[...]
Install file: "services/about/cpp/inc/alljoyn/about/PropertyStoreProperty.h" as "build/linux/x86_64/release/dist/cpp/inc/alljoyn/about/PropertyStoreProperty.h"
Install file: "services/about/cpp/inc/alljoyn/about/AboutService.h" as "build/linux/x86_64/release/dist/cpp/inc/alljoyn/about/AboutService.h"
g++ -o build/linux/x86_64/release/obj/about/cpp/src/AboutPropertyStoreImpl.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -Wno-deprecated-declarations -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc services/about/cpp/src/AboutPropertyStoreImpl.cc
g++ -o build/linux/x86_64/release/obj/about/cpp/src/AboutService.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -Wno-deprecated-declarations -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc services/about/cpp/src/AboutService.cc
g++ -o build/linux/x86_64/release/obj/about/cpp/src/AboutServiceApi.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -Wno-deprecated-declarations -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc services/about/cpp/src/AboutServiceApi.cc
g++ -o build/linux/x86_64/release/obj/about/cpp/src/AnnounceHandler.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -Wno-deprecated-declarations -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc services/about/cpp/src/AnnounceHandler.cc
g++ -o build/linux/x86_64/release/obj/about/cpp/src/AnnouncementRegistrar.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -Wno-deprecated-declarations -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc services/about/cpp/src/AnnouncementRegistrar.cc
g++ -o build/linux/x86_64/release/obj/about/cpp/src/InternalAnnounceHandler.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -Wno-deprecated-declarations -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc services/about/cpp/src/InternalAnnounceHandler.cc
g++ -o build/linux/x86_64/release/obj/about/cpp/src/PropertyStoreProperty.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -Wno-deprecated-declarations -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc services/about/cpp/src/PropertyStoreProperty.cc
ar rc build/linux/x86_64/release/obj/about/cpp/src/liballjoyn_about.a build/linux/x86_64/release/obj/about/cpp/src/AboutClient.o build/linux/x86_64/release/obj/about/cpp/src/AboutIconClient.o build/linux/x86_64/release/obj/about/cpp/src/AboutIconService.o build/linux/x86_64/release/obj/about/cpp/src/AboutPropertyStoreImpl.o build/linux/x86_64/release/obj/about/cpp/src/AboutService.o build/linux/x86_64/release/obj/about/cpp/src/AboutServiceApi.o build/linux/x86_64/release/obj/about/cpp/src/AnnounceHandler.o build/linux/x86_64/release/obj/about/cpp/src/AnnouncementRegistrar.o build/linux/x86_64/release/obj/about/cpp/src/InternalAnnounceHandler.o build/linux/x86_64/release/obj/about/cpp/src/PropertyStoreProperty.o
ranlib build/linux/x86_64/release/obj/about/cpp/src/liballjoyn_about.a
Install file: "build/linux/x86_64/release/obj/about/cpp/src/liballjoyn_about.a" as "build/linux/x86_64/release/dist/cpp/lib/liballjoyn_about.a"
g++ -o build/linux/x86_64/release/obj/about/cpp/samples/AboutClientSample/AboutClient_legacy -z relro -z now -s -Wl,--gc-sections -m64 build/linux/x86_64/release/obj/about/cpp/samples/AboutClientSample/AboutClientAnnounceHandler.o build/linux/x86_64/release/obj/about/cpp/samples/AboutClientSample/AboutClientMain.o build/linux/x86_64/release/obj/about/cpp/samples/AboutClientSample/AboutClientSessionJoiner.o build/linux/x86_64/release/obj/about/cpp/samples/AboutClientSample/AboutClientSessionListener.o -Lbuild/linux/x86_64/release/dist/cpp/lib -Lbuild/linux/x86_64/release/dist/c/lib -lajrouter -lalljoyn_about -lalljoyn -lrt -lstdc++ -lpthread -lm
Install file: "build/linux/x86_64/release/obj/about/cpp/samples/AboutClientSample/AboutClient_legacy" as "build/linux/x86_64/release/dist/cpp/bin/samples/AboutClient_legacy"
g++ -o build/linux/x86_64/release/obj/alljoyn_core/samples/aboutlistener/AboutListener.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc alljoyn_core/samples/aboutlistener/AboutListener.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_core/samples/aboutlistener/AboutListener -z relro -z now -s -Wl,--gc-sections -m64 build/linux/x86_64/release/obj/alljoyn_core/samples/aboutlistener/AboutListener.o -Lbuild/linux/x86_64/release/dist/cpp/lib -Lbuild/linux/x86_64/release/dist/c/lib -lajrouter -lalljoyn -lrt -lstdc++ -lpthread -lm
Install file: "build/linux/x86_64/release/obj/alljoyn_core/samples/aboutlistener/AboutListener" as "build/linux/x86_64/release/dist/cpp/bin/samples/AboutListener"
g++ -o build/linux/x86_64/release/obj/alljoyn_core/samples/about/AboutService.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc alljoyn_core/samples/about/AboutService.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_core/samples/about/AboutService -z relro -z now -s -Wl,--gc-sections -m64 build/linux/x86_64/release/obj/alljoyn_core/samples/about/AboutService.o -Lbuild/linux/x86_64/release/dist/cpp/lib -Lbuild/linux/x86_64/release/dist/c/lib -lajrouter -lalljoyn -lrt -lstdc++ -lpthread -lm
Install file: "build/linux/x86_64/release/obj/alljoyn_core/samples/about/AboutService" as "build/linux/x86_64/release/dist/cpp/bin/samples/AboutService"
g++ -o build/linux/x86_64/release/obj/about/cpp/samples/AboutServiceSample/AboutServiceMain.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -Wno-deprecated-declarations -Wno-deprecated-declarations -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc services/about/cpp/samples/AboutServiceSample/AboutServiceMain.cc
g++ -o build/linux/x86_64/release/obj/about/cpp/samples/AboutServiceSample/BusListenerImpl.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -Wno-deprecated-declarations -Wno-deprecated-declarations -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc services/about/cpp/samples/AboutServiceSample/BusListenerImpl.cc
g++ -o build/linux/x86_64/release/obj/about/cpp/samples/AboutServiceSample/OptParser.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -Wno-deprecated-declarations -Wno-deprecated-declarations -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc services/about/cpp/samples/AboutServiceSample/OptParser.cc
g++ -o build/linux/x86_64/release/obj/about/cpp/samples/AboutServiceSample/AboutService_legacy -z relro -z now -s -Wl,--gc-sections -m64 build/linux/x86_64/release/obj/about/cpp/samples/AboutServiceSample/AboutServiceMain.o build/linux/x86_64/release/obj/about/cpp/samples/AboutServiceSample/BusListenerImpl.o build/linux/x86_64/release/obj/about/cpp/samples/AboutServiceSample/OptParser.o -Lbuild/linux/x86_64/release/dist/cpp/lib -Lbuild/linux/x86_64/release/dist/c/lib -lajrouter -lalljoyn_about -lalljoyn -lrt -lstdc++ -lpthread -lm
Install file: "build/linux/x86_64/release/obj/about/cpp/samples/AboutServiceSample/AboutService_legacy" as "build/linux/x86_64/release/dist/cpp/bin/samples/AboutService_legacy"
g++ -o build/linux/x86_64/release/obj/alljoyn_core/samples/secure/DeskTopSharedKSClient.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DCLIENT=1 -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc alljoyn_core/samples/secure/DeskTopSharedKSClient.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_core/samples/secure/DeskTopSharedKSClient1 -z relro -z now -s -Wl,--gc-sections -m64 build/linux/x86_64/release/obj/alljoyn_core/samples/secure/DeskTopSharedKSClient.o -Lbuild/linux/x86_64/release/dist/cpp/lib -Lbuild/linux/x86_64/release/dist/c/lib -lajrouter -lalljoyn -lrt -lstdc++ -lpthread -lm
Install file: "build/linux/x86_64/release/obj/alljoyn_core/samples/secure/DeskTopSharedKSClient1" as "build/linux/x86_64/release/dist/cpp/bin/samples/DeskTopSharedKSClient1"
g++ -o build/linux/x86_64/release/obj/alljoyn_core/samples/secure/DeskTopSharedKSClient2.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DCLIENT=2 -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc alljoyn_core/samples/secure/DeskTopSharedKSClient.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_core/samples/secure/DeskTopSharedKSClient2 -z relro -z now -s -Wl,--gc-sections -m64 build/linux/x86_64/release/obj/alljoyn_core/samples/secure/DeskTopSharedKSClient2.o -Lbuild/linux/x86_64/release/dist/cpp/lib -Lbuild/linux/x86_64/release/dist/c/lib -lajrouter -lalljoyn -lrt -lstdc++ -lpthread -lm
Install file: "build/linux/x86_64/release/obj/alljoyn_core/samples/secure/DeskTopSharedKSClient2" as "build/linux/x86_64/release/dist/cpp/bin/samples/DeskTopSharedKSClient2"
g++ -o build/linux/x86_64/release/obj/alljoyn_core/samples/secure/DeskTopSharedKSService.o -c -std=c++11 -Wall -Werror -pipe -fno-exceptions -fno-strict-aliasing -fno-asynchronous-unwind-tables -fno-unwind-tables -ffunction-sections -fdata-sections -D_FORTIFY_SOURCE=2 -fPIC -Wno-long-long -Wno-deprecated -Wno-unknown-pragmas -Wunused-parameter -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -Ibuild/linux/x86_64/release/dist/cpp/inc -Ibuild/linux/x86_64/release/dist/c/inc -Ibuild/linux/x86_64/release/dist/cpp/inc/alljoyn -Icommon/inc alljoyn_core/samples/secure/DeskTopSharedKSService.cc
alljoyn_core/samples/secure/DeskTopSharedKSService.cc: In member function 'virtual bool SrpKeyXListener::RequestCredentials(const char*, const char*, uint16_t, const char*, uint16_t, ajn::AuthListener::Credentials&)':
alljoyn_core/samples/secure/DeskTopSharedKSService.cc:161:10: error: output may be truncated before the last format character [-Werror=format-truncation=]
     bool RequestCredentials(const char* authMechanism, const char* authPeer, uint16_t authCount, const char* userId, uint16_t credMask, Credentials& creds) {
          ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:938:0,
                 from alljoyn_core/samples/secure/DeskTopSharedKSService.cc:28:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: format output between 7 and 8 bytes into a destination of size 7
        __bos (__s), __fmt, __va_arg_pack ());
                                            ^
cc1plus: all warnings being treated as errors
scons: *** [build/linux/x86_64/release/obj/alljoyn_core/samples/secure/DeskTopSharedKSService.o] Error 1
scons: building terminated because of errors.
debian/rules:39: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:32: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2



More information about the Debian-iot-maintainers mailing list