bugGNU Octave - Bugs: bug #52617, configure finds java-9 too old

 
 

bug #52617: configure finds java-9 too old

Submitted by:  Dmitri A. Sergatskov <dasergatskov>
Submitted on:  Thu 07 Dec 2017 09:45:12 PM UTC  
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Fri 08 Dec 2017 05:49:00 AM UTC, comment #6:

I checked in the fix on stable and also pulled across to the development branch. Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Fri 08 Dec 2017 01:09:20 AM UTC, comment #5:

There already is bug #51804.

Mike Miller <mtmiller>
Project Administrator
Fri 08 Dec 2017 12:54:04 AM UTC, comment #4:

That worked. The failing java test is

octave:1> test ov-java.cc-tst

          • testif HAVE_JAVA; usejava ("jvm")

n = javaObject ("java.lang.Integer", 1.35);
assert (n.compareTo (0), 1);
assert (n.compareTo (1), 0);
assert (n.compareTo (2), -1);
!!!!! test failed
[java] java.lang.ClassCastException: java.base/java.lang.Double cannot be cast to java.base/java.lang.Integer
octave:2>

May be it deserves its own bug report...

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Thu 07 Dec 2017 11:36:41 PM UTC, comment #3:

Try the attached java9.diff patch.

Rik <rik5>
Project Administrator
Thu 07 Dec 2017 10:52:11 PM UTC, comment #2:

checking whether the arpack library is free of bugs... yes
checking for java... /usr/lib/jvm/java-9/bin/java
checking for javac... /usr/lib/jvm/java-9/bin/javac
checking for jar... /usr/lib/jvm/java-9/bin/jar
checking for Java version... 9.0.1
configure: WARNING: Java version is too old (< 1.5). Octave will not be able to call Java methods.

Java in the path is different, so jave -version is
openjdk version "1.8.0_151"

I was able to build with Java 9 (which resulted in some test failures, but otherwise was OK); now I cannot.
There were some java-9 updates since then, so it might be not
related to changes in octave source.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Thu 07 Dec 2017 10:35:30 PM UTC, comment #1:

The code that checks version numbers in configure.ac is

In config.log, do you have "checking for Java version"? An extract of my config.log is shown below.

Version is 1.8.X. What does

on the command line return?

Rik <rik5>
Project Administrator
Thu 07 Dec 2017 09:45:12 PM UTC, original submission:

Running configure with JAVA_HOME="/usr/lib/jvm/java-9
(or directly with /usr/lib/jvm/java-9-openjdk-9.0.1.11-4.fc27.x86_64)
results in:

I see in config.log:

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #42602:  java9.diff added by rik5 (723B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dasergatskov (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-08 rik5 StatusPatch Submitted => Fixed
        Open/ClosedOpen => Closed
    2017-12-07 rik5 Attached File- => Added java9.diff, #42602
    2017-12-07 rik5 StatusNeed Info => Patch Submitted
    2017-12-07 rik5 StatusNone => Need Info

    Back to the top


    Powered by Savane 3.3