Bug#966889: libjna-java: FTBFS: [exec] dispatch.c:1770:23: error: ‘alloca’ bound is unknown [-Werror=alloca-larger-than=]
Lucas Nussbaum
lucas at debian.org
Mon Aug 3 09:03:31 BST 2020
Source: libjna-java
Version: 5.5.0-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200802 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> ln -s /usr/share/java/ant.jar lib/ant.jar
> ant -f build.xml \
> -Dcompatibility=8 \
> -Dcflags_extra.native="" \
> -Ddynlink.native=true \
> -Dnomixedjar.native=true \
> -Djni.md5="" \
> -Djar.compress=true \
> -Dmaven-release=true \
> -Dbuild-native=true \
> -Dyear=2020 \
> jar javadoc contrib-jars native
> Buildfile: /<<PKGBUILDDIR>>/build.xml
> [typedef] Could not load definitions from resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.
> [typedef] Could not load definitions from resource org/codehaus/mojo/animal_sniffer/antlib.xml. It could not be found.
>
> -prepare-anttools:
> [mkdir] Created dir: /<<PKGBUILDDIR>>/build/ant-tools
> [javac] Compiling 3 source files to /<<PKGBUILDDIR>>/build/ant-tools
> [javac] Note: /<<PKGBUILDDIR>>/src/com/sun/jna/ELFAnalyser.java uses unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
>
> -dynamic-properties:
> [mkdir] Created dir: /<<PKGBUILDDIR>>/build/native-linux-x86-64
> [mkdir] Created dir: /<<PKGBUILDDIR>>/build/headers
> [mkdir] Created dir: /<<PKGBUILDDIR>>/build/classes
> [mkdir] Created dir: /<<PKGBUILDDIR>>/build/test-classes
> [mkdir] Created dir: /<<PKGBUILDDIR>>/build/reports
> [mkdir] Created dir: /<<PKGBUILDDIR>>/doc
> [mkdir] Created dir: /<<PKGBUILDDIR>>/build/aar
> [echo] Java version 11.0.8, compatibility: 8, ant: 11
> [echo] JNA version 5.5.0, native 6.1.0, android 5050000
> [echo] OpenJDK 64-Bit Server VM (Debian, 11.0.8+10-post-Debian-1)
> [echo] java.home=/usr/lib/jvm/java-11-openjdk-amd64
> [echo] java.library.path=/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
> [echo] os.prefix=linux-x86-64
> [echo] os.name=Linux
> [echo] os.arch=amd64 (little)
> [echo] build=build
> [echo] build.native=/<<PKGBUILDDIR>>/build/native-linux-x86-64
> [echo] build.headers=/<<PKGBUILDDIR>>/build/headers
> [echo] build.aar=/<<PKGBUILDDIR>>/build/aar
>
> -setup:
>
> -enable-native:
>
> compile:
> [javac] Compiling 63 source files to /<<PKGBUILDDIR>>/build/classes
> [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
> [javac] /<<PKGBUILDDIR>>/src/com/sun/jna/Memory.java:181: warning: [deprecation] finalize() in Object has been deprecated
> [javac] protected void finalize() {
> [javac] ^
> [javac] /<<PKGBUILDDIR>>/src/com/sun/jna/CallbackReference.java:379: warning: [deprecation] finalize() in Object has been deprecated
> [javac] protected void finalize() {
> [javac] ^
> [javac] /<<PKGBUILDDIR>>/src/com/sun/jna/CallbackReference.java:485: warning: [deprecation] isAccessible() in AccessibleObject has been deprecated
> [javac] if (!callbackMethod.isAccessible()) {
> [javac] ^
> [javac] /<<PKGBUILDDIR>>/src/com/sun/jna/Native.java:238: warning: [deprecation] finalize() in Object has been deprecated
> [javac] protected void finalize() throws Throwable {
> [javac] ^
> [javac] /<<PKGBUILDDIR>>/src/com/sun/jna/Native.java:240: warning: [deprecation] finalize() in Object has been deprecated
> [javac] super.finalize();
> [javac] ^
> [javac] /<<PKGBUILDDIR>>/src/com/sun/jna/NativeLibrary.java:649: warning: [deprecation] finalize() in Object has been deprecated
> [javac] protected void finalize() {
> [javac] ^
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 7 warnings
>
> javah:
> [propertyfile] Creating new property file: /<<PKGBUILDDIR>>/build/headers/jni.properties
>
> -native-api-check:
>
> :rsrc:
>
> rsrc:
>
> -prepare-native:
>
> native:
> [exec] make[2]: Entering directory '/<<PKGBUILDDIR>>/native'
> [exec] gcc -m64 -W -Wall -Wno-unused -Wno-parentheses -fPIC -O2 -fno-omit-frame-pointer -fno-strict-aliasing -D_REENTRANT -DHAVE_PROTECTION -I"/usr/lib/jvm/java-11-openjdk-amd64/include" -I"/usr/lib/jvm/java-11-openjdk-amd64/include/linux" -I"/<<PKGBUILDDIR>>/build/headers" -I/include -DJNA_JNI_VERSION='"6.1.0"' -DCHECKSUM='""' -Wno-unknown-warning-option -Werror -Wno-clobbered -Wno-unused-variable -c dispatch.c -o /<<PKGBUILDDIR>>/build/native-linux-x86-64/dispatch.o
> [exec] In file included from dispatch.h:33,
> [exec] from dispatch.c:30:
> [exec] dispatch.c: In function ‘dispatch_direct’:
> [exec] dispatch.c:1770:23: error: ‘alloca’ bound is unknown [-Werror=alloca-larger-than=]
> [exec] 1770 | args[i] = alloca(data->cif.arg_types[i]->size);
> [exec] | ^~~~~~
> [exec] dispatch.c:1796:23: error: ‘alloca’ bound is unknown [-Werror=alloca-larger-than=]
> [exec] 1796 | args[i] = alloca(data->cif.arg_types[i]->size);
> [exec] | ^~~~~~
> [exec] make[2]: Leaving directory '/<<PKGBUILDDIR>>/native'
> [exec] dispatch.c: At top level:
> [exec] cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
> [exec] cc1: all warnings being treated as errors
> [exec] make[2]: *** [Makefile:430: /<<PKGBUILDDIR>>/build/native-linux-x86-64/dispatch.o] Error 1
>
> BUILD FAILED
> /<<PKGBUILDDIR>>/build.xml:1007: exec returned: 2
>
> Total time: 5 seconds
> make[1]: *** [debian/rules:27: override_dh_auto_build] Error 1
The full build log is available from:
http://qa-logs.debian.net/2020/08/02/libjna-java_5.5.0-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the pkg-java-maintainers
mailing list