bugGNU Octave - Bugs: bug #47250, [MXE] of-control build error

 
 

bug #47250: [MXE] of-control build error

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Thu 25 Feb 2016 06:50:32 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  lostbard
Originator Name:  Philip Nienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 09 Mar 2016 06:44:40 PM UTC, comment #19: 

Yeah if I get to it tonight I can file bug reports for the rest of the packages (= those w/o bug report).

mkoctfile is being taken care of (bug #47367), building for it right now.

I'll close this specific bug report.

Philip Nienhuis <philipnienhuis>
Group Member
Wed 09 Mar 2016 01:39:41 PM UTC, comment #18: 

On build using dev octave '74a676d5ce09: use safe_source_file for PKG_ADD and PKG_DEL files'

I get the same compile failures of packages as you mention in comment #17.

Some of them already have their own bug reports:

communications (bug #47267)

interval (bug #47288)

mkoctfile appears to be also not work at that version of dev.


John Donoghue <lostbard>
Group Member
Wed 09 Mar 2016 07:21:16 AM UTC, comment #17: 

@JWE:
The "@OCT_LINK_OPTS@: No such file or directory" errors are gone, thank you.

@JohnD:

of-control (cross)builds fine now, thanks, so I think this bug report should be closed, but just to confirm, the other OF package you mentioned still do not build:
optim
struct
communications
lssa
odepkg
video
sparsersb
interval

BTW mkoctfile doesn't work anymore on the Windows side. I'll enter a separate bug report for that.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 08 Mar 2016 01:23:53 AM UTC, comment #16: 

I checked in some changes that I think should fix the build problem.

John W. Eaton <jwe>
Group administrator
Tue 08 Mar 2016 12:50:07 AM UTC, comment #15: 

Yes, I know it's broken.  I'm working on it.

John W. Eaton <jwe>
Group administrator
Mon 07 Mar 2016 10:19:06 PM UTC, comment #14: 

Maybe related, but at the moment during cross-building packages I get loads of configure errors along the lines of:

:
x86_64-w64-mingw32-g++: error: @OCT_LINK_OPTS@: No such file or directory
x86_64-w64-mingw32-g++: error: @OCT_LINK_DEPS@: No such file or directory
configure: error: Could not run /home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/bin/x86_64-w64-mingw32-mkoctfile --verbose


with several packages.
In addition, mkoctfile doesn't work anymore (once in Windows), it gives e.g.,:

>> mkoctfile csv2cell.cc
mkoctfile: no way to compile C++ file csv2cell.cc
warning: mkoctfile: building exited with failure status
warning: called from
    mkoctfile at line 171 column 5


I suppose that Octave's build system is in such a transient state that we'd better wait until the dust is settled before attempting to again build OF packages.
What do you think?

The last MXE build that worked for me w/o problems was based on Octave from Feb 19, but with an MXE updated to only maybe end of January.

Philip Nienhuis <philipnienhuis>
Group Member
Sat 27 Feb 2016 04:09:43 PM UTC, comment #13: 

odepkg has a lot of GCC_ATTR_UNUSED variables , which are no longer seen in octave (replaced by OCTAVE_UNUSED ?)
 

John Donoghue <lostbard>
Group Member
Fri 26 Feb 2016 10:24:51 PM UTC, comment #12: 

With change in comment #11 I can cross build additional ones you could not in comment #8 (haven't tried running yet)


Packages that wont cross compile for me (yet):

optim

struct

comms - bug #47267

lssa

odepkg

interval

sparsersb

video



John Donoghue <lostbard>
Group Member
Fri 26 Feb 2016 11:29:56 AM UTC, comment #11: 
John Donoghue <lostbard>
Group Member
Fri 26 Feb 2016 02:43:54 AM UTC, comment #10: 

on my mint linux box, after installing from the latest cs's for default, I get the smae failure as you show before for control when compiling for linux as well.

John Donoghue <lostbard>
Group Member
Fri 26 Feb 2016 12:40:36 AM UTC, comment #9: 

Hopefully most of them are the same issue. It builds fine with the 4.0.X octave, so must be issues with changesets in dev octave.

If noone else gets to it first, I will take a look as time permits.

John Donoghue <lostbard>
Group Member
Thu 25 Feb 2016 10:55:07 PM UTC, comment #8: 

of-control installs fine on Linux.

I have no more time now for other bug reports, but:
- communications
- optim
- signal
- netcdf
- image
- lssa
- odepkg
- tisean
- sparsersb
- video
do not cross-build either in MXE.
netcdf, control, image and lssa do get built on Linux.

Philip Nienhuis <philipnienhuis>
Group Member
Thu 25 Feb 2016 10:09:44 PM UTC, comment #7: 

Looks like with the new octave-config.h stuff, the F77_FUNC defines are not transfered over from config.h

John Donoghue <lostbard>
Group Member
Thu 25 Feb 2016 08:42:36 PM UTC, comment #6: 

Also building of-tisean fails with "xstopx" errors

Philip Nienhuis <philipnienhuis>
Group Member
Thu 25 Feb 2016 07:13:34 PM UTC, comment #5: 

of-optim also fails with an "xstopx" error:

:
/home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/x86_64-w64-mingw32/include/octave-4.1.0+/octave/f77-fcn.h:290:11: error: 'xstopx' was not declared in this scope
:


Philip Nienhuis <philipnienhuis>
Group Member
Thu 25 Feb 2016 07:01:58 PM UTC, comment #4: 

OK, your patch fixes a first error. Thanks!

However, then comes the next one :-(

:
/home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/x86_64-w64-mingw32/include/octave-4.1.0+/octave/f77-fcn.h:290:11: warning: '__noreturn__' attribute ignored [-Wattributes]
/home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/x86_64-w64-mingw32/include/octave-4.1.0+/octave/f77-fcn.h:290:11: error: 'xstopx' was not declared in this scope
/home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/x86_64-w64-mingw32/include/octave-4.1.0+/octave/f77-fcn.h:290:19: error: 'XSTOPX' was not declared in this scope
 F77_FUNC (xstopx, XSTOPX) (F77_CONST_CHAR_ARG_DECL
                   ^
:


log attached, bug status reset to "None"


(file #36460)

Philip Nienhuis <philipnienhuis>
Group Member
Thu 25 Feb 2016 03:23:52 PM UTC, comment #3: 

Thanks.
I saw that it must have been an core Octave issue but couldn't figure out where octave-config.h is generated.

Philip Nienhuis <philipnienhuis>
Group Member
Thu 25 Feb 2016 01:20:32 PM UTC, comment #2: 
John Donoghue <lostbard>
Group Member
Thu 25 Feb 2016 01:18:28 PM UTC, comment #1: 

It is a typo in the octave sources from this changeset http://hg.savannah.gnu.org/hgweb/octave/rev/8376de2eaf00


Patch to fix attached

(file #36458)

John Donoghue <lostbard>
Group Member
Thu 25 Feb 2016 06:50:32 AM UTC, original submission:  

WIth a fresh mxe-octave clone (dc8afa58289f "octave: update for 4.0.1-rc3"), using "--enable-windows-64  --enable-binary-packages  --enable-devel-tools"  I get this after default-octave was built fine:

:
x86_64-w64-mingw32-g++ -std=gnu++11 -c -I/home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/x86_64-w64-mingw32/include  -I/home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/x86_64-w64-mingw32/include/octave-4.1.0+/octave/.. -I/home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/x86_64-w64-mingw32/include/octave-4.1.0+/octave -I/home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/x86_64-w64-mingw32/include -pthread -g -O2    __control_slicot_functions__.cc -o __control_slicot_functions__.o
In file included from /home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/x86_64-w64-mingw32/include/octave-4.1.0+/octave/../octave/oct.h:26:0,
                 from sl_ab08nd.cc:30,
                 from __control_slicot_functions__.cc:1:
/home/philip/devel/octdev/mxe/mxe_w64_20160224/usr/x86_64-w64-mingw32/include/octave-4.1.0+/octave/../octave/octave-config.h:96:2: error: stray '#' in program
 n#define OCTAVE_API OCTAVE_IMPORT
:


of-control log attached.

Philip Nienhuis <philipnienhuis>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36460:  of-control2.zip added by philipnienhuis (12KiB - application/force-download)
file #36458:  fixoct.patch added by lostbard (739B - application/octet-stream)
file #36455:  of-control.zip added by philipnienhuis (9KiB - application/force-download)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by lostbard (Updated the item)
  • -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 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-09 philipnienhuis StatusNone Fixed
        Open/ClosedOpen Closed
    2016-02-25 philipnienhuis Attached File- Added of-control2.zip, #36460
        StatusReady For Test None
    2016-02-25 lostbard StatusPatch Submitted Ready For Test
        Assigned toNone lostbard
    2016-02-25 lostbard Attached File- Added fixoct.patch, #36458
        StatusNone Patch Submitted
        Operating SystemOther Any
    2016-02-25 philipnienhuis Attached File- Added of-control.zip, #36455

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code