Package: src:gluegen2
Version: 2.5.0+dfsg-2
Severity: important
Tags: sid trixie
User: [email protected]
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie release]

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

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/gluegen2_2.5.0+dfsg-2_unstable_gccexp.log
The last lines of the build log are at the end of this report.

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

[...]
declare.linux.s390x:

declare.linux.sparc:

declare.linux.armv6.armel:

declare.linux.armv6.armhf:

declare.linux.aarch64:

declare.linux:

declare.android:

declare.solaris32:

declare.solarisSparcv9:

declare.solarisAMD64:

declare.solaris:

declare.macosx:

declare.ios.amd64:

declare.ios.arm64:

declare.freebsd.x86:

declare.freebsd.amd64:

declare.freebsd:

declare.hpux:

c.configure:

gluegen.build.c.impl:
     [echo] clearing gluegen.build.shasum.done (2) - was 
${gluegen.build.shasum.done}
     [echo] Output lib name = gluegen2_rt -> libgluegen2_rt.so [shared]
    [mkdir] Created dir: /<<PKGBUILDDIR>>/build/obj
     [echo] Compiling src/native/unix/*.c src/native/common/*.c
     [echo] user.dir=/<<PKGBUILDDIR>>
       [cc] 7 total files to be compiled.
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for 
C++/D/ObjC++ but not for C
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for 
C++/D/ObjC++ but not for C
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for 
C++/D/ObjC++ but not for C
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for 
C++/D/ObjC++ but not for C
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for 
C++/D/ObjC++ but not for C
       [cc] /<<PKGBUILDDIR>>/src/native/common/Buffers.c: In function 
‘Java_com_jogamp_common_nio_Buffers_memcpyImpl’:
       [cc] /<<PKGBUILDDIR>>/src/native/common/Buffers.c:28:124: error: 
pointer/integer type mismatch in conditional expression [-Wint-conversion]
       [cc]    28 |     return ( 0 != jdest && 0 != jsrc && 0 < jlen ) ? 
memcpy((void *)(intptr_t)jdest, (void *)(intptr_t)jsrc, (size_t)jlen) : jdest;
       [cc]       |                                                             
                                                               ^
       [cc] /<<PKGBUILDDIR>>/src/native/common/Buffers.c:28:124: error: 
returning ‘void *’ from a function with return type ‘jlong’ {aka ‘long int’} 
makes integer from pointer without a cast [-Wint-conversion]
       [cc]    28 |     return ( 0 != jdest && 0 != jsrc && 0 < jlen ) ? 
memcpy((void *)(intptr_t)jdest, (void *)(intptr_t)jsrc, (size_t)jlen) : jdest;
       [cc]       |            
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for 
C++/D/ObjC++ but not for C
       [cc] cc1: warning: command-line option ‘-fno-rtti’ is valid for 
C++/D/ObjC++ but not for C

BUILD FAILED
/<<PKGBUILDDIR>>/make/build.xml:492: The following error occurred while 
executing this line:
/<<PKGBUILDDIR>>/make/build.xml:516: gcc failed with return code 1

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

__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
 Please use
[email protected] for discussions and questions.

Reply via email to