This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[BUG] Compiling i386-mingw32 cross compiler


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]