[Debian-iot-maintainers] Bug#897701: alljoyn-core-1504: ftbfs with GCC-8

Matthias Klose doko at debian.org
Fri May 4 13:20:42 BST 2018


Package: src:alljoyn-core-1504
Version: 15.04b+dfsg.1-2
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-8

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-8/g++-8, but succeeds to build with gcc-7/g++-7. The
severity of this report will be raised before the buster release.

The full build log can be found at:
http://aws-logs.debian.net/2018/05/01/gcc8/alljoyn-core-1504_15.04b+dfsg.1-2_unstable_gcc8.log.gz
The last lines of the build log are at the end of this report.

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

[...]
g++ -o build/linux/x86_64/release/obj/alljoyn_c/MsgArg.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src alljoyn_c/src/MsgArg.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_c/MsgArgC.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src alljoyn_c/src/MsgArgC.cc
Install file: "alljoyn_core/inc/alljoyn/Observer.h" as "build/linux/x86_64/release/dist/cpp/inc/alljoyn/Observer.h"
Install file: "alljoyn_c/inc/alljoyn_c/Observer.h" as "build/linux/x86_64/release/dist/c/inc/alljoyn_c/Observer.h"
Install file: "alljoyn_core/inc/alljoyn/AutoPinger.h" as "build/linux/x86_64/release/dist/cpp/inc/alljoyn/AutoPinger.h"
Install file: "alljoyn_core/inc/alljoyn/MessageSink.h" as "build/linux/x86_64/release/dist/cpp/inc/alljoyn/MessageSink.h"
Install file: "alljoyn_core/inc/alljoyn/PingListener.h" as "build/linux/x86_64/release/dist/cpp/inc/alljoyn/PingListener.h"
g++ -o build/linux/x86_64/release/obj/alljoyn_c/Observer.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src alljoyn_c/src/Observer.cc
Install file: "alljoyn_core/inc/alljoyn/PasswordManager.h" as "build/linux/x86_64/release/dist/cpp/inc/alljoyn/PasswordManager.h"
Install file: "alljoyn_c/inc/alljoyn_c/PasswordManager.h" as "build/linux/x86_64/release/dist/c/inc/alljoyn_c/PasswordManager.h"
g++ -o build/linux/x86_64/release/obj/alljoyn_c/PasswordManager.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src alljoyn_c/src/PasswordManager.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_c/ProxyBusObject.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src alljoyn_c/src/ProxyBusObject.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_c/SessionListener.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src alljoyn_c/src/SessionListener.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_c/SessionOpts.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src alljoyn_c/src/SessionOpts.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_c/SessionPortListener.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src alljoyn_c/src/SessionPortListener.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_c/version.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src alljoyn_c/src/version.cc
ar rc build/linux/x86_64/release/obj/alljoyn_c/liballjoyn_c.a build/linux/x86_64/release/obj/alljoyn_c/AboutData.o build/linux/x86_64/release/obj/alljoyn_c/AboutDataListener.o build/linux/x86_64/release/obj/alljoyn_c/AboutIcon.o build/linux/x86_64/release/obj/alljoyn_c/AboutIconObj.o build/linux/x86_64/release/obj/alljoyn_c/AboutIconProxy.o build/linux/x86_64/release/obj/alljoyn_c/AboutListener.o build/linux/x86_64/release/obj/alljoyn_c/AboutObj.o build/linux/x86_64/release/obj/alljoyn_c/AboutObjectDescription.o build/linux/x86_64/release/obj/alljoyn_c/AboutProxy.o build/linux/x86_64/release/obj/alljoyn_c/AuthListener.o build/linux/x86_64/release/obj/alljoyn_c/BusAttachment.o build/linux/x86_64/release/obj/alljoyn_c/BusAttachmentC.o build/linux/x86_64/release/obj/alljoyn_c/BusListener.o build/linux/x86_64/release/obj/alljoyn_c/BusObjectC.o build/linux/x86_64/release/obj/alljoyn_c/DeferredCallback.o build/linux/x86_64/release/obj/alljoyn_c/Init.o build/linux/x86_64/release/obj/alljoyn_c/InterfaceDescription.o build/linux/x86_64/release/obj/alljoyn_c/KeyStoreListener.o build/linux/x86_64/release/obj/alljoyn_c/Message.o build/linux/x86_64/release/obj/alljoyn_c/MsgArg.o build/linux/x86_64/release/obj/alljoyn_c/MsgArgC.o build/linux/x86_64/release/obj/alljoyn_c/Observer.o build/linux/x86_64/release/obj/alljoyn_c/PasswordManager.o build/linux/x86_64/release/obj/alljoyn_c/ProxyBusObject.o build/linux/x86_64/release/obj/alljoyn_c/SessionListener.o build/linux/x86_64/release/obj/alljoyn_c/SessionOpts.o build/linux/x86_64/release/obj/alljoyn_c/SessionPortListener.o build/linux/x86_64/release/obj/alljoyn_c/version.o
ranlib build/linux/x86_64/release/obj/alljoyn_c/liballjoyn_c.a
Install file: "build/linux/x86_64/release/obj/alljoyn_c/liballjoyn_c.a" as "build/linux/x86_64/release/dist/c/lib/liballjoyn_c.a"
Install file: "common/inc/qcc/Log.h" as "build/linux/x86_64/release/dist/cpp/inc/qcc/Log.h"
Install file: "common/inc/qcc/StringUtil.h" as "build/linux/x86_64/release/dist/cpp/inc/qcc/StringUtil.h"
Install file: "alljoyn_core/inc/alljoyn/AllJoynStd.h" as "build/linux/x86_64/release/dist/cpp/inc/alljoyn/AllJoynStd.h"
g++ -o build/linux/x86_64/release/obj/alljoyn_core/router/bundled/BundledRouter.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -fPIE -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src -Ialljoyn_core/router -Ialljoyn_core/router/posix alljoyn_core/router/bundled/BundledRouter.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_core/router/bundled/BundledRouterInit.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -fPIE -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src -Ialljoyn_core/router -Ialljoyn_core/router/posix alljoyn_core/router/bundled/BundledRouterInit.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_core/router/AllJoynDebugObj.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -fPIE -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src -Ialljoyn_core/router -Ialljoyn_core/router/posix alljoyn_core/router/AllJoynDebugObj.cc
Install file: "common/inc/qcc/CertificateECC.h" as "build/linux/x86_64/release/dist/cpp/inc/qcc/CertificateECC.h"
Install file: "common/inc/qcc/CryptoECC.h" as "build/linux/x86_64/release/dist/cpp/inc/qcc/CryptoECC.h"
g++ -o build/linux/x86_64/release/obj/alljoyn_core/router/AllJoynObj.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -fPIE -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src -Ialljoyn_core/router -Ialljoyn_core/router/posix alljoyn_core/router/AllJoynObj.cc
g++ -o build/linux/x86_64/release/obj/alljoyn_core/router/ArdpProtocol.o -c -Wall -Werror -pipe -std=gnu++0x -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 -Os -m64 -fPIC -fPIE -DNDEBUG -DROUTER -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -DQCC_CPU_X86 -DQCC_CPU_X86_64 -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 -Ialljoyn_core/src -Ialljoyn_core/router -Ialljoyn_core/router/posix alljoyn_core/router/ArdpProtocol.cc
alljoyn_core/router/ArdpProtocol.cc: In function 'ajn::ArdpHandle* ajn::ARDP_AllocHandle(ajn::ArdpGlobalConfig*)':
alljoyn_core/router/ArdpProtocol.cc:1394:41: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'ajn::ArdpHandle' {aka 'struct ajn::ARDP_HANDLE'}; use assignment or value-initialization instead [-Werror=class-memaccess]
     memset(handle, 0, sizeof(ArdpHandle));
                                         ^
alljoyn_core/router/ArdpProtocol.cc:275:8: note: 'ajn::ArdpHandle' {aka 'struct ajn::ARDP_HANDLE'} declared here
 struct ARDP_HANDLE {
        ^~~~~~~~~~~
alljoyn_core/router/ArdpProtocol.cc: In function 'ajn::ArdpConnRecord* ajn::NewConnRecord()':
alljoyn_core/router/ArdpProtocol.cc:1601:43: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'ajn::ArdpConnRecord' {aka 'struct ajn::ARDP_CONN_RECORD'}; use assignment or value-initialization instead [-Werror=class-memaccess]
     memset(conn, 0, sizeof(ArdpConnRecord));
                                           ^
alljoyn_core/router/ArdpProtocol.cc:242:8: note: 'ajn::ArdpConnRecord' {aka 'struct ajn::ARDP_CONN_RECORD'} declared here
 struct ARDP_CONN_RECORD {
        ^~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
scons: *** [build/linux/x86_64/release/obj/alljoyn_core/router/ArdpProtocol.o] Error 1
scons: building terminated because of errors.
make[1]: *** [debian/rules:43: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/alljoyn-core-1504-15.04b+dfsg.1'
make: *** [debian/rules:33: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the Debian-iot-maintainers mailing list