bugGNU Octave - Bugs: bug #53398, mxe octave : cannot build stable

 
 

bug #53398: mxe octave : cannot build stable

Submitter:  Tatsuro MATSUOKA <tmacchant>
Submitted:  Wed 21 Mar 2018 02:38:41 AM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Tatsuro MASTAUOKA Open/Closed:  * Closed
Release:  * other Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 26 Mar 2018 10:40:06 PM UTC, comment #12: 

I have edit
https://wiki.octave.org/Windows_Installer#Step_1:_Prepare_mxe-octave 

and made a post to octave maintainers list.

http://octave.1599824.n4.nabble.com/wiki-Windows-Installer-td4687289.html

Please close this tracker.

Thanks for jwe's and John's helps

Tatsuro MATSUOKA <tmacchant>
Mon 26 Mar 2018 09:37:43 PM UTC, comment #11: 

it is --enable-windows-64

and see comment #3

John Donoghue <lostbard>
Group Member
Mon 26 Mar 2018 07:56:56 PM UTC, comment #10: 

./configure --enable-devel-tools --enable-octave=stable --enable-binary-packages --enable-windows64 --enable-64 --enable-fortran-int64

is worked.

Thanks!

However, now the above give
gives
configure: WARNING: unrecognized options: --enable-windows64

Now it is to be,

./configure --enable-devel-tools --enable-octave=stable --enable-binary-packages --enable-64 --enable-fortran-int64


However, why
 ./configure --enable-devel-tools --enable-octave=stable --enable-binary-packages

gives

Makefile:68: * --enable-64 and --enable-fortran-int64 must match for stable-octave.  Stop.

?

Does the above  give no 64bit indexing build?

Tatsuro

Tatsuro MATSUOKA <tmacchant>
Mon 26 Mar 2018 06:13:06 PM UTC, comment #9: 

you have something not synced correctly then, as Makefile should report --enable-fortran-int64 (no '-' between int and 64)

 

Also, your configure from comment #5, should have been

./configure --enable-devel-tools --enable-octave=stable --enable-binary-packages --enable-windows64 --enable-64 --enable-fortran-int64


(no '-' between the int and 64 in --enable-fortran-int64)


John Donoghue <lostbard>
Group Member
Mon 26 Mar 2018 04:36:29 PM UTC, comment #8: 

I re-clone and confirmed stable-octave.mk was point to octave-4.3.0+.

But
Makefile:68: * --enable-64 and --enable-fortran-int-64 must match for stable-octave. Stop.

regardless of the configure option.

Tatsuro MATSUOKA <tmacchant>
Mon 26 Mar 2018 10:16:02 AM UTC, comment #7: 

JWE pushed some changes to stable-octave.mk to compile with 4.3.0+ a couple of days ago - did you try them ?

John Donoghue <lostbard>
Group Member
Mon 26 Mar 2018 01:50:24 AM UTC, comment #6: 


>Today I got idea use both default and for 4.3.0; touch default.mk.


> At this moment difference between 4.3.0+ and 4.5.0+ is smaller than those that between 4.3.0+ and 4.2.2.


I tried the above but failed


[build]    default-octave

Failed to build package default-octave!
------------------------------------------------------------
Makefile:26740: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/home/mousei7/work/Octave/mxe-octave/mxe-octave-stable/tmp-default-octave/octave-4.3.0+/.build'
/home/mousei7/work/Octave/mxe-octave/mxe-octave-stable/Makefile:874: recipe for target 'build-only-default-octave' failed
make[1]: *** [build-only-default-octave] Error 2



Makefile:17030: recipe for target 'libgui/src/libgui_src_libgui_src_la-octave-qt-link.lo' failed
make[4]: *** [libgui/src/libgui_src_libgui_src_la-octave-qt-link.lo] Error 1
In file included from /home/mousei7/work/Octave/mxe-octave/mxe-octave/usr/x86_64-w64-mingw32/include/winnt.h:16:0,
                 from /home/mousei7/work/Octave/mxe-octave/mxe-octave/usr/x86_64-w64-mingw32/include/minwindef.h:163,
                 from /home/mousei7/work/Octave/mxe-octave/mxe-octave/usr/x86_64-w64-mingw32/include/windef.h:8,
                 from /home/mousei7/work/Octave/mxe-octave/mxe-octave/usr/x86_64-w64-mingw32/include/windows.h:69,
                 from /home/mousei7/work/Octave/mxe-octave/mxe-octave-stable/tmp-default-octave/octave-4.3.0+/libgui/src/thread-manager.cc:28:
/home/mousei7/work/Octave/mxe-octave/mxe-octave-stable/usr/lib/gcc/x86_64-w64-mingw32/7.2.0/include/c++/bits/char_traits.h: In static member function 'static constexpr std::char_traits<wchar_t>::int_type std::char_traits<wchar_t>::eof()':
/home/mousei7/work/Octave/mxe-octave/mxe-octave/usr/x86_64-w64-mingw32/include/ctype.h:16:29: warning: use of old-style cast [-Wold-style-cast]
 #define WEOF (wint_t)(0xFFFF)



Is there any workaround to build 4.3.0+ for windows?

Tatsuro MATSUOKA <tmacchant>
Wed 21 Mar 2018 10:07:10 PM UTC, comment #5: 

JWE wrote:

Tatsuro, what configuration are you trying to build?

I tried

./configure --enable-devel-tools --enable-octave=stable --enable-binary-packages --enable-windows64 --enable-64 --enable-fortran-int-64

and

./configure --enable-devel-tools --enable-octave=stable --enable-binary-packages

What is a workaround current stable 4.3.0+?

Today I got idea use both default and for 4.3.0; touch default.mk.

At this moment difference between 4.3.0+ and 4.5.0+ is smaller than those that between 4.3.0+ and 4.2.2.

Tatsuro MATSUOKA <tmacchant>
Wed 21 Mar 2018 07:43:25 PM UTC, comment #4: 

Yeah I saw the comment in the file on it changing for 4.4, so probably not worth changing

John Donoghue <lostbard>
Group Member
Wed 21 Mar 2018 05:08:18 PM UTC, comment #3: 

Tatsuro, what configuration are you trying to build?  32-bit Windows?  64-bit Windows with 32-bit indexing?  64-bit Windows with 64-bit indexing?

With stable, your options are (1):


--disable-windows-64 --disable-64 --disable-fortran-int64


or (2):


--enable-windows-64 --disable-64 --disable-fortran-int64


or (3):


--enable-windows-64 --enable-64 --enable-fortran-int64


Options (2) and (3) require Windows 64 to run the resulting binary.

It would be nice if for stable, we could make (2) the default.  But I don't see a way to do that since all of these are configure options and there is no way that I know of to enforce ordering so that the "--enable-octave=stable" option is processed first so that it can be used to set defaults for the other options.

For default (4.3.0+ and later), the options are the same as above, plus (4):


--enable-windows-64 --enable-64 --disable-fortran-int64


which should become the overall default way to build Octave on all systems until we have BLAS and other numerical libraries with Fortran ancestry using 64-bit integers by default.

John D, I'm OK with just leaving these options as is and documenting them, though if you want to try to come up with better defaults, then that's fine.  But the defaults for stable will be changing soon when we release 4.4.0 so I'm not sure that it's worth the effort.

John W. Eaton <jwe>
Group administrator
Wed 21 Mar 2018 02:30:32 PM UTC, comment #2: 

I guess the thing to do would be set  --enable-fortran-int64 to same value as enable-64, unless if is specifically set via a  --enable/disable-fortran-int64

John Donoghue <lostbard>
Group Member
Wed 21 Mar 2018 11:58:16 AM UTC, comment #1: 

You need to add --enable-fortran-int64 to your configure params. (Note the mispelling in the Makefile print out)

John Donoghue <lostbard>
Group Member
Wed 21 Mar 2018 02:38:41 AM UTC, original submission:  

./configure --enable-devel-tools --enable-octave=stable --enable-binary-packages

make

Makefile:68: * --enable-64 and --enable-fortran-int-64 must match for stable-octave.  Stop.

Tatsuro MATSUOKA <tmacchant>

 

(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 mtmiller (Updated the item)
  • -email is unavailable- added by avinoam (Updated the item)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by tmacchant (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-26 mtmiller StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2018-03-22 avinoam StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code