Date: Thu, 10 Jun 2010 13:37:12 +0930 From: Malcolm Kay <malcolm.kay@internode.on.net> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: mingw cross compiler -- cc1 issue Message-ID: <201006101337.12988.malcolm.kay@internode.on.net>
next in thread | raw e-mail | index | archive | help
I have installed mingw32 from ports:- mingw32-gcc-4.4.0_1,1 mingw32-binutils-2.20,1 mingw32-bin-msvcrt-r3.18.a3.14 OS:- FreeBSD xi.home 8.0-RELEASE FreeBSD 8.0-RELEASE #0 Running:- %mingw32-gcc dummy.c appears to execute without problems, producing a.exe Running the alternative:- %/usr/local/mingw32/bin/gcc dummy.c leads to an error announcing cc1 is not found. Since /usr/local/mingw32/bin/gcc and /usr/local/bin/mingw32-gcc are hard linked it would seem that the executable code uses the calling name to trace its way to cc1 (/usr/local/libexec/gcc/mingw32/4.4.0/cc1) Replace /usr/local/mingw32/bin/gcc with a symbolic link to /usr/local/bin/mingw32-gcc and it seems to work. Have I missed something in installing mingw32? Is it not intended that /usr/local/mingw32/bin/gcc should be called? Is there some problem with the port? Or is there some quite different issue? Help please, Malcolm Kay
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006101337.12988.malcolm.kay>