bugGNU Octave - Bugs: bug #57738, build fails as shown below: jni.h...


bug #57738: build fails as shown below: jni.h not found

Submitted by:  Michael Godfrey <godfrey>
Submitted on:  Tue 04 Feb 2020 11:26:24 AM UTC  
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Works For Me Assigned to:  None
Originator Name:  godfrey 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.


Wed 05 Feb 2020 01:52:49 AM UTC, comment #3: 

Right. Full build OK. Closing the report.

Michael Godfrey <godfrey>
Project Member
Wed 05 Feb 2020 12:43:09 AM UTC, comment #2: 

Oh. I bet that is right. Sorry, could have thought of
that before. There was a java update.

Rebuild is running now.

Michael Godfrey <godfrey>
Project Member
Tue 04 Feb 2020 08:29:48 PM UTC, comment #1: 

jni.h is found in the directory pointed to by JAVA_CPPFLAGS. Is it possible that you have updated your system to a new major Java version (e.g. Java 12 to 13)? You may need to 'make distclean' and run configure again.

Mike Miller <mtmiller>
Project Administrator
Tue 04 Feb 2020 11:26:24 AM UTC, original submission:  

config.status: executing build-aux/subst-config-vals.sh commands
  CXX      libinterp/octave-value/liboctave_value_la-ov-java.lo
libinterp/octave-value/ov-java.cc:69:10: fatal error: jni.h: No such file or directory
   69 | #include <jni.h>
      |          ^~~~~~~
compilation terminated.

make[2]: [Makefile:20690: libinterp/octave-value/liboctave_value_la-ov-java.lo] Error 1 (ignored)
  CXXLD    libinterp/octave-value/liboctave-value.la
libtool:   error: 'libinterp/octave-value/liboctave_value_la-ov-java.lo' is not a valid libtool object
make[2]: [Makefile:12883: libinterp/octave-value/liboctave-value.la] Error 1 (ignored)
  YACC     libinterp/parse-tree/oct-parse.h
libinterp/parse-tree/oct-parse.output is unchanged
libinterp/parse-tree/oct-parse.h is unchanged
  GEN      liboctave/external/mk-f77-def.sh
config.status: creating liboctave/external/mk-f77-def.sh-tmp
config.status: executing liboctave/external/mk-f77-def.sh commands
  GEN      libinterp/DOCSTRINGS
  GEN      scripts/DOCSTRINGS
  GEN      build-aux/subst-script-vals.sh
config.status: creating build-aux/subst-script-vals.sh-tmp
config.status: executing build-aux/subst-script-vals.sh commands
  GEN      libgui/mk-default-qt-settings.sh
config.status: creating libgui/mk-default-qt-settings.sh-tmp
config.status: executing libgui/mk-default-qt-settings.sh commands

Octave successfully built.  Now choose from the following:

   ./run-octave    - to run in place to test before installing
   make check      - to run the tests
   make install    - to install (PREFIX=/usr/local)

   HG ID for this build is "5e44268dca6f"

Michael Godfrey <godfrey>
Project Member


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by godfrey (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-05 godfrey Open/ClosedOpen => Closed
    2020-02-04 mtmiller StatusNone => Works For Me

    Back to the top

    Powered by Savane 3.6