Subject: Fwd: cossgcc hosted on CYGWIN : glibc and gcc errors
From: "babu" <[email-masked]>
To: [email-masked]
Date: Tue, 01 Apr 2003 11:54:39 +0530 (IST)

-------Original Message------

Subject: cossgcc hosted on CYGWIN : glibc and gcc errors
From: "babu" <[email-masked]>
To: [email-masked]
Date: Tue, 01 Apr 2003 11:52:13 +0530 (IST)

Dear All,

We are trying to build a cross gcc which will be hosted on cygwin and produce
binaries for Linux/x86. our setup is as below :

1. We are building crossgcc tool chain for the following :

    host  - cygwin
    build - cygwin
    target- Linux(x86)

 meaning, a crossgcc built on CYGWIN, hosted on CYGWIN, but to produce
code 
 that will run on Linux/x86 platform.

2. our environment is as below :

   Windows 98/ CYGWIN release 1.3.21 / i686

3. built and installed binutils .ok(with warnings).............

tar jxf source/binutils-2.12.tar.bz2
    pushd binutils-2.12
    mkdir build-${CHIP}-linux
    pushd build-${CHIP}-linux
    LDFLAGS='--static' CFLAGS='--static'
    ./configure \
        --target=i686-pc-linux-gnu \
--host=i686-pc-cygwin \
        --build=i686-pc-cygwin \
--prefix=${PRO_INSTALL_PREFIX} ${FP}

    make
    make install

4. we are trying to build and install glibc2.1.3 and we are getting error as
below

=========================================
> =
> = Building glibc for gcc
> =
> =========================================
> /sys/build_tools /cygdrive/c/Documents and 
> Settings/Administrator/Desktop/base/rtlpro_altosys_baseline/private
> /sys/build_tools/glibc-2.2.5 /sys/build_tools /cygdrive/c/Documents
> and 
> Settings/Administrator/Desktop/base/rtlpro_altosys_baseline/private
> /sys/build_tools/glibc-2.2.5/build-i386-linux /sys/build_tools/glibc-
> 2.2.5 /sys/build_tools /cygdrive/c/Documents and 
> Settings/Administrator/Desktop/base/rtlpro_altosys_baseline/private
> creating cache ./config.cache
> checking host system type... i686-pc-cygwin
> *** The GNU C library is currently not available for this platform.
> *** So far nobody cared to port it and if there is no volunteer it
> *** might never happen.  So, if you have interest to see glibc on
> *** this platform visit
> ***	http://www.gnu.org/software/libc/porting.html
> *** and join the group of porters
> make: *** No targets specified and no makefile found.  Stop.
> make: *** No rule to make target `install'.  Stop.
> cp: cannot stat `/sys/linux_2_4/include/linux': No such file or 
> directory
> cp: cannot stat `/sys/linux_2_4/include/asm-i386': No such file or
> directory
> /sys/build_tools/glibc-2.2.5 /sys/build_tools /cygdrive/c/Documents
> and 
> Settings/Administrator/Desktop/base/rtlpro_altosys_baseline/private
> /sys/build_tools /cygdrive/c/Documents and 
> Settings/Administrator/Desktop/base/rtlpro_altosys_baseline/private
> /cygdrive/c/Documents and 
> Settings/Administrator/Desktop/base/rtlpro_altosys_baseline/private
> 
 
5. further when we are trying to build gcc, we are getting the errors
   that say stdlib.h and unistd.h missing when compiling libgcc2.c

We are not using newlib here. Please let us know, if you have come across
this problem or we are doing something wrong.

Regards,

Babu K

--
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/