* Package: dev-java/jna-4.2.2-r1 * Repository: gentoo * Maintainer: java@gentoo.org * USE: abi_x86_64 amd64 awt elibc_glibc kernel_linux nio-buffers userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox @@@@@ PLEASE PAY ATTENTION HERE!!! @@@@@ This information may help you to understand if this is a duplicate or if this bug exists after you pushed a fix; This ebuild was merged at the following commit: https://github.com/gentoo/gentoo/commit/66eb5a09867d1f39c95ee86f6038b466a344d4a8 (Mon Nov 16 23:05:57 UTC 2020) @@@@@ END @@@@@ emerge --info: Portage 3.0.9 (python 3.7.9-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r3, 4.19.102-gentoo x86_64) ================================================================= System uname: Linux-4.19.102-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2650_v4_@_2.20GHz-with-gentoo-2.7 KiB Mem: 264031048 total, 195548620 free KiB Swap: 0 total, 0 free sh bash 5.0_p18 ld GNU ld (Gentoo 2.35.1 p2) 2.35.1 app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3-r1::gentoo dev-lang/python: 2.7.18-r4::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo dev-util/cmake: 3.18.4::gentoo sys-apps/baselayout: 2.7-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.35.1-r1::gentoo sys-devel/gcc: 10.2.0-r3::gentoo sys-devel/gcc-config: 2.3.2::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* LGPL-2.1" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc" CFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="x86_64-pc-linux-gnu-g++" CXXFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches" DISTDIR="/var/tmp/portage/dev-java/jna-4.2.2-r1/distdir" EMERGE_DEFAULT_OPTS="--with-bdeps=y -1 -k -b" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j48 V=1" PKGDIR="/root/.packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 awt berkdb bzip2 cli crypt dri elogind fortran gdbm iconv ipv6 jumbo-build libglvnd libtirpc multilib native-symlinks ncurses nio-buffers nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ELIBC="glibc" KERNEL="linux" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS emerge history: 2020-11-17T04:10:08 >>> x11-base/xorg-proto 2020-11-17T04:10:08 >>> dev-java/javatoolkit 2020-11-17T04:10:07 >>> media-fonts/liberation-fonts 2020-11-17T04:10:08 >>> app-eselect/eselect-java 2020-11-17T04:10:09 >>> media-libs/freetype 2020-11-17T04:10:09 >>> x11-libs/xtrans 2020-11-17T04:10:10 >>> x11-base/xcb-proto 2020-11-17T04:10:09 >>> app-crypt/p11-kit 2020-11-17T04:10:24 >>> x11-libs/libXau 2020-11-17T04:10:25 >>> x11-libs/libXdmcp 2020-11-17T04:10:30 >>> virtual/ttf-fonts 2020-11-17T04:10:47 >>> sys-apps/baselayout-java 2020-11-17T04:10:59 >>> x11-libs/libxcb 2020-11-17T04:11:02 >>> media-libs/fontconfig 2020-11-17T04:11:05 >>> dev-java/java-config 2020-11-17T04:11:13 >>> x11-libs/libX11 2020-11-17T04:11:19 >>> app-eselect/eselect-fontconfig 2020-11-17T04:11:28 >>> x11-libs/libXext 2020-11-17T04:11:29 >>> x11-libs/libXrender 2020-11-17T04:11:29 >>> x11-libs/libXfixes 2020-11-17T04:11:44 >>> x11-libs/libXi 2020-11-17T04:11:50 >>> x11-libs/libXtst 2020-11-17T04:11:55 >>> dev-java/openjdk-bin 2020-11-17T04:12:08 >>> virtual/jdk 2020-11-17T04:12:14 >>> virtual/jre 2020-11-17T04:12:13 >>> dev-java/ant-core 2020-11-17T04:12:36 >>> x11-libs/libICE 2020-11-17T04:12:42 >>> x11-libs/libSM 2020-11-17T04:12:47 >>> x11-libs/libXt 2020-11-17T04:12:52 >>> dev-java/jna 2020-11-17T04:13:27 >>> sys-devel/gcc-config 2020-11-17T04:13:41 >>> sys-devel/binutils-config * Using: openjdk-bin-8 >>> Unpacking source... >>> Unpacking jna-4.2.2.tar.gz to /var/tmp/portage/dev-java/jna-4.2.2-r1/work >>> Source unpacked in /var/tmp/portage/dev-java/jna-4.2.2-r1/work >>> Preparing source in /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2 ... * Applying 4.2.2-build.xml.patch ... [ ok ] * Applying 4.2.2-makefile-flags.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2 ... Rewriting attributes Rewriting ./contrib/alphamaskdemo/build.xml Rewriting ./contrib/balloonmanagerdemo/build.xml Rewriting ./contrib/balloontips/build.xml Rewriting ./contrib/dnddemo/build.xml Rewriting ./contrib/ntservice/build.xml Rewriting ./contrib/platform/build.xml Rewriting ./contrib/shapedwindowdemo/build.xml Rewriting ./contrib/w32keyhook/build.xml Rewriting ./contrib/x11/build.xml Rewriting ./build.xml * Disabling all optional ANT_TASKS Buildfile: /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build.xml [typedef] Could not load definitions from resource org/apache/maven/artifact/ant/antlib.xml. It could not be found. -enable-native: -dynamic-properties: [mkdir] Created dir: /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build [mkdir] Created dir: /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64 [mkdir] Created dir: /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/classes [mkdir] Created dir: /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/test-classes [mkdir] Created dir: /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/reports [mkdir] Created dir: /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/doc [echo] Java version 1.8.0_272, compatibility: 1.6, ant: 1.8 [echo] JNA version 4.2.2-SNAPSHOT, native 4.0.1 [echo] OpenJDK 64-Bit Server VM (AdoptOpenJDK, 25.272-b10) [echo] java.home=/opt/openjdk-bin-8.272_p10/jre [echo] java.library.path=/opt/openjdk-bin-8.272_p10/lib/:/opt/openjdk-bin-8.272_p10/lib/server/:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib [echo] os.prefix=linux-x86-64 [echo] os.name=Linux [echo] os.arch=amd64 (little) [echo] build=build [echo] build.native=/var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64 -setup: compile: [javac] Compiling 59 source files to /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/classes [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. javah: -native-api-check: :rsrc: rsrc: native: [exec] x86_64-pc-linux-gnu-gcc -O2 -pipe -march=x86-64 -frecord-gcc-switches -Wall -Wno-unused -Wno-parentheses -fPIC -O2 -fno-omit-frame-pointer -fno-strict-aliasing -D_REENTRANT -DHAVE_PROTECTION -I"/opt/openjdk-bin-8.272_p10/jre/../include" -I"/opt/openjdk-bin-8.272_p10/jre/../include/linux" -I"/var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64" -I/include -DJNA_JNI_VERSION='"4.0.1"' -DCHECKSUM='"1a6047467b59e8748f975e03016ce3d9"' -I/usr/lib64/libffi/include -c dispatch.c -o /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64/dispatch.o [exec] dispatch.c: In function ‘dispatch’: [exec] dispatch.c:624:42: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1010 and 1020 [-Wformat-truncation=] [exec] 624 | snprintf(msg, sizeof(msg), "[%d] %s", err, STR_ERROR(err, emsg, sizeof(emsg))); [exec] | ^~ [exec] In file included from /usr/include/stdio.h:866, [exec] from /opt/openjdk-bin-8.272_p10/jre/../include/jni.h:39, [exec] from dispatch.c:76: [exec] /usr/include/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 5 and 1038 bytes into a destination of size 1024 [exec] 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, [exec] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [exec] 71 | __bos (__s), __fmt, __va_arg_pack ()); [exec] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [exec] In file included from /usr/include/stdlib.h:568, [exec] from dispatch.c:69: [exec] dispatch.c: In function ‘dispatch_direct’: [exec] dispatch.c:1718:23: warning: ‘alloca’ bound is unknown [-Walloca-larger-than=] [exec] 1718 | args[i] = alloca(data->cif.arg_types[i]->size); [exec] | ^~~~~~ [exec] dispatch.c:1741:23: warning: ‘alloca’ bound is unknown [-Walloca-larger-than=] [exec] 1741 | args[i] = alloca(data->cif.arg_types[i]->size); [exec] | ^~~~~~ [exec] dispatch.c:1846:42: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1010 and 1020 [-Wformat-truncation=] [exec] 1846 | snprintf(msg, sizeof(msg), "[%d] %s", err, STR_ERROR(err, emsg, sizeof(emsg))); [exec] | ^~ [exec] In file included from /usr/include/stdio.h:866, [exec] from /opt/openjdk-bin-8.272_p10/jre/../include/jni.h:39, [exec] from dispatch.c:76: [exec] /usr/include/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 5 and 1038 bytes into a destination of size 1024 [exec] 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, [exec] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [exec] 71 | __bos (__s), __fmt, __va_arg_pack ()); [exec] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [exec] dispatch.c: In function ‘Java_com_sun_jna_Native_getWindowHandle0’: [exec] dispatch.c:2998:68: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 982 [-Wformat-truncation=] [exec] 2998 | snprintf(msg, sizeof(msg), "Error looking up JAWT method %s: %s", [exec] | ^~ [exec] In file included from /usr/include/stdio.h:866, [exec] from /opt/openjdk-bin-8.272_p10/jre/../include/jni.h:39, [exec] from dispatch.c:76: [exec] /usr/include/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 43 and 1066 bytes into a destination of size 1024 [exec] 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, [exec] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [exec] 71 | __bos (__s), __fmt, __va_arg_pack ()); [exec] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [exec] x86_64-pc-linux-gnu-gcc -O2 -pipe -march=x86-64 -frecord-gcc-switches -Wall -Wno-unused -Wno-parentheses -fPIC -O2 -fno-omit-frame-pointer -fno-strict-aliasing -D_REENTRANT -DHAVE_PROTECTION -I"/opt/openjdk-bin-8.272_p10/jre/../include" -I"/opt/openjdk-bin-8.272_p10/jre/../include/linux" -I"/var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64" -I/include -DJNA_JNI_VERSION='"4.0.1"' -DCHECKSUM='"1a6047467b59e8748f975e03016ce3d9"' -I/usr/lib64/libffi/include -c callback.c -o /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64/callback.o [exec] x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64/libjnidispatch.so -shared -Wl,-soname,/var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64/libjnidispatch.so /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64/dispatch.o /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64/callback.o -lffi [exec] strip -x /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64/libjnidispatch.so [exec] make: strip: No such file or directory [exec] make: *** [Makefile:429: /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build/native-linux-x86-64/libjnidispatch.so] Error 127 BUILD FAILED /var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2/build.xml:623: exec returned: 2 Total time: 4 seconds * ERROR: dev-java/jna-4.2.2-r1::gentoo failed (compile phase): * eant failed * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 4204: Called java-pkg-2_src_compile * environment, line 1957: Called eant 'native' 'jar' 'contrib-jars' '-f' 'build.xml' '-Ddynlink.native=true' * environment, line 701: Called die * The specific snippet of code: * ant ${antflags} "${@}" || die "eant failed" * * If you need support, post the output of `emerge --info '=dev-java/jna-4.2.2-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-java/jna-4.2.2-r1::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM=openjdk-bin-8 CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.272_p10" JAVACFLAGS="-source 1.7 -target 1.7" COMPILER="javac" and of course, the output of emerge --info =jna-4.2.2 * The complete build log is located at '/var/log/emerge-log/build/dev-java/jna-4.2.2-r1:20201117-031411.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-java/jna-4.2.2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-java/jna-4.2.2-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2' * S: '/var/tmp/portage/dev-java/jna-4.2.2-r1/work/jna-4.2.2'