bugGNU Octave - Bugs: bug #45693, [MXE] cross-building recent dev...

 
 

bug #45693: [MXE] cross-building recent dev version breaks on compiling ov-java.h

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Tue 04 Aug 2015 03:52:18 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  phiilpnienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Other
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 07 Aug 2015 08:22:53 AM UTC, comment #2: 

Never mind, this turned out to be a result of empty downloaded Java headers (jni.h and win32/jni_md.h). Maybe wget should have issued a warning?

Copying the header files over from the Java installation on my Windows partition solved it.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 04 Aug 2015 03:54:27 PM UTC, comment #1: 

(Hmmm most of the report was truncated. Here it is (hopefully):)


:
In file included from /home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/oct
ave-4.1.0+/libinterp/octave-value/ov-class.cc:50:0:
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/o
ctave-value/ov-java.h:36:26: error: expected ')' before '*' token
   java_local_ref (JNIEnv *_env)
                          ^
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/o
ctave-value/ov-java.h:39:26: error: expected ')' before '*' token
   java_local_ref (JNIEnv *_env, T obj)
                          ^
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/octave-value/ov-java.h:74:3: error: 'JNIEnv' does not name a type
   JNIEnv *env;
   ^
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/octave-value/ov-java.h: In member function 'void java_local_ref<T>::release()':
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/octave-value/ov-java.h:61:9: error: 'env' was not declared in this scope
     if (env && jobj && ! detached)
         ^
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/octave-value/ov-java.h: In constructor 'java_local_ref<T>::java_local_ref()':
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/octave-value/ov-java.h:68:35: error: class 'java_local_ref<T>' does not have any field named 'env'
     : jobj (0), detached (false), env (0)
                                   ^
:


This same tip built fine two hour before when making the dist target for mxe.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 04 Aug 2015 03:52:18 PM UTC, original submission:  

(Cross-)building a recent Octave dev tip () using a recent mxe-octave tip (3a38544f2a8f - default-octave: update cur current dev branch build) breaks in ov-java.h:

:
In file included from /home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/oct
ave-4.1.0+/libinterp/octave-value/ov-class.cc:50:0:
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/o
ctave-value/ov-java.h:36:26: error: expected ')' before '*' token
   java_local_ref (JNIEnv *_env)
                          ^
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/o
ctave-value/ov-java.h:39:26: error: expected ')' before '*' token
   java_local_ref (JNIEnv *_env, T obj)
                          ^
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/octave-value/ov-java.h:74:3: error: 'JNIEnv' does not name a type
   JNIEnv *env;
   ^
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/octave-value/ov-java.h: In member function 'void java_local_ref<T>::release()':
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/octave-value/ov-java.h:61:9: error: 'env' was not declared in this scope
     if (env && jobj && ! detached)
         ^
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/octave-value/ov-java.h: In constructor 'java_local_ref<T>::java_local_ref()':
/home/philip/devel/octdev/mxe/mxe_w64_20150803/tmp-octave/octave-4.1.0+/libinterp/octave-value/ov-java.h:68:35: error: class 'java_local_ref<T>' does not have any field named 'env'
     : jobj (0), detached (false), env (0)
                                   ^
:
-verbatim

Two hours earlier that same Octave tip built fine on Linux (natively of course) to be able to make a dist target (make all dist) for mxe.

Philip Nienhuis <philipnienhuis>
Group Member

 

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

Attach Files:
   
   
Comment:
   

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 philipnienhuis (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-08-07 philipnienhuis StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code