| Summary: | dev-lang/nqp-2017.12 - src_compile(): javac: source release 1.8 requires target release 1.8 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
| Component: | Current packages | Assignee: | Patrick Lauer <patrick> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | jouni.kosonen, kentnl, perl, tomboy64 |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | build.log | ||
|
Description
Juergen Rose
2018-01-14 07:33:44 UTC
Something is adding in -source 1.8, likely in its build system. A work around is simply to increase the jdk/jre deps from 1.7 to 1.8. Though ideally that additional -source is stripped out. May run into the same otherwise on next version if they increase the source again. (In reply to William L. Thomson Jr. from comment #1) > Something is adding in -source 1.8, likely in its build system. nqp-2017.12/tools/build/Makefile-JVM.in:117: $(JAVAC) -source 1.8 -cp $(THIRDPARTY_JARS) -g -d bin -encoding UTF8 $(RUNTIME_JAVAS) (In reply to Jouni Kosonen from comment #2) > (In reply to William L. Thomson Jr. from comment #1) > > Something is adding in -source 1.8, likely in its build system. > > nqp-2017.12/tools/build/Makefile-JVM.in:117: $(JAVAC) -source 1.8 -cp > $(THIRDPARTY_JARS) -g -d bin -encoding UTF8 $(RUNTIME_JAVAS) I would sed/remove that from that file. sed -i -e "s|-source 1.8 ||" tools/build/Makefile-JVM.in || die Or could change version to some pattern to match future version if upstream keeps such in build. Can confirm this is still happening with the nqp-2018 ebuilds. Emerged successfully after copying ebuilds to local repo and bumping version requirements to 1.8. GENTOO_VM=icedtea-8 CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea8" JAVACFLAGS="-source 1.7 -target 1.7" COMPILER="" javac -source 1.7 -target 1.7 -source 1.8 -cp //usr/share/asm-4/lib/asm.jar://usr/share/asm-4/lib/asm-analysis.jar://usr/share/asm-4/lib/asm-commons.jar://usr/share/asm-4/lib/asm-tree.jar://usr/share/asm-4/lib/asm-util.jar://usr/share/asm-4/lib/asm-xml.jar://usr/share/jline/lib/jline.jar://usr/share/jna-4/lib/jna.jar://usr/share/jna-4/lib/jna-platform.jar -g -d bin -encoding UTF8 src/vm/jvm/runtime/org/perl6/nqp/io/*.java src/vm/jvm/runtime/org/perl6/nqp/jast2bc/*.java src/vm/jvm/runtime/org/perl6/nqp/runtime/*.java src/vm/jvm/runtime/org/perl6/nqp/sixmodel/*.java src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/*.java src/vm/jvm/runtime/org/perl6/nqp/tools/*.java javac: source release 1.8 requires target release 1.8 I Imagine this problem is no longer possible, given JVM 1.7 is no longer in-tree and the oldest nqp is 2018.06 Please re-open this with more information if failures still occur without any 1.7 Java installed, or perhaps change the reso to "obsolete" if otherwise. |