Summary: | dev-java/ant-core-1.9.2 fails to build on Hardened | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonardo <cmt.miniBill> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | hardened |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Leonardo
2014-02-05 17:58:44 UTC
Looks like icedtea-bin-6 is lacking the xt_pax markings. Possibly you haven't reinstalled icedtea-bin after switching from pt_pax. 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' 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. 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 ... 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. I somehow missed the part about setting PAX_MARKINGS in make.conf while reading the migration guide years ago. |