[Debian-iot-maintainers] Bug#897702: alljoyn-core-1509: ftbfs with GCC-8

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


Package: src:alljoyn-core-1509
Version: 15.09a+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-1509_15.09a+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

[...]
Install file: "alljoyn_core/inc/alljoyn/TransportMask.h" as "build/linux/x86_64/release/dist/cpp/inc/alljoyn/TransportMask.h"
Install file: "alljoyn_core/inc/alljoyn/DBusStd.h" as "build/linux/x86_64/release/dist/cpp/inc/alljoyn/DBusStd.h"
Install file: "common/inc/qcc/CertificateECC.h" as "build/linux/x86_64/release/dist/cpp/inc/qcc/CertificateECC.h"
Install file: "common/inc/qcc/GUID.h" as "build/linux/x86_64/release/dist/cpp/inc/qcc/GUID.h"
Install file: "common/inc/qcc/KeyInfoECC.h" as "build/linux/x86_64/release/dist/cpp/inc/qcc/KeyInfoECC.h"
Install file: "common/inc/qcc/ManagedObj.h" as "build/linux/x86_64/release/dist/cpp/inc/qcc/ManagedObj.h"
Install file: "common/inc/qcc/CryptoECC.h" as "build/linux/x86_64/release/dist/cpp/inc/qcc/CryptoECC.h"
Install file: "common/inc/qcc/KeyInfo.h" as "build/linux/x86_64/release/dist/cpp/inc/qcc/KeyInfo.h"
g++ -o build/linux/x86_64/release/obj/alljoyn_c/AboutIconObj.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 -Ialljoyn_core/src alljoyn_c/src/AboutIconObj.cc
In file included from build/linux/x86_64/release/dist/cpp/inc/qcc/CertificateECC.h:29,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/PermissionConfigurator.h:31,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/ApplicationStateListener.h:23,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/BusAttachment.h:46,
                 from alljoyn_c/src/AboutIconObj.cc:22:
build/linux/x86_64/release/dist/cpp/inc/qcc/KeyInfoECC.h: In member function 'virtual void qcc::SigInfoECC::Init()':
build/linux/x86_64/release/dist/cpp/inc/qcc/KeyInfoECC.h:123:45: error: 'void* memset(void*, int, size_t)' clearing an object of type 'struct qcc::ECCSignature' with no trivial copy-assignment; use assignment or value-initialization instead [-Werror=class-memaccess]
         memset(&sig, 0, sizeof(ECCSignature));
                                             ^
In file included from build/linux/x86_64/release/dist/cpp/inc/qcc/CertificateECC.h:28,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/PermissionConfigurator.h:31,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/ApplicationStateListener.h:23,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/BusAttachment.h:46,
                 from alljoyn_c/src/AboutIconObj.cc:22:
build/linux/x86_64/release/dist/cpp/inc/qcc/CryptoECC.h:417:8: note: 'struct qcc::ECCSignature' declared here
 struct ECCSignature {
        ^~~~~~~~~~~~
In file included from build/linux/x86_64/release/dist/cpp/inc/qcc/CertificateECC.h:29,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/PermissionConfigurator.h:31,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/ApplicationStateListener.h:23,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/BusAttachment.h:46,
                 from alljoyn_c/src/AboutIconObj.cc:22:
build/linux/x86_64/release/dist/cpp/inc/qcc/KeyInfoECC.h: In member function 'void qcc::SigInfoECC::SetSignature(const qcc::ECCSignature*)':
build/linux/x86_64/release/dist/cpp/inc/qcc/KeyInfoECC.h:173:53: error: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct qcc::ECCSignature' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
         memcpy(&this->sig, sig, sizeof(ECCSignature));
                                                     ^
In file included from build/linux/x86_64/release/dist/cpp/inc/qcc/CertificateECC.h:28,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/PermissionConfigurator.h:31,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/ApplicationStateListener.h:23,
                 from build/linux/x86_64/release/dist/cpp/inc/alljoyn/BusAttachment.h:46,
                 from alljoyn_c/src/AboutIconObj.cc:22:
build/linux/x86_64/release/dist/cpp/inc/qcc/CryptoECC.h:417:8: note: 'struct qcc::ECCSignature' declared here
 struct ECCSignature {
        ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
scons: *** [build/linux/x86_64/release/obj/alljoyn_c/AboutIconObj.o] Error 1
scons: building terminated because of errors.
make[1]: *** [debian/rules:41: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/alljoyn-core-1509-15.09a+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