From owner-freebsd-questions@FreeBSD.ORG Thu Jul 31 10:05:35 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6953A70C for ; Thu, 31 Jul 2014 10:05:35 +0000 (UTC) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0236.outbound.protection.outlook.com [207.46.163.236]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CE53257F for ; Thu, 31 Jul 2014 10:05:34 +0000 (UTC) Received: from [IPv6:2601:2:4780:2fd:3cfa:1b41:db29:34df] (2601:2:4780:2fd:3cfa:1b41:db29:34df) by BY1PR0301MB0840.namprd03.prod.outlook.com (25.160.193.146) with Microsoft SMTP Server (TLS) id 15.0.995.14; Thu, 31 Jul 2014 10:05:27 +0000 Message-ID: <53DA14E1.2020808@my.hennepintech.edu> Date: Thu, 31 Jul 2014 05:05:21 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Subject: Re: Switching to newer version of Clang References: In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:2:4780:2fd:3cfa:1b41:db29:34df] X-ClientProxiedBy: BY2PR03CA040.namprd03.prod.outlook.com (10.141.249.13) To BY1PR0301MB0840.namprd03.prod.outlook.com (25.160.193.146) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0289B6431E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(51704005)(199002)(189002)(24454002)(99396002)(76176999)(87266999)(64706001)(65816999)(102836001)(88552001)(54356999)(50986999)(79102001)(31966008)(105586002)(20776003)(107046002)(74502001)(101416001)(81542001)(2351001)(46102001)(85306003)(65956001)(80022001)(76482001)(64126003)(106356001)(50466002)(19580395003)(81342001)(107886001)(77096002)(83506001)(83322001)(80316001)(85852003)(4396001)(75432001)(83072002)(92566001)(77982001)(92726001)(21056001)(47776003)(89122001)(110136001)(95666004)(86362001)(59896001)(74662001)(33656002)(87976001)(42186005)(23676002)(89472002)(3826002); DIR:OUT; SFP:; SCL:1; SRVR:BY1PR0301MB0840; H:[IPv6:2601:2:4780:2fd:3cfa:1b41:db29:34df]; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; X-OriginatorOrg: my.hennepintech.edu X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2014 10:05:35 -0000 On 2014.07.30 21:01, Brian Wood wrote: > I did a make install in > > /usr/ports/devel/llvm34 > > After it finished > > clang -v > > still says 3.3. Do I have to reboot or try something > different? Thanks. > First, you need to install lang/clang34 (clang depends on llvm, not the other way around). You can have multiple compilers (and multiple versions of compilers) installed at the same time. Anything installed from ports will *never* overwrite anything in base. You're looking for clang34 (/usr/local/bin/clang34). Similarly, gcc installed from ports would be the same: gcc 4.7, for example, would be /usr/local/bin/gcc47. If you want to build ports with an alternate compiler, you'll need something like this in make.conf: CC=clang34 CPP=clang-cpp34 CXX=clang++34