This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[BUG] Compiling i386-mingw32 cross compiler
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: [BUG] Compiling i386-mingw32 cross compiler
- From: Brian Macy <bmacy at sunshinecomputing dot com>
- Date: Sun, 30 May 1999 22:02:22 -0700
Steps:
- build i386-mingw32 binutils from CVS into /usr/local/mingw32
- Pull down latest code from cvs into /usr/local/src/egcs
- cd /usr/local/src/egcs
- mkdir CROSS
- cd CROSS
- ../configure --target=i386-mingw32 --host=i686-linux
--prefix=/usr/local/mingw32/CROSS
- cd gcc; make installdirs
- export PATH=$PATH:/usr/local/mingw32/bin
- make
** First error... egcs/CROSS/gcc/fixinc.sh is not found... creating a
link to egcs/gcc/fixinc.sh fixes that
** Second error... stdlib.h and unistd.h not found when compiling
gcc/libgcc2.c... commenting them out allows it to compile
** Third error (which I haven't found a way around)...
egcs/CROSS/gcc/xgcc can not build executables. try to run it manually
with "#include <stdio.h> int main() {}" as an input file gives:
cpp: unrecognized option `-remap'
cpp: -lang-c: linker input file unused since linking not done
xgcc: installation problem, cannot exec `c1': No such file or directory
Brian Macy