octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building on MinGW using MXE-built dependencies [WAS: Re: mxe-install


From: John W. Eaton
Subject: Re: Building on MinGW using MXE-built dependencies [WAS: Re: mxe-installer try 2]
Date: Sun, 02 Jun 2013 10:05:55 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121123 Icedove/10.0.11

On 06/02/2013 08:30 AM, Clemens Buchacher wrote:
On Tue, May 28, 2013 at 05:36:21PM -0400, John W. Eaton wrote:

If you want to attempt a native build, edit the settings at the top
of the top-level Makefile.

Thank you. This will be very useful. I am trying this on RHEL 5.8 with:

MXE_SYSTEM := gnu-linux
MXE_NATIVE_BUILD := yes
USE_SYTEM_GCC := no

But I get the following error while building gcc:

/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2.build/./gcc/xgcc 
-B/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2.build/./gcc/ 
-B/home/drizzd/src/mxe-octave/usr/x86_64-unknown-linux-gnu/bin/ 
-B/home/drizzd/src/mxe-octave/usr/x86_64-unknown-linux-gnu/lib/ -isystem 
/home/drizzd/src/mxe-octave/usr/x86_64-unknown-linux-gnu/include -isystem 
/home/drizzd/src/mxe-octave/usr/x86_64-unknown-linux-gnu/sys-include    -g -O2 
-m32 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual 
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem 
./include   -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   
-fpic -I. -I. -I../../.././gcc 
-I/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2/libgcc 
-I/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2/libgcc/. 
-I/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2/libgcc/../gcc 
-I/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2/libgcc/../include 
-I/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2/libgcc/config/libbid 
-DENABLE_DECIMAL_BID
_FORMAT -
DHAVE_CC_TLS  -DUSE_TLS -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF 
unwind-dw2.dep -fexceptions -c 
/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2/libgcc/unwind-dw2.c 
-fvisibility=hidden -DHIDE_EXPORTS
In file included from 
/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2/libgcc/gthr.h:150:0,
                  from 
/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2/libgcc/unwind-dw2.c:38:
./gthr-default.h:541:21: fatal error: windows.h: No such file or directory
compilation terminated.
make[7]: *** [unwind-dw2.o] Error 1
make[7]: Leaving directory 
`/home/drizzd/src/mxe-octave/tmp-gcc/gcc-4.7.2.build/x86_64-unknown-linux-gnu/32/libgcc'

That error happens because there are some configure options in the src/gcc.mk file that only make sense for Windows systems. I'm working on a patch that fixes that problem, but even so, I have not been successful building GCC and then using it to build Octave for on any system other than cross MinGW.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]