Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547740 - sci-geosciences/josm-7347 failed to build, requires java 1.7 not 1.8
Summary: sci-geosciences/josm-7347 failed to build, requires java 1.7 not 1.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical with 2 votes (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: jdk8-tracker
  Show dependency tree
 
Reported: 2015-04-26 00:26 UTC by gentoo-bugs
Modified: 2016-02-29 12:31 UTC (History)
1 user (show)

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 gentoo-bugs 2015-04-26 00:26:45 UTC
Failed to build JOSM, the interesting part of the error message is:
"…Can't read [/opt/oracle-jdk-bin-1.8.0.45/jre/lib/rt.jar] (Can't process class [com/oracle/net/Sdp$1.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7)))"

Reproducible: Always




╭─mrpi@XXXXXX {~}   
╰─$ emerge -pqv '=sci-geosciences/josm-7347::gentoo'
[ebuild  N    ] sci-geosciences/josm-7347 

╭─mrpi@XXXXXX {~}   
╰─$ sudo cat /var/tmp/portage/sci-geosciences/josm-7347/temp/build.log
 * Package:    sci-geosciences/josm-7347
 * Repository: gentoo
 * Maintainer: hanno@gentoo.org sci-geosciences@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Using: oracle-jdk-bin-1.8
>>> Unpacking source...
>>> Unpacking josm-7347.tar.gz to /var/tmp/portage/sci-geosciences/josm-7347/work
>>> Source unpacked in /var/tmp/portage/sci-geosciences/josm-7347/work
>>> Preparing source in /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347 ...
 * Applying josm-7347-dist-optimized-fix.patch ...     [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347 ...
cElementTree rewriter
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347 ...
 * Disabling all optional ANT_TASKS
Buildfile: /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/build.xml

init:
    [mkdir] Created dir: /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/build
    [mkdir] Created dir: /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/dist

javacc:
    [mkdir] Created dir: /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/src/org/openstreetmap/josm/gui/mappaint/mapcss/parsergen
     [exec] Java Compiler Compiler Version 6.1_2 (Parser Generator)Warning: Line 4, Column 3: Command line setting of "OUTPUT_DIRECTORY" modifies option value in file.
     [exec] (type "javacc" with no arguments for help)
     [exec] Reading from file /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj . . .
     [exec] 
     [exec] File "TokenMgrError.java" does not exist.  Will create one.
     [exec] Warning: Line 134, Column 5: Non-ASCII characters used in regular expression.
     [exec] Please make sure you use the correct Reader when you create the parser, one that can handle your character set.
     [exec] File "ParseException.java" does not exist.  Will create one.
     [exec] File "Token.java" does not exist.  Will create one.
     [exec] File "SimpleCharStream.java" does not exist.  Will create one.
     [exec] Parser generated with 0 errors and 2 warnings.

-jaxb_win:

-jaxb_nix:

jaxb:
     [exec] parsing a schema...
     [exec] compiling a schema...
     [exec] org/openstreetmap/josm/data/imagery/types/EntryType.java
     [exec] org/openstreetmap/josm/data/imagery/types/ObjectFactory.java
     [exec] org/openstreetmap/josm/data/imagery/types/ProjectionType.java
     [exec] org/openstreetmap/josm/data/imagery/types/WmsCacheType.java
     [exec] org/openstreetmap/josm/data/imagery/types/package-info.java
     [exec] org/w3/_2001/xmlschema/Adapter1.java

compile:
    [javac] Compiling 280 source files to /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/build
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Compiling 1183 source files to /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/build
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/src/org/openstreetmap/josm/gui/mappaint/mapcss/parsergen/TokenMgrError.java:110: warning: [cast] redundant cast to int
    [javac]           (EOFSeen ? "<EOF> " : ("\"" + addEscapes(String.valueOf(curChar1)) + "\"") + " (" + (int)curChar + "), ") +
    [javac]                                                                                               ^
    [javac] 2 warnings
     [copy] Copying 1 file to /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/build

init-svn-revision-xml:

create-revision:
   [delete] Deleting: /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/REVISION.XML

check-schemas:

dist:
     [echo] Revision 7347
     [copy] Copying 1 file to /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/build
     [copy] Copying 1 file to /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/build
     [copy] Copying 1 file to /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/build
      [jar] Building jar: /var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/dist/josm-custom.jar

dist-optimized:
 [proguard] ProGuard, version 4.7
 [proguard] Reading program jar [/var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/dist/josm-custom.jar]
 [proguard] Reading library jar [/opt/oracle-jdk-bin-1.8.0.45/jre/lib/rt.jar]

BUILD FAILED
/var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347/build.xml:353: Can't read [/opt/oracle-jdk-bin-1.8.0.45/jre/lib/rt.jar] (Can't process class [com/oracle/net/Sdp$1.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7)))

Total time: 14 seconds
 * ERROR: sci-geosciences/josm-7347::gentoo failed (compile phase):
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3882:  Called eant 'dist-optimized'
 *   environment, line  591:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of `emerge --info '=sci-geosciences/josm-7347::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-geosciences/josm-7347::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=oracle-jdk-bin-1.8  CLASSPATH="" JAVA_HOME="/opt/oracle-jdk-bin-1.8.0.45"
JAVACFLAGS="-source 1.7 -target 1.7" COMPILER="javac"
and of course, the output of emerge --info =josm-7347
 * The complete build log is located at '/var/tmp/portage/sci-geosciences/josm-7347/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-geosciences/josm-7347/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347'
 * S: '/var/tmp/portage/sci-geosciences/josm-7347/work/josm-7347'
Comment 1 Amy Liffey gentoo-dev 2016-02-29 12:20:56 UTC
author	        Amy Winston <amynka@gentoo.org>	2016-02-29 12:17:48 (GMT)
committer	Amy Winston <amynka@gentoo.org>	2016-02-29 12:17:48 (GMT)
commit	5a23937d14aa97892e6e2b99245e6daf92297cc1 

sci-geosciences/josm: Drop old versions
Comment 2 Amy Liffey gentoo-dev 2016-02-29 12:31:41 UTC
(In reply to Amy Winston from comment #1)
> author	Amy Winston <amynka@gentoo.org>	2016-02-29 12:17:48 (GMT)
> committer	Amy Winston <amynka@gentoo.org>	2016-02-29 12:17:48 (GMT)
> commit	5a23937d14aa97892e6e2b99245e6daf92297cc1 
> 
> sci-geosciences/josm: Drop old versions

New versions tested and seems to be working with java 1.8.

Amy