This is the mail archive of the cygwin@cygwin.com 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]

building a cygwin -> linux gcc(crosscompiler pe->elf32) problems...


> Here is an overview of what I am doing.... I am trying to make gcc so I
> can
> get elf32 objects out of it.
> just for the record I am building from CURRENT netrelease srcs...as in
> just
> to make sure I made a new directory and checked everything out
> yesterday(7/09/01) and made sure it was a sane enviroment and then I
> started from scratch...
> 
> Here is how I have been going about it.
> (I researched this quite a bit and found a couple of good howto's, this
> one
> was the most helpful 
>
http://www.nanotech.wisc.edu/~khan/software/gnu-win32/cygwin-to-linux-cross-howto.txt)
> 
> to save space and time
>   cygwin$ host=i686-pc-cygwin
>   cygwin$ build=i686-pc-cygwin
>   cygwin$ target=i686-pc-linux-gnu
>   cygwin$ prefix=/usr/local/linux
>   cygwin$ src_root=/usr/local/src/gnu
> 
> First I build binutils using a configure command and make command of
>  
>  cygwin$ $src_root/binutils-2.10.1/configure \
>     --with-included-gettext \
>     --target=$target --host=$host --build=$build \
>     --prefix=$prefix -v
>   cygwin$ make > make.log 2>&1
>   cygwin$ make install > install.log 2>&1
> 
> and that works fine....no major errors it compiles and works...
> then I added $prefix/bin to my path
> 
> now where the problem comes...building gcc
> configure command is
>   cygwin$ $src_root/gcc-2.95.2/configure \
>     --enable-languages=c \
>     --with-included-gettext --enable-shared --enable-threads \
>     --target=$target --host=$host --build=$build \
>     --prefix=$prefix -v
> 
> that works fine....but when I goto do the make
> it does quite a bit but
> errors out at 
> /usr/local/src/gnu/gcc/gcc/libgcc2.c:41: stdlib.h: No such file or
> directory
> /usr/local/src/gnu/gcc/gcc/libgcc2.c:42: unistd.h: No such file or
> directory
> make[1]: *** [libgcc2.a] Error 1
> 
> attached is my make.log for gcc(er not I guess....since this bounced
back....it was a little too big....if you need it just ask :) )
> 
> any help would be greatly appreciated
> (also I was wondering why this particular flavor of compiler is not a
> binary that a developer could dl somewhere easily accesable since 'to me'
> this seems like there is a good chance that nt developers might want
> there
> executables to be ported to a linux compatable file type(bfd))
> 
> Thanks 
> Nathan Fouarge
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]