public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18469] New: configure incorrectly defines gid_t
@ 2004-11-13 21:01 aaronavay62 at aaronwl dot com
  2004-11-13 21:06 ` [Bug target/18469] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: aaronavay62 at aaronwl dot com @ 2004-11-13 21:01 UTC (permalink / raw)
  To: gcc-bugs

When building a cross compiler from a Windows host to sparc-sun-solaris2.8, 
make fails here:

/aaronwl/cs/compilers/gcc/build/solaris8-head/gcc/xgcc -
B/aaronwl/cs/compilers/gcc/build/solaris8-head/gcc/ -B/aaronwl/cs/env/solaris-
head/sparc-sun-solaris2.8/bin/ -B/aaronwl/cs/env/solaris-head/sparc-sun-
solaris2.8/lib/ -isystem /aaronwl/cs/env/solaris-head/sparc-sun-
solaris2.8/include -isystem /aaronwl/cs/env/solaris-head/sparc-sun-
solaris2.8/sys-include -O2 -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-
strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -
isystem ./include  -I. -I. -I../../../src/cvs/head/gcc/gcc -
I../../../src/cvs/head/gcc/gcc/. -I../../../src/cvs/head/gcc/gcc/../include -
I../../../src/cvs/head/gcc/gcc/../libcpp/include   -g0 -finhibit-size-
directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -
fno-unit-at-a-time -fPIC \
   -c ../../../src/cvs/head/gcc/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
In file included from ../../../src/cvs/head/gcc/gcc/tsystem.h:93,
                 from ../../../src/cvs/head/gcc/gcc/crtstuff.c:62:
/aaronwl/cs/env/solaris-head/root/usr/include/sys/types.h:340: error: two or 
more data types in declaration specifiers
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/aaronwl/cs/compilers/gcc/build/solaris8-head/gcc'
make: *** [all-gcc] Error 2

The line in question is:
typedef uid_t   gid_t;                  /* GID type             */

However, auto-host.h defines:
/* Define to `int' if <sys/types.h> doesn't define. */
#define gid_t int

I can't figure out from config.log why this is being defined.

Removing the define for gid_t fixes this problem.

i686-pc-mingw32
Windows XP SP2 Professional
Pentium 4 1.4GHz 256MB
binutils 2.15
mingwrt 3.5
msvcrt 7.0.2600.2180
w32api 3.1
libiconv 1.9.1
GNU Make 3.80
expect 5.26
tcl 8.4
dejagnu 1.4.2.x
Misc tools and environment from Cygwin Current Fri Oct 22 01:50:41 2004
ln with softlinks disabled
host gcc 4.0.0 20041028 (experimental)
host binutils 2.15.94 20041028
host mingwrt head 20041028
host w32api head 20041028

Configured with: ../../src/cvs/head/gcc/configure --
prefix=/aaronwl/cs/env/solaris-head --target=sparc-sun-solaris2.8 --disable-
nls --enable-languages=c --with-sysroot=/aaronwl/cs/env/solaris-head/root
Thread model: single
gcc version 4.0.0 20041113 (experimental)

-- 
           Summary: configure incorrectly defines gid_t
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aaronavay62 at aaronwl dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: sparc-sun-solaris2.8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469


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

end of thread, other threads:[~2022-05-24 14:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18469-4@http.gcc.gnu.org/bugzilla/>
2013-12-16 20:09 ` [Bug target/18469] configure incorrectly defines gid_t ktietz at gcc dot gnu.org
2013-12-17 23:26 ` joseph at codesourcery dot com
2020-10-13  2:34 ` kargl at gcc dot gnu.org
2020-10-15 20:02 ` egallager at gcc dot gnu.org
2020-10-15 20:09 ` redi at gcc dot gnu.org
2022-05-24 14:52 ` egallager at gcc dot gnu.org
2004-11-13 21:01 [Bug target/18469] New: " aaronavay62 at aaronwl dot com
2004-11-13 21:06 ` [Bug target/18469] " pinskia at gcc dot gnu dot org
2005-02-10 20:53 ` ebotcazou at gcc dot gnu dot org
2005-05-12  2:11 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).