This is the mail archive of the
crossgcc@sources.redhat.com
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
newbie problems with linux->mingw32 cross compiler installation
- From: "Knut C. Naue" <knaue at c8m42 dot pi dot tu-berlin dot de>
- To: crossgcc at sources dot redhat dot com
- Date: Wed, 05 Jun 2002 14:16:51 -0400
- Subject: newbie problems with linux->mingw32 cross compiler installation
- Organization: TU Berlin
- Reply-to: knut dot naue at tu-berlin dot de
hi all
for my first cross compiler experiences i got
1. binutils-2.11.2.tar.gz
2. gcc-3.1.tar.gz
3. glibc-2.2.5.tar.gz
to create a gnu-linux -> win32 cross compiler in directory
/root/gcc-3.1-cross on a mandrake 8.1 system using
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.96/specs
gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)
i did the following in the following order:
1. configure and install binutils-2.11.2 using:
./configure --target=i686-pc-mingw32 --prefix=/root/gcc
-3.1-cross/ --program-suffix=-2.11.2
make all install
(everything went well)
2. configure and install gcc-3.1
./configure --target=i686-pc-mingw32 --prefix=/root/gcc
-3.1-cross/ --program-suffix=-3.1
make all install
produces:
[...]
make[2]: Wechsel in das Verzeichnis Verzeichnis »/root/gcc-3.1/gcc«
for d in libgcc; do \
if [ -d $d ]; then true; else /bin/sh ./mkinstalldirs $d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/root/gcc-3.1/gcc/xgcc -B/root/gcc-3.1/gcc/
-B/root/gcc-3.1-cross//i686-pc-mingw32/bin/
-B/root/gcc-3.1-cross//i686-pc-mingw32/lib/ -isystem
/root/gcc-3.1-cross//i686-pc-mingw32/include -O2 -I./../winsup/include
-I./../winsup/cygwin/include -I./../winsup/w32api/include -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include -g -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./config
-I./../include -DL_muldi3 -c ./libgcc2.c -o libgcc/./_muldi3.o
In file included from config/i386/mingw32.h:31,
from tconfig.h:16,
from libgcc2.c:36:
config/i386/cygwin.h:31:19: stdio.h: Datei oder Verzeichnis nicht gefunden
In file included from config/i386/mingw32.h:31,
from tconfig.h:16,
from libgcc2.c:36:
config/i386/cygwin.h:447: parse error before '*' token
config/i386/cygwin.h:447: warning: function declaration isn't a prototype
config/i386/cygwin.h:449: parse error before '*' token
config/i386/cygwin.h:449: warning: function declaration isn't a prototype
make[2]: *** [libgcc/./_muldi3.o] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis »/root/gcc-3.1/gcc«
make[1]: *** [libgcc.a] Fehler 2
make[1]: Verlassen des Verzeichnisses Verzeichnis »/root/gcc-3.1/gcc«
make: *** [all-gcc] Fehler 2
has anyone an idea what is wrong?
i'm absolutely clueless.
thanks in advance.
cu
knut
-------------------------------------------------------------------------------
Knut C. Naue, Dipl.-Ing.
Institute of Mechanics fon: +49-30-314-21493
Bldg. M, Dept. C8 fax: +49-30-314-21482
Berlin Institute of Technology mobile: +49-177-DYNAMIK
Strasse des 17. Juni 135 e-mail: knut.naue@tu-berlin.de
10623 Berlin
Germany
-------------------------------------------------------------------------------
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com