RE: GNAT on MinGW



-----Original Message-----
From: comp.lang.ada-bounces+anh.vo=baesystems.com@xxxxxxxxxxxxxx
[mailto:comp.lang.ada-bounces+anh.vo=baesystems.com@xxxxxxxxxxxxxx] On
Behalf Of Martin Krischik
Sent: Wednesday, February 28, 2007 11:05 PM
To: comp.lang.ada@xxxxxxxxxxxxxx
Subject: Re: GNAT on MinGW

<< Michael Bode schrieb:
Martin Krischik <krischik@xxxxxxxxxxxxxxxxxxxxx> writes:

I was able to create a gcc-4.1.x on a MinGW/Cygwin combo - However it
was GNAT/Pro 6.0.1 being created using GNAT/Pro 6.0.0w. - Not much
help for the Open Source Community.

I thought you were successfull cross compiling a mingw gcc from linux?

No I created a cross compiler for linux. Next step would have been to
use that cross compiler to create a native MinGW compiler. But that
proved difficult.

I have now tried all sorts of tricks and nothing worked out - there was
always some show stopper down the line. >>

Danny Smith at mingw.org has been building GNAT for Windows. The latest
version is 3.4.5. The MinGW/GNAT has less tools when compared to
GNAT-GPL.

Way back I successfully built GNAT using cygwin. The problem was that
the GNAT built did not support tasking run-time because GNAT under
cygwin, used to build the newer GNAT, does not have tasking run-time
support. Therefore, any Ada codes involving task will not run.

Currently, I port MinGW/GNAT to cygwin and build gcc/gnat-4.1.2 using
cygwin. The build hit a snap after going one fourth of the way. I
scratch my hair with error message as shown below. I would be thankful
if any one can tell me what headers it looks for.

[...]
mv tmp-specs specs
if true ; then \
cat ../../gcc-4.1.2/gcc/limitx.h ../../gcc-4.1.2/gcc/glimits.h
.../../g
cc-4.1.2/gcc/limity.h > tmp-xlimits.h; \
else \
cat ../../gcc-4.1.2/gcc/glimits.h > tmp-xlimits.h; \
fi
mv tmp-xlimits.h xlimits.h
echo | ./xgcc -B./ -B/usr/gnat/mingw32/bin/ -isystem
/usr/gnat/mingw32/include
-isystem /usr/gnat/mingw32/sys-include
-L/cygdrive/e/build-4.1.2/gcc/../ld -E -d
M - | \
sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
-e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
sort -u > tmp-macro_list
/bin/sh ../../gcc-4.1.2/gcc/../move-if-change tmp-macro_list macro_list
echo timestamp > s-macro_list
The directory that should contain system headers does not exist:
/mingw/include
make[2]: *** [stmp-fixinc] Error 1
make[2]: Leaving directory `/cygdrive/e/build-4.1.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/cygdrive/e/build-4.1.2/gcc'
make: *** [bootstrap] Error 2


.



Relevant Pages

  • Re: Problem with adagide !
    ... so when adagide executes gcc it finds ... I'd like to have both mingw and gnat ... > not GNAT 5.02a1) under cygwin. ...
    (comp.lang.ada)
  • Re: ASIS for MinGW GNAT
    ... > reasonable expected to be already be a part of MinGW. ... which implements ASIS for the GNAT compiler. ... Since the data structures change, ...
    (comp.lang.ada)
  • Re: GNAT on MinGW
    ... Subject: GNAT on MinGW ... use that cross compiler to create a native MinGW compiler. ... Danny Smith at mingw.org has been building GNAT for Windows. ... any Ada codes involving task will not run. ...
    (comp.lang.ada)
  • Re: GNAT on MinGW
    ... I thought you were successfull cross compiling a mingw gcc from ... Danny Smith at mingw.org has been building GNAT for Windows. ... Way back I successfully built GNAT using cygwin. ...
    (comp.lang.ada)
  • GNAT/GCC and -fstack-check
    ... I wanted to get ride of having two compilers, GNAT from AdaCore and GNAT from MinGW, to keep only one, which I choose to be MinGW for multiple reasons. ... None of the compiled applications could launch and were all crashing right at stat-up. ... After some time (I check the package raising these warnings was the ones whose initialization was crashing) I decided to remove the -fstack-check option from the GPR file. ...
    (comp.lang.ada)