comp.lang.ada
 help / color / mirror / Atom feed
* building a recent gcc-gnat on MinGW
@ 2016-09-25 14:29 rrr.eee.27
  2016-09-25 16:15 ` Stephen Leake
  0 siblings, 1 reply; 3+ messages in thread
From: rrr.eee.27 @ 2016-09-25 14:29 UTC (permalink / raw)


Starting with gcc-5.1 (and all following versions to 6.2) I get an error when compiling the Ada part of gcc on MinGW(32):

g++ -fno-PIE -c  -DIN_GCC_FRONTEND -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual  -Wmissing-format-attribute -Woverloaded-virtual -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings  -Wno-error -DHAVE_CONFIG_H -I. -Iada -I../../gcc-6.2.0/gcc -I../../gcc-6.2.0/gcc/ada -I../../gcc-6.2.0/gcc/../include -I../../gcc-6.2.0/gcc/../libcpp/include -I/mingw/include -I/mingw/include  -I../../gcc-6.2.0/gcc/../libdecnumber -I../../gcc-6.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-6.2.0/gcc/../libbacktrace   -o ada/adaint.o -MT ada/adaint.o -MMD -MP -MF ada/.deps/adaint.TPo ../../gcc-6.2.0/gcc/ada/adaint.c
../../gcc-6.2.0/gcc/ada/adaint.c: In function 'void __gnat_stat_to_attr(int, char*, file_attributes*)':

../../gcc-6.2.0/gcc/ada/adaint.c:1032:20: error: aggregate 'stat64 statbuf' has incomplete type and cannot be defined

   GNAT_STRUCT_STAT statbuf;
                    ^

It seems that gcc assumes the availability of stat64 in libc even on a 32bit system.

Has anybody seens this problem before and do you know how to circumvent it?

regards
   RE


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: building a recent gcc-gnat on MinGW
  2016-09-25 14:29 building a recent gcc-gnat on MinGW rrr.eee.27
@ 2016-09-25 16:15 ` Stephen Leake
  2016-10-02  2:41   ` rabbibotton
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Leake @ 2016-09-25 16:15 UTC (permalink / raw)


On Sunday, September 25, 2016 at 9:29:18 AM UTC-5, rrr.e...@gmail.com wrote:
> Starting with gcc-5.1 (and all following versions to 6.2) I get an error when compiling the Ada part of gcc on MinGW(32):

I have not tried to compile GNAT on Windows, but I would start with MSYS2 mingw64; it is a more modern system.

See https://sourceforge.net/projects/msys2

It's been a while since I installed that from scratch, but the base install should have enough to compile GNAT, except you may have to install the pre-built Ada compiler separately.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: building a recent gcc-gnat on MinGW
  2016-09-25 16:15 ` Stephen Leake
@ 2016-10-02  2:41   ` rabbibotton
  0 siblings, 0 replies; 3+ messages in thread
From: rabbibotton @ 2016-10-02  2:41 UTC (permalink / raw)


You also may want to ask advice to the TDM-GCC guys - https://sourceforge.net/projects/tdm-gcc

David Botton

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-02  2:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-25 14:29 building a recent gcc-gnat on MinGW rrr.eee.27
2016-09-25 16:15 ` Stephen Leake
2016-10-02  2:41   ` rabbibotton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox