Created attachment 519868 [details] emerge --info output >>> Emerging (1 of 2) dev-java/ant-core-1.9.2::gentoo * apache-ant-1.9.2-src.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ] * ant-1.9.2-gentoo.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ] * Using: icedtea-bin-8 >>> Unpacking source... >>> Unpacking apache-ant-1.9.2-src.tar.bz2 to /var/tmp/portage/dev-java/ant-core-1.9.2/work >>> Unpacking ant-1.9.2-gentoo.tar.bz2 to /var/tmp/portage/dev-java/ant-core-1.9.2/work >>> Source unpacked in /var/tmp/portage/dev-java/ant-core-1.9.2/work >>> Preparing source in /var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2 ... * Applying various patches (bugfixes/updates) ... * 1.9.1-prefix.patch ... [ ok ] * Done with patching * Adjusting to prefix / * ant ... [ ok ] Rewriting build.xml Rewriting attributes Rewriting build.xml >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2 ... Rewriting attributes Rewriting ./build.xml >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2 ... ... Bootstrapping Ant Distribution ... Compiling Ant Classes OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00006ee75d000000, 2555904, 1) failed; error='Operation not permitted' (errno=1) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory. # An error report file with more information is saved as: # /var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/hs_err_pid1499696.log ... Failed compiling Ant classes ! Bootstrap FAILED * ERROR: dev-java/ant-core-1.9.2::gentoo failed (compile phase): * build failed * * Call stack: * ebuild.sh, line 124: Called src_compile * environment, line 3909: Called die * The specific snippet of code: * CLASSPATH="$(java-config -t)" ./build.sh ${bsyscp} jars internal_dist $(use_doc javadocs) || die "build failed" * * If you need support, post the output of `emerge --info '=dev-java/ant-core-1.9.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-java/ant-core-1.9.2::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM=icedtea-bin-8 CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-3.6.0" JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="" and of course, the output of emerge --info =ant-core-1.9.2 * The complete build log is located at '/var/tmp/portage/dev-java/ant-core-1.9.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-core-1.9.2/temp/environment'. * Working directory: '/var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2' * S: '/var/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'
This is almost certainly a hardened issue. Please show the output of: portageq envvar PAX_MARKINGS Please also state whether you have /var/tmp/portage mounted as tmpfs and CONFIG_TMPFS_XATTR enabled in your kernel.
`portageq envvar PAX_MARKINGS` returns `XT` /var/tmp/portage is an actual filesystem, not the tmpfs zcat /proc/config.gz | grep TMPFS_XATTR CONFIG_TMPFS_XATTR=y
That's all okay then. I should have asked what filesystem it is as xattr can sometimes be turned off in the kernel or per-mount . Please also attach the output from emerging icedtea-bin.
Created attachment 520374 [details] icedtea-bin emerge log Attaching requested icedtea-bin emerge log.
Since PaX/grsecurity was removed from the Gentoo for well known reasons, I think it might be closed. Please close if you agree.
Created attachment 655666 [details] dev-java/ant-core-1.10.8 full build log Still a problem even with upgraded system but with a PaX kernel still: Portage 3.0.4 (python 3.6.12-final-0, default/linux/amd64/17.0/no-multilib/hardened, gcc-9.3.0, glibc-2.32, 4.9.24-hardened x86_64) ================================================================= System uname: Linux-4.9.24-hardened-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.7 KiB Mem: 8163492 total, 2404136 free KiB Swap: 16016792 total, 15854432 free Timestamp of repository gentoo: Thu, 20 Aug 2020 04:45:01 +0000 Head commit of repository gentoo: 8853e9530c77ebdf13d3594bdee576f048e647d9 sh bash 5.0_p18 ld GNU ld (Gentoo 2.34 p6) 2.34.0 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-r1::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo dev-util/cmake: 3.18.1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.2::gentoo sys-devel/binutils: 2.34-r2::gentoo sys-devel/gcc: 6.4.0-r2::gentoo, 7.3.0-r3::gentoo, 8.1.0-r3::gentoo, 8.2.0-r6::gentoo, 9.3.0-r1::gentoo, 10.2.0::gentoo sys-devel/gcc-config: 2.3.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers) sys-libs/glibc: 2.32::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 x-portage location: /usr/local/portage masters: gentoo priority: 0 gentoo-xvilka location: /var/lib/layman/gentoo-xvilka masters: gentoo priority: 1 godin location: /var/lib/layman/godin masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE dlj-1.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -mtune=generic -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="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" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/var/cache/binpkgs" 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 bzip2 crypt cvs git gnutls hardened iconv ipv6 libglvnd libtirpc lighttpd mercurial mmx ncurses nls nptl openmp pam pcre perl php pie postgresql python readline sbcl seccomp split-usr sse sse2 sse4 ssl ssp ssse3 subversion unicode xattr xml xmlrpc xsl xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby27" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I think it should be fixed by setting PaX marks in the ebuild, right?
Version 1.10.8 is gone. Closing Should the error persist with the actual version, please re-open.