mingw cross compiler -- cc1 issue

Malcolm Kay malcolm.kay at internode.on.net
Thu Jun 10 04:07:16 UTC 2010


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


More information about the freebsd-questions mailing list