This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Building a cross compiler Solaris to Cygwin


> -----Original Message-----
> From: cygwin-owner On Behalf Of Christophe LYON
> Sent: 05 April 2004 14:54

> Hi,
> 
> I have been working on how to build a cross-gcc for cygwin.
> I have used the build-cross-gcc shell script with success
> with a Linux host, targetting cygwin 1.5.9, binutils 20040312,
> using both gcc-2.95.3-10 and gcc-3.3.1-2.
> 
> However, when I run the very same script on a Solaris 2.7
> host, it fails:
> [...]
> 
> gcc -DHAVE_CONFIG_H -I. -I../../binutils-20040312-1/ld -I. 
> -D_GNU_SOURCE
> -I. -I../../binutils-20040312-1/ld -I../bfd
> -I../../binutils-20040312-1/ld/../bfd
> -I../../binutils-20040312-1/ld/../include
> -I../../binutils-20040312-1/ld/../intl -I../intl  
> -DLOCALEDIR="\"somepath/share/locale\""  -O2 -W -Wall
> -Wstrict-prototypes -Wmissing-prototypes  -c
> ../../binutils-20040312-1/ld/pe-dll.c
> ../../binutils-20040312-1/ld/pe-dll.c:29: stdint.h: No such file or
> directory
> make[3]: *** [pe-dll.o] Error 1
> 

Hmmm.  IIRC stdint.h is the C99 integer types header file.  The fact it's
missing on your solaris box and the fact that everything works ok on linux
makes me wonder if maybe the version of gcc on your Solaris is much older
than the one on your linux box and that's why it's not working.  Check the
version # on the solaris; if it's really old, get a more up-to-date one at
sunfreeware.com and see if that helps.

> I have tried many ways to get it succeed, including untarring 
> binutils,
> gcc
> and cygwin sources within the same directory tree in the hope that
> configure
> would make the right thing automagically.... 

Whether or not that will work depends on the build script you're using.  The
instructions that came with it should have been clear about how you're
supposed to set up the directory tree.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]