Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500396 - dev-java/ant-core-1.9.2 fails to build on Hardened
Summary: dev-java/ant-core-1.9.2 fails to build on Hardened
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-05 17:58 UTC by Leonardo
Modified: 2014-02-14 08:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo 2014-02-05 17:58:44 UTC
emerge --info '=dev-java/ant-core-1.9.2::gentoo'

Portage 2.2.7 (hardened/linux/amd64, gcc-4.7.3, glibc-2.17, 3.11.7-hardened-r1-anapnea-safer x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.11.7-hardened-r1-anapnea-safer-x86_64-Intel-R-_Atom-TM-_CPU_D425_@_1.80GHz-with-gentoo-2.2
KiB Mem:     2031424 total,    166728 free
KiB Swap:    1048572 total,   1040416 free
Timestamp of tree: Wed, 05 Feb 2014 10:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo mycpan_repo gentoo-haskell hardened-dev mrueg dotnet miniBill
Installed sets: @rt
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
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/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug 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="-j3"
PKGDIR="/usr/portage/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"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/g-cpan/overlay /var/lib/layman/haskell /var/lib/layman/hardened-development /var/lib/layman/mrueg /var/lib/layman/dotnet /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bzip2 caps chappa clang cli cracklib crypt cxx dlz dot dri emacs fpm gd gdbm git hardened iconv idn ipv6 jpeg jpeg2k justify latex llvm lzma maildir mbox mmx modules mp3 multilib ncurses net20 net35 net40 net45 nls nptl openmp pam pax_kernel pcre pdo png postgres readline session socks5 sse sse2 ssl syslog tcpd threads unicode urandom vim-syntax xattr yaml zip zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="da de es fr it ja zh zh_CN" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip http_upload limit_req limit_zone map memcached referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

emerge -pqv '=dev-java/ant-core-1.9.2::gentoo'

[ebuild     U ] dev-java/ant-core-1.9.2 [1.8.4-r1] USE="-doc -source"

build log

 * Package:    dev-java/ant-core-1.9.2
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox splitdebug userpriv usersandbox
 * Using: icedtea-bin-6
>>> Unpacking source...
>>> Unpacking apache-ant-1.9.2-src.tar.bz2 to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work
>>> Unpacking ant-1.9.2-gentoo.tar.bz2 to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work
>>> Source unpacked in /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work
>>> Preparing source in /home/portage/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 attributes
Rewriting build.xml
>>> Source prepared.
>>> Configuring source in /home/portage/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 /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2 ...
... Bootstrapping Ant Distribution
... Compiling Ant Classes
Error occurred during initialization of VM
Could not reserve enough space for code cache
... 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  93:  Called src_compile
 *   environment, line 3853:  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-6  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-6.1.12.7"
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 '/home/portage/tmp/portage/dev-java/ant-core-1.9.2/temp/build.log'.
 * The ebuild environment file is located at '/home/portage/tmp/portage/dev-java/ant-core-1.9.2/temp/environment'.
 * Working directory: '/home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'
 * S: '/home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'

Reproducible: Always

Steps to Reproduce:
1. emerge ant-core on an hardened system
Actual Results:  
Compilation fails

Expected Results:  
Compilation succeeds

PaX enabled, xattr markings, paxctl-ng elfix and friends installed and working
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2014-02-05 18:31:47 UTC
Looks like icedtea-bin-6 is lacking the xt_pax markings. Possibly you haven't reinstalled icedtea-bin after switching from pt_pax.
Comment 2 Leonardo 2014-02-05 19:01:48 UTC
Reinstalling icedtea-bin-6 didn't fix the problem, but I noticed this:

# paxctl-ng -v /etc/java-config-2/current-system-vm/bin/java
/etc/java-config-2/current-system-vm/bin/java:
        PT_PAX    : -em--
        XATTR_PAX : not found

A paxctl-ng -F for java and javac later ant now starts to compile (still fails), so I guess the actual bug is icedtea-bin-6 only setting PT_PAX and not XATTR_PAX.

New log follows:

 * Package:    dev-java/ant-core-1.9.2
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox splitdebug userpriv usersandbox
 * Using: icedtea-bin-6
>>> Unpacking source...
>>> Unpacking apache-ant-1.9.2-src.tar.bz2 to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work
>>> Unpacking ant-1.9.2-gentoo.tar.bz2 to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work
>>> Source unpacked in /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work
>>> Preparing source in /home/portage/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 attributes
Rewriting build.xml
>>> Source prepared.
>>> Configuring source in /home/portage/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 /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2 ...
... Bootstrapping Ant Distribution
... Compiling Ant Classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
... Copying Required Files
... Building Ant Distribution
Buildfile: /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/build.xml

bootstrap:

check_for_optional_packages:

prepare:
Created dir: /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/build/lib
Copying 6 files to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/build/classes
Copying 2 files to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/build/classes

build-core:
Compiling 231 source files to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/build/classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

jars-prep:
Copying 2 files to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/build
Copying 1 file to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/build

jar-launcher:
Building jar: /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/build/lib/ant-launcher.jar

jar-ant:
Building jar: /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/build/lib/ant.jar

jar-bootstrap:
Building jar: /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/build/lib/ant-bootstrap.jar

jars-core:

dist-lite-internal:
Created dir: /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/bootstrap
Created dir: /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/bootstrap/bin
Created dir: /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/bootstrap/lib
Copying 2 files to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/bootstrap/lib
Copying 13 files to /home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2/bootstrap/bin

dist-bootstrap:

BUILD SUCCESSFUL
Total time: 45 seconds
... Cleaning Up Build Directories
... Done Bootstrapping Ant Distribution
Error occurred during initialization of VM
Could not reserve enough space for code cache
 * ERROR: dev-java/ant-core-1.9.2::gentoo failed (compile phase):
 *   build failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 3853:  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-6  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-6.1.12.7"
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 '/home/portage/tmp/portage/dev-java/ant-core-1.9.2/temp/build.log'.
 * The ebuild environment file is located at '/home/portage/tmp/portage/dev-java/ant-core-1.9.2/temp/environment'.
 * Working directory: '/home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'
 * S: '/home/portage/tmp/portage/dev-java/ant-core-1.9.2/work/apache-ant-1.9.2'
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2014-02-05 20:09:16 UTC
I suggest you pax-mark all binaries, at least jar and javadoc if you want to build ant-core.

Please attach the build.log for icedtea-bin, hopefully it becomes more apparent what goes wrong.
Comment 4 Leonardo 2014-02-05 20:38:31 UTC
Paxmarking everything didn't help (same log)

Attaching log for icedtea-bin:

INFO: setup
Package:    dev-java/icedtea-bin-6.1.12.7
Repository: gentoo
Maintainer: java@gentoo.org
USE:        amd64 elibc_glibc kernel_linux userland_GNU
FEATURES:   preserve-libs sandbox splitdebug userpriv usersandbox
INFO: unpack
Installing libpng-1.6 ABI version
INFO: install
PT PaX marking -m with paxctl
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/appletviewer
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/apt
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/extcheck
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/idlj
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jar
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jarsigner
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/java
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/javac
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/javadoc
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/javah
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/javap
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jconsole
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jdb
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jhat
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jinfo
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jmap
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jps
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jrunscript
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jsadebugd
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jstack
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jstat
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/jstatd
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/keytool
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/native2ascii
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/orbd
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/pack200
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/policytool
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/rmic
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/rmid
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/rmiregistry
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/schemagen
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/serialver
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/servertool
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/tnameserv
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/unpack200
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/wsgen
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/wsimport
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/bin/xjc
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/jre/bin/java
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/jre/bin/keytool
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/jre/bin/orbd
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/jre/bin/pack200
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/jre/bin/policytool
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/jre/bin/rmid
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/jre/bin/rmiregistry
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/jre/bin/servertool
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/jre/bin/tnameserv
     /home/portage/tmp/portage/dev-java/icedtea-bin-6.1.12.7/image///opt/icedtea-bin-6.1.12.7/jre/bin/unpack200
Adjusting to prefix /
  fontconfig.Gentoo.properties ...
Adjusting to prefix /
  icedtea-bin-6 ...
Comment 5 Leonardo 2014-02-13 12:48:24 UTC
The problem was that icedtea-bin only has PT_PAX marking on files, and I only have XATTR_PAX enabled in the kernel.

The solution was to paxctl-ng -F everything installed by the jre package, the trick was doing it to *all* the files, not just the ones in the main bin directory.
Comment 6 Leonardo 2014-02-14 08:12:38 UTC
I somehow missed the part about setting PAX_MARKINGS in make.conf while reading the migration guide years ago.