When building dev-java/antlr-2.7.7-r5, the following error occurs (...skipped until install...) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >> make -C lib/cpp/src install >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> make[1]: Entering directory '/var/tmp/portage/dev-java/antlr-2.7.7-r5/work/antlr-2.7.7/lib/cpp/src' make[1]: Nothing to be done for 'install'. make[1]: Leaving directory '/var/tmp/portage/dev-java/antlr-2.7.7-r5/work/antlr-2.7.7/lib/cpp/src' /usr/bin/python2.7 setup.py install --root=/var/tmp/portage/dev-java/antlr-2.7.7-r5/image/ running install running build running build_py creating /lib/antlr error: could not create '/lib/antlr': Permission denied * ERROR: dev-java/antlr-2.7.7-r5::gentoo failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_install * environment, line 5710: Called distutils-r1_python_install * environment, line 1192: Called esetup.py 'install' '--root=/var/tmp/portage/dev-java/antlr-2.7.7-r5/image/' * environment, line 2285: Called die * The specific snippet of code: * "${@}" || die * * If you need support, post the output of `emerge --info '=dev-java/antlr-2.7.7-r5::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-java/antlr-2.7.7-r5::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM=icedtea-7 CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea7" JAVACFLAGS="+ -source 1.3 -target 1.3" COMPILER="" and of course, the output of emerge --info =antlr-2.7.7 * The complete build log is located at '/var/log/portage/full/build/dev-java/antlr-2.7.7-r5:20140828-101050.log.gz'. * The ebuild environment file is located at '/var/tmp/portage/dev-java/antlr-2.7.7-r5/temp/environment'. * Working directory: '/var/tmp/portage/dev-java/antlr-2.7.7-r5/work/antlr-2.7.7/lib/python' * S: '/var/tmp/portage/dev-java/antlr-2.7.7-r5/work/antlr-2.7.7' (null)*(null) --------------------------- ACCESS VIOLATION SUMMARY --------------------------- (null)*(null) LOG FILE: "/var/log/sandbox/sandbox-8467.log" (null)*(null) VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: mkdir S: deny P: /lib/antlr A: /lib/antlr R: /lib64/antlr C: /usr/bin/python2.7 setup.py install --root=/var/tmp/portage/dev-java/antlr-2.7.7-r5/image/ (null)*(null) -------------------------------------------------------------------------------- Reproducible: Always
Created attachment 383834 [details] emerge --info
Created attachment 383836 [details] full build log
I hit this as well. The relevant bit in the ebuild appears behind a USE=python conditional, so be sure you have USE=python to test.
+ 04 Sep 2014; Michał Górny <mgorny@gentoo.org> antlr-2.7.7-r5.ebuild: + Call proper distutils-r1 phases. Fixes bug #521368.