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:-

FreeBSD xi.home 8.0-RELEASE FreeBSD 8.0-RELEASE #0

%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 

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 
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