Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673992 - dev-java/aopalliance-1.0-r2 - src_compile(): error: Source option 1.4 is no longer supported. Use 6 or later.
Summary: dev-java/aopalliance-1.0-r2 - src_compile(): error: Source option 1.4 is no l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-29 15:14 UTC by jospezial
Modified: 2020-10-25 12:09 UTC (History)
0 users

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 jospezial 2018-12-29 15:14:30 UTC
[ebuild  N     ]  dev-java/aopalliance-1.0-r2:1::gentoo  USE="-doc -source" 0 KiB

* Package:    dev-java/aopalliance-1.0-r2
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using: openjdk-bin-11
>>> Unpacking source...
>>> Unpacking aopalliance-1.0-gentoo.tar.bz2 to /var/tmp/portage/dev-java/aopalliance-1.0-r2/work
>>> Source unpacked in /var/tmp/portage/dev-java/aopalliance-1.0-r2/work
>>> Preparing source in /var/tmp/portage/dev-java/aopalliance-1.0-r2/work/aopalliance-1.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/aopalliance-1.0-r2/work/aopalliance-1.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/aopalliance-1.0-r2/work/aopalliance-1.0 ...
 * Compiling ...
warning: [options] bootstrap class path not set in conjunction with -source 1.4
error: Source option 1.4 is no longer supported. Use 6 or later.
error: Target option 1.4 is no longer supported. Use 1.6 or later.
 * ERROR: dev-java/aopalliance-1.0-r2::gentoo failed (compile phase):
 *   ejavac failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 3662:  Called java-pkg-simple_src_compile
 *   environment, line 1552:  Called ejavac '-d' 'target/classes' '-encoding' 'UTF-8' '@sources.lst'
 *   environment, line  565:  Called die
 * The specific snippet of code:
 *       ${compiler_executable} ${javac_args} "${@}" || die "ejavac failed"


GENTOO_VM=openjdk-bin-11  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-11.0.1_p13"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
Comment 1 jospezial 2019-06-09 18:02:58 UTC
sys-libs/db has the same problems.

## ------------------ ##
## Running config.lt. ##
## ------------------ ##
config.lt:679: creating libtool
configure:15464: checking SOSUFFIX from libtool
configure:15486: result: .so
configure:15491: checking MODSUFFIX from libtool
configure:15513: result: .so
configure:15518: checking JMODSUFFIX from libtool
configure:15544: result: .so
configure:15741: checking if /opt/openjdk-bin-11.0.3_p7/bin/javac works
configure:15755: /opt/openjdk-bin-11.0.3_p7/bin/javac -source 1.5 -target 1.5 Test.java
warning: [options] bootstrap class path not set in conjunction with -source 5
error: Source option 5 is no longer supported. Use 6 or later.
error: Target option 1.5 is no longer supported. Use 1.6 or later.
configure:15758: $? = 2
configure:15762: error: The Java compiler /opt/openjdk-bin-11.0.3_p7/bin/javac failed (see config.log, check the CLASSPATH?)


As a lot of packages fail the same way, I think the java-utils-2.eclass should be fixed.
Comment 2 Georgy Yakovlev archtester gentoo-dev 2019-06-10 17:45:55 UTC
it's known that openjdk:11 is broken with current java* eclasses, that's why gentoo-vm is use-masked. don't expect a quick fix, use openjdk:8 or icedtea if you want java ebuilds to actually build.
Comment 3 jospezial 2020-10-25 12:09:34 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b82ff203de3701c887966eebdd7265a32f557c5
"dev-java/aopalliance: Fix build with openjdk11
Acked by monsieurp"

-DEPEND=">=virtual/jdk-1.4"
-RDEPEND=">=virtual/jre-1.4"
+DEPEND=">=virtual/jdk-1.6"
+RDEPEND=">=virtual/jre-1.6"

So simple solution.