[Pkg-octave-devel] Bug#873996: FTBFS with Java 9 due to -source/-target only
Chris West
solo-debianbugs at goeswhere.com
Fri Sep 1 20:05:45 UTC 2017
Source: octave
Version: 4.2.1
Severity: normal
User: debian-java at lists.debian.org
Usertags: default-java9
This package fails to build with default-jdk pointing to openjdk-9-jdk.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls
An automated tool has decided that this package will build fine if the
-source and -target options are changed to 1.6; no additional changes
are required. This was done by building with a compiler that changed
the settings automatically, then the real compiler, and diffing the
results. This modified compiler will never be part of Debian.
ant and Maven are supposed to do this for you, and I've tried to check
that this package is not using ant or Maven correctly, but I might have
messed up.
Build log sample, a bit messed up due to parallel:
( cd ./scripts/java; "javac" -source 1.3 -target 1.3 -Xlint:-options -d /build/octave-4.2.1/scripts/java org/octave/OctaveReference.java )
error: Source option 1.3 is no longer supported. Use 1.6 or later.
error: Target option 1.3 is no longer supported. Use 1.6 or later.
...
Makefile:27394: recipe for target 'scripts/java/org/octave/OctaveReference.class' failed
make[3]: *** [scripts/java/org/octave/OctaveReference.class] Error 2
...
make[3]: Leaving directory '/build/octave-4.2.1'
Makefile:26173: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Cheers,
Chris.
More information about the Pkg-octave-devel
mailing list