building for cygwin (nearly there)
Thierry Moreau
Thierry.Moreau@Connotech.com
Sat Sep 7 08:49:00 GMT 2002
Bruce Adams wrote:
> Hi,
> [...]
> But the second stage compilation fails on libstdc++.
>
> Making all in libsupc++
> make[3]: Entering directory
> `/cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/libsupc+
> +'
> [...]
> /cygdrive/c/brucea/downloads/gcc/cross2/full/gcc/xgcc -shared-libgcc
> -B/cygdrive/c/brucea/downloads/gcc/cross2/full/gcc/ -nostdinc++
> -L/cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/src
> -L/cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/src/.li
> bs -B/cygdrive/c/gccm68k/m68k-elf/bin/ -B/cygdrive/c/gccm68k/m68k-elf/lib/
> -isystem /cygdrive/c/gccm68k/m68k-elf/include
> -I../../../../gcc-3.2/libstdc++-v3/../gcc
> -I../../../../gcc-3.2/libstdc++-v3/../include
> -I/cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include
> /m68k-elf
> -I/cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include
> -I../../../../gcc-3.2/libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates
> -Wall -Wno-format -W -Wwrite-strings -Winline
> -fdiagnostics-show-location=once -g -c
> ../../../../gcc-3.2/libstdc++-v3/libsupc++/eh_alloc.cc -o eh_alloc.o
> In file included from
> ../../../../gcc-3.2/libstdc++-v3/libsupc++/eh_alloc.cc:33:
> /cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include/c
> stdlib:86: `
> div_t' not declared
> /cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include/c
> stdlib:87: `
> ldiv_t' not declared
> /cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include/c
> stdlib:97: `
> div' not declared
> /cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include/c
> stdlib:102: `
> ldiv' not declared
> /cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include/c
> stdlib:104: `
> mblen' not declared
> /cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include/c
> stdlib:105: `
> mbstowcs' not declared
> /cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include/c
> stdlib:106: `
> mbtowc' not declared
> /cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include/c
> stdlib:115: `
> wcstombs' not declared
> /cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include/c
> stdlib:116: `
> wctomb' not declared
> /cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/include/c
> stdlib:122: syntax
> error before `(' token
> make[3]: *** [eh_alloc.lo] Error 1
> make[3]: Leaving directory
> `/cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3/libsupc+
> +'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3'
> make[1]: *** [all-recursive-am] Error 2
> make[1]: Leaving directory
> `/cygdrive/c/brucea/downloads/gcc/cross2/full/m68k-elf/libstdc++-v3'
> make: *** [all-target-libstdc++-v3] Error 2
>
> Anyone know how to fix this?
> Regards,
> Bruce A.
I don't know how to fix this, but I just came to the exact same error with some
"plain vanilla" cross-compiler building process:
RedHat linux --> powerpc-eabi
binutils-2.13, gcc-3.2, newlib-1.10.0
Here is an overview of the script that I ran:
export TARGET=powerpc-eabi
export PREFIX=/home/compiler/somewhere
export PATH=${PREFIX}/bin:$PATH
mkdir ${PREFIX}
mkdir elsewhere
cd elsewhere
../binutils-2.13/configure --target=${TARGET} --prefix=${PREFIX} 2>&1 | tee
../configure-binutils.log
make all install 2>&1 | tee ../make-binutils.log
rm config.cache /* if not useful, this is at least harmless */
../gcc-3.2/configure --target=${TARGET} --prefix=${PREFIX} --without-headers
--with-newlib 2>&1 | tee ../configure-gcc.log
make all-gcc install-gcc 2>&1 | tee ../make-gcc.log
rm config.cache /* if not useful, this is at least harmless */
../newlib-1.10.0/configure --target=${TARGET} --prefix=${PREFIX} 2>&1 | tee
../configure-newlib.log
make all install 2>&1 | tee ../make-newlib.log
rm config.cache /* if not useful, this is at least harmless */
../gcc-3.2/configure --target=${TARGET} --prefix=${PREFIX} --with-newlib 2>&1 |
tee ../configure-gcc-full.log
make all install 2>&1 | tee ../make-gcc-full.log
I hope we can fix it!
--
- Thierry Moreau
CONNOTECH Experts-conseils inc.
9130 Place de Montgolfier
Montreal, Qc
H2M 2A1
Tel.: (514)385-5691
Fax: (514)385-5900
e-mail: thierry.moreau@connotech.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list