Bug#957276: gluegen2: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:01:23 BST 2020


Package: src:gluegen2
Version: 2.3.2-7
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/gluegen2_2.3.2-7_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

[...]
       [cc]       |             ~^~~~~~~~~~~~~~~~~~~~~~~~~
       [cc] In file included from /<<PKGBUILDDIR>>/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c:7:
       [cc] /usr/include/string.h:125:40: note: expected ‘char * restrict’ but argument is of type ‘const char *’
       [cc]   125 | extern char *strncpy (char *__restrict __dest,
       [cc]       |                       ~~~~~~~~~~~~~~~~~^~~~~~
       [cc] /<<PKGBUILDDIR>>/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c: In function ‘destroyModelMutable’:
       [cc] /<<PKGBUILDDIR>>/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c:737:11: warning: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       [cc]   737 |     free(s->modelNamePointerCString);
       [cc]       |          ~^~~~~~~~~~~~~~~~~~~~~~~~~
       [cc] In file included from /<<PKGBUILDDIR>>/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c:5:
       [cc] /usr/include/stdlib.h:563:25: note: expected ‘void *’ but argument is of type ‘const char *’
       [cc]   563 | extern void free (void *__ptr) __THROW;
       [cc]       |                   ~~~~~~^~~~~
       [cc] Starting link

junit.test1p1.c.build:
     [echo] Compiling Bindingtest1p1
     [echo]    c.compiler.src.files junit.test1p1.c.src.files
     [echo]    compiler.cfg.id compiler.cfg.linux.amd64
     [echo]    linker.cfg.id linker.test1.fixed.cfg.id
     [echo]    output.lib.name Bindingtest1p1
       [cc] 5 total files to be compiled.
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for C++/D/ObjC++ but not for C
       [cc] In file included from /<<PKGBUILDDIR>>/build/test/build/gensrc/native/TK_Surface_JNI.c:12:
       [cc] /<<PKGBUILDDIR>>/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h:319:6: warning: #warning "Hello Native Compiler" [-Wcpp]
       [cc]   319 |     #warning "Hello Native Compiler"
       [cc]       |      ^~~~~~~
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for C++/D/ObjC++ but not for C
       [cc] In file included from /<<PKGBUILDDIR>>/build/test/build/gensrc/native/TK_Engine_JNI.c:12:
       [cc] /<<PKGBUILDDIR>>/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h:319:6: warning: #warning "Hello Native Compiler" [-Wcpp]
       [cc]   319 |     #warning "Hello Native Compiler"
       [cc]       |      ^~~~~~~
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for C++/D/ObjC++ but not for C
       [cc] In file included from /<<PKGBUILDDIR>>/build/test/build/gensrc/native/TK_ModelConst_JNI.c:12:
       [cc] /<<PKGBUILDDIR>>/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h:319:6: warning: #warning "Hello Native Compiler" [-Wcpp]
       [cc]   319 |     #warning "Hello Native Compiler"
       [cc]       |      ^~~~~~~
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for C++/D/ObjC++ but not for C
       [cc] In file included from /<<PKGBUILDDIR>>/build/test/build/gensrc/native/TK_ModelMutable_JNI.c:12:
       [cc] /<<PKGBUILDDIR>>/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h:319:6: warning: #warning "Hello Native Compiler" [-Wcpp]
       [cc]   319 |     #warning "Hello Native Compiler"
       [cc]       |      ^~~~~~~
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for C++/D/ObjC++ but not for C
       [cc] In file included from /<<PKGBUILDDIR>>/build/test/build/gensrc/native/Bindingtest1p1Impl_JNI.c:12:
       [cc] /<<PKGBUILDDIR>>/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h:319:6: warning: #warning "Hello Native Compiler" [-Wcpp]
       [cc]   319 |     #warning "Hello Native Compiler"
       [cc]       |      ^~~~~~~
       [cc] Starting link
       [cc] /usr/bin/ld: ../obj/TK_Engine_JNI.o:(.bss+0x0): multiple definition of `unsigned_size_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x0): first defined here
       [cc] /usr/bin/ld: ../obj/TK_Engine_JNI.o:(.bss+0x8): multiple definition of `a_signed_pointer_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x8): first defined here
       [cc] /usr/bin/ld: ../obj/TK_ModelConst_JNI.o:(.bss+0x0): multiple definition of `unsigned_size_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x0): first defined here
       [cc] /usr/bin/ld: ../obj/TK_ModelConst_JNI.o:(.bss+0x8): multiple definition of `a_signed_pointer_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x8): first defined here
       [cc] /usr/bin/ld: ../obj/TK_ModelMutable_JNI.o:(.bss+0x0): multiple definition of `unsigned_size_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x0): first defined here
       [cc] /usr/bin/ld: ../obj/TK_ModelMutable_JNI.o:(.bss+0x8): multiple definition of `a_signed_pointer_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x8): first defined here
       [cc] /usr/bin/ld: ../obj/Bindingtest1p1Impl_JNI.o:(.bss+0x0): multiple definition of `unsigned_size_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x0): first defined here
       [cc] /usr/bin/ld: ../obj/Bindingtest1p1Impl_JNI.o:(.bss+0x8): multiple definition of `a_signed_pointer_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x8): first defined here
       [cc] collect2: error: ld returned 1 exit status

BUILD FAILED
/<<PKGBUILDDIR>>/make/build.xml:1087: The following error occurred while executing this line:
/<<PKGBUILDDIR>>/make/build-test.xml:283: The following error occurred while executing this line:
/<<PKGBUILDDIR>>/make/build-test.xml:628: The following error occurred while executing this line:
/<<PKGBUILDDIR>>/make/build-test.xml:251: gcc failed with return code 1

Total time: 14 seconds
dh_auto_build: error: ant -propertyfile ./debian/ant.properties -Duser.name debian -f make/build.xml all javadoc returned exit code 1
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the pkg-java-maintainers mailing list