[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] tryiing to compile Octave
From: |
Tony Theodore |
Subject: |
Re: [Mingw-cross-env-list] tryiing to compile Octave |
Date: |
Tue, 19 Mar 2013 17:06:25 +1100 |
On 19/03/2013, at 6:21 AM, Alois Schlögl <address@hidden> wrote:
> I'm trying to compile Octave [1] with mxe, and the following issues:
>
> When compiling for i686-pc-mingw32, compilation stops with this error:
>
> In file included from oct-time.h:26:0,
> from file-stat.h:28,
> from file-ops.cc:43:
> /scratch/schloegl/src/mxe.github.schloegl/usr/lib/gcc/i686-pc-mingw32/4.7.2/include/c++/ctime:72:11:
> error: '::gmtime' has not been declared
> /scratch/schloegl/src/mxe.github.schloegl/usr/lib/gcc/i686-pc-mingw32/4.7.2/include/c++/ctime:73:11:
> error: '::localtime' has not been declared
> make[5]: *** [liboctave_la-file-ops.lo] Error 1
Hi Alois,
I'd probably ask on the octave list, it seems to be some sort of conflict
between libstdc++, gnulib, and pthreads (take a look in libgnu/time.in.h:54)
that is very hard to figure out. All I could turn up on this issue was from a
while ago:
http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00388.html
but the same guy appears to be working on a modified mxe build that also builds
a cross-compiled gcc to run under msys (impressive!):
https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2013-January/031526.html
> Compilation for the x86_64-w64-mingw32 stops with the following error:
>
>
> fstat.c:73:1: error: conflicting types for 'rpl_fstat'
> In file included from sys/stat.h:49:0,
> from fstat.c:40:
> ./sys/stat.h:642:1: note: previous declaration of 'rpl_fstat' was here
> fstat.c: In function 'rpl_fstat':
> fstat.c:83:3: warning: passing argument 2 of 'orig_fstat' from incompatible
> pointer type [enabled by default]
> fstat.c:31:1: note: expected 'struct _stat64 *' but argument is of type
> 'struct stat *'
Possibly another one for the octave team, this appears to be fixed in later
versions of gnulib:
http://www.mail-archive.com/address@hidden/msg00643.html
Cheers,
Tony