From owner-freebsd-ports@FreeBSD.ORG Sat Mar 16 13:29:02 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A67011DA for ; Sat, 16 Mar 2013 13:29:02 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 3CBD0E7B for ; Sat, 16 Mar 2013 13:29:02 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.6/8.14.6) with ESMTP id r2GDSqFW087950 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 16 Mar 2013 13:28:53 GMT (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.0 smtp.infracaninophile.co.uk r2GDSqFW087950 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1363440533; bh=7KuuF/ns2Ktvqgi79fqkGl/waoJnpiLK2Iwnrq78aNs=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Sat,=2016=20Mar=202013=2013:28:52=20+0000|From:=20Matthew =20Seaman=20|To:=20freebsd-ports@ freebsd.org|Subject:=20Re:=20How=20can=20I=20switch=20compiler=20f rom=20clang=20to=20gcc46?|References:=20<1363438889978-5796040.pos t@n5.nabble.com>|In-Reply-To:=20<1363438889978-5796040.post@n5.nab ble.com>; b=pKz19v0Da9LR98lbWKyhoiKisvri2yYOZIJ0p/+V3wLUNMArRE9XVlxbafacu7XnU OEG9sgSMlHQrtPKJSKhNZVKfXdNMxFaQBv+YGFw4EbaxFwS+eslaEwv6P0/ENzUwDy wmr+GF9m8I7cvcZ1IQnXWl9roOvGdRainrnwC0vs= Message-ID: <51447394.30907@infracaninophile.co.uk> Date: Sat, 16 Mar 2013 13:28:52 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: How can I switch compiler from clang to gcc46? References: <1363438889978-5796040.post@n5.nabble.com> In-Reply-To: <1363438889978-5796040.post@n5.nabble.com> X-Enigmail-Version: 1.5.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2XQMGHIGCIJLXODQCEACE" X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Mar 2013 13:29:02 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2XQMGHIGCIJLXODQCEACE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 16/03/2013 13:01, Beeblebrox wrote: > I need to compile a source not in the ports tree. The source needs to u= se the > gcc compiler (I have lang gcc (46) installed). Sourec make file complai= ns it > cannot find gcc46. gcc46 will be /usr/local/bin/gcc46 -- it could be that /usr/local/bin isn't on the path that Makefile searches. > To test, I placed in my environment: > setenv CC gcc46 > setenv CXX g++46 > setenv CPP cpp46 Try using the fully qualified path in those settings: setenv CC /usr/local/bin/gcc46 setenv CXX /usr/local/bin/g++46 setenv CPP /usr/local/bin/cpp46 (Sanity check that -- I don't have gcc46 installed, so cannot confirm those are the correct paths.) > When I do "cc -v" I still get clang output and not gcc46. What am I doi= ng > wrong here? Well, yes. What did you expect? Typing 'cc' at the shell prompt will almost certainly run /usr/bin/cc and that's going to be Clang on recent versions of FreeBSD. What you need to do is persuade your Makefile to run a different compiler, somewhere else in the filesystem. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk ------enig2XQMGHIGCIJLXODQCEACE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlFEc5QACgkQ8Mjk52CukIyvhQCgiAezgD79WcNFiduAlOfnBHOv r8YAnRlO5VdzBnuzXsQIjATWAdWErR0a =Io9R -----END PGP SIGNATURE----- ------enig2XQMGHIGCIJLXODQCEACE--