From owner-freebsd-current@FreeBSD.ORG Sun Feb 1 18:51:27 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FDBE1065674; Sun, 1 Feb 2009 18:51:27 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id EA50C8FC13; Sun, 1 Feb 2009 18:51:26 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.peganest.com (78-33-110-3.static-adsl.entanet.co.uk [78.33.110.3] (may be forged)) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.3) with ESMTP id n11IoYcr073064 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Sun, 1 Feb 2009 18:50:36 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: freebsd-current@freebsd.org, obrien@freebsd.org Date: Sun, 1 Feb 2009 18:50:33 +0000 User-Agent: KMail/1.10.4 (FreeBSD/8.0-CURRENT; KDE/4.1.4; amd64; ; ) References: <20090201025939.GD83330@dragon.NUXI.org> In-Reply-To: <20090201025939.GD83330@dragon.NUXI.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902011850.33754.ken@mthelicon.com> Cc: "O. Hartmann" , Anton Shterenlikht Subject: Re: Alternatives to gcc (was Re: gcc 4.3: when will it become standard compiler?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2009 18:51:27 -0000 On Sunday 01 February 2009 02:59:39 David O'Brien wrote: > > gcc43 is fairly painless through the ports, but this is of limited use as > > it will use the base assembler, linker, et al. Even if you install, as I > > have, the latest binutils from GNU, it will locate /usr/bin/as before > > /usr/local/bin/as. If you set all the enviroment varables (AR, AS, NM, > > ...) before you do the build, you run into other problems with finding > > the bootstrap files later due to the naming problems between > > "x86_64-obrien-freebsd" and the auto-generated > > "x86_64-unknown-freebsd8.0" from the GNU configure. In short, I found > > upgrading the dev-chain a real nightmare. > > Its not that bad. I've created several cross toolchains in the past. > For those you specify which 'as' and 'ld' to use - how else do you think > they work. I don't think you configured your GCC properly if you cannot > get it to use some binutils from /usr/ports. > > In fact when installing GCC on Solaris GCC strongly prefers (or use to) > gas and gld to Sun's as and ld. Just tweak that configure logic. Your probably right... What I found is that the port of gcc43 uses the target name of *-portbld-* and the default from binutils uses *-unknown-*.. When the configure script runs, it misses that you may have a matched tool chain, so uses the /usr/bin/* tools. I created a port for binutils-2.19 that uses the same target string as the gcc43 version does. With that installed, the gcc43 tools pick up on it and everything seems happy. Hopefully it will be accepted.. Just waiting ~Peg