comp.lang.ada
 help / color / mirror / Atom feed
From: rrr.eee.27@gmail.com
Subject: building a recent gcc-gnat on MinGW
Date: Sun, 25 Sep 2016 07:29:07 -0700 (PDT)
Date: 2016-09-25T07:29:07-07:00	[thread overview]
Message-ID: <6eb1e1db-f9ec-40ea-9d63-15898af1145c@googlegroups.com> (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


             reply	other threads:[~2016-09-25 14:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-25 14:29 rrr.eee.27 [this message]
2016-09-25 16:15 ` building a recent gcc-gnat on MinGW Stephen Leake
2016-10-02  2:41   ` rabbibotton
replies disabled

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