bugGNU Octave - Bugs: bug #44353, Build of MXE-Octave fails

 
 

bug #44353: Build of MXE-Octave fails

Submitted by:  Avinoam Kalma <avinoam>
Submitted on:  Mon 23 Feb 2015 07:26:45 PM UTC  
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  John W. Eaton <jwe>
Originator Name:  Avinoam 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.

 

Tue 24 Feb 2015 05:43:42 AM UTC, comment #5: 

I can build MXE octave again after the lates cset.  I have not tried to do it with any options like '-g' however.

Rik <rik5>
Project Administrator
Tue 24 Feb 2015 01:21:05 AM UTC, comment #4: 

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/d3dcc62512d7

It seems to fix the problem for me.

However, cross compiling for Windows with CXXFLAGS=-g will still trigger the bug.  I guess this is a problem with gnulib or GCC, as compiling with or without -O2 should work...

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Mon 23 Feb 2015 10:57:27 PM UTC, comment #3: 

Thanks, I'm looking at it.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Mon 23 Feb 2015 09:34:45 PM UTC, comment #2: 

Checking the previous versions, it was broken in
changeset 19830:d0c7b5346d55

Avinoam Kalma <avinoam>
Project Member
Mon 23 Feb 2015 08:15:17 PM UTC, comment #1: 

mxe-octave compilation fails:

  CXX      numeric/numeric_libnumeric_la-SparseCmplxCHOL.lo
In file included from /home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/sec_api/stdlib_s.h:9:0,
                 from /home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/stdlib.h:667,
                 from ../libgnu/stdlib.h:36,
                 from /home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/suitesparse/SuiteSparse_config.h:46,
                 from /home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/suitesparse/amd.h:46,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/util/oct-sparse.h:27,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/numeric/sparse-base-chol.h:27,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/numeric/SparseCmplxCHOL.h:27,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/numeric/SparseCmplxCHOL.cc:28:
../libgnu/stdio.h:607:1: error: conflicting declaration of 'int fprintf(FILE*, const char*, ...)' with 'C' linkage
_GL_CXXALIASWARN (fprintf);
^
In file included from ../libgnu/stdio.h:43:0,
                 from /home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/suitesparse/cholmod_check.h:70,
                 from /home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/suitesparse/cholmod.h:94,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/util/oct-sparse.h:67,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/numeric/sparse-base-chol.h:27,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/numeric/SparseCmplxCHOL.h:27,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/numeric/SparseCmplxCHOL.cc:28:
/home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/stdio.h:285:5: note: previous declaration with 'C++' linkage
int fprintf (FILE *__stream, const char *__format, ...)
     ^
In file included from /home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/sec_api/stdlib_s.h:9:0,
                 from /home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/stdlib.h:667,
                 from ../libgnu/stdlib.h:36,
                 from /home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/suitesparse/SuiteSparse_config.h:46,
                 from /home/avinoam/mxe-octave/usr/i686-w64-mingw32/include/suitesparse/amd.h:46,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/util/oct-sparse.h:27,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/numeric/sparse-base-chol.h:27,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/numeric/SparseCmplxCHOL.h:27,
                 from /home/avinoam/mxe-octave/tmp-default-octave/octave-3.9.1+/liboctave/numeric/SparseCmplxCHOL.cc:28:
../libgnu/stdio.h:728:1: error: conflicting declaration of 'int fscanf(FILE*, const char*, ...)' with 'C' linkage
_GL_CXXALIASWARN (fscanf);

log attached.

Avinoam Kalma <avinoam>
Project Member
Mon 23 Feb 2015 07:26:45 PM UTC, original submission:  
Avinoam Kalma <avinoam>
Project Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #33164:  log.txt added by avinoam (12KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by avinoam (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-25 rik5 Open/ClosedOpen => Closed
    2015-02-24 rik5 StatusNone => Fixed
    2015-02-23 jwe Assigned toNone => jwe
    2015-02-23 avinoam Attached File- => Added log.txt, #33164

    Back to the top


    Powered by Savane 3.5