From owner-freebsd-questions@FreeBSD.ORG Thu Jun 10 04:07:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD9A61065670 for ; Thu, 10 Jun 2010 04:07:16 +0000 (UTC) (envelope-from malcolm.kay@internode.on.net) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id 68DD78FC0A for ; Thu, 10 Jun 2010 04:07:15 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAC7/D0x5LWG+/2dsb2JhbACYL4Y0cr43hRgEg0k Received: from ppp121-45-97-190.lns20.adl6.internode.on.net (HELO alpha.home) ([121.45.97.190]) by ipmail06.adl2.internode.on.net with ESMTP; 10 Jun 2010 13:37:14 +0930 From: Malcolm Kay Organization: at home To: FreeBSD Questions Date: Thu, 10 Jun 2010 13:37:12 +0930 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201006101337.12988.malcolm.kay@internode.on.net> Subject: mingw cross compiler -- cc1 issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2010 04:07:16 -0000 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