From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 20:12:27 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5F5B7EAE for ; Wed, 3 Dec 2014 20:12:27 +0000 (UTC) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C98FA786 for ; Wed, 3 Dec 2014 20:12:26 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id n15so13037793lbi.16 for ; Wed, 03 Dec 2014 12:12:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=VAxnp/Z+IYwRg5GhmRPkTPt3xZ6QibAil4lTVHv/4xw=; b=yWoJtRBh/uPDQGLHBDZw/HO+PPy4zsmSbFJLycP5fAkrJQF13X0AYp+qAcW024ro4G 1135NLpJkMAklY47UpLPEc1F6NsvIZ1M12+P0YRp0DyrdMkhChhfJrbuHABS0PBk6QhE Attf6R6AxtcRZv6pnpqkABVCJvnRcwbk43op9JGao24SYO4+11aLv4FCxouLvLbkJ1mO jWLBFhKT/IkHD0z4xe2NYnbeIYYBC7IxeXfEYDJ4Rj9GF/WQu2YBlRC9gUtqCvgVpeEb 4Yeq1cw9wLwSzZyig4vP5Qyviy2LcEIqIJuNWc+6F08a/tW5TyMVVIWhx6/Qv/6+lwgE mlSw== X-Received: by 10.152.121.1 with SMTP id lg1mr5923315lab.28.1417637544666; Wed, 03 Dec 2014 12:12:24 -0800 (PST) Received: from blazon-pc.rw.local ([78.84.244.14]) by mx.google.com with ESMTPSA id j19sm6707134lbl.23.2014.12.03.12.12.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Dec 2014 12:12:24 -0800 (PST) Message-ID: <547F6EA7.2090901@gmail.com> Date: Wed, 03 Dec 2014 22:12:23 +0200 From: Alnis Morics User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: How to manually compile on FreeBSD 10.x References: <20141203140927.GC23042@mordor.lan> <20141203144230.GE23042@mordor.lan> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 20:12:27 -0000 On 12/03/2014 17:09, Odhiambo Washington wrote: > On 3 December 2014 at 17:42, Julien Cigar wrote: > >> On Wed, Dec 03, 2014 at 05:21:05PM +0300, Odhiambo Washington wrote: >>> On 3 December 2014 at 17:09, Julien Cigar wrote: >>> >>>> On Wed, Dec 03, 2014 at 04:57:58PM +0300, Odhiambo Washington wrote: >>>>> Hi Mehmet, >>>>> >>>>> You perhaps did not understand my question or I wasn't clear. >>>>> >>>>> On previous versions of FreeBSD, issues with compilers have never >> been an >>>>> issue. However from FreeBSD 10, a lot has changed and it appears >> someone >>>>> needs to manually install a compiler. >>>> GCC has been removed from BASE in FreeBSD 10+ (and replaced by CLANG) >>>> >>>>> I went around my problem by: >>>>> >>>>> cd /usr/bin >>>>> ln -s clang++ gcc >>>> that's a very bad idea.. You should install gcc from ports or force >>>> CXX=clang++ in the Makefile (or in the env). >>>> >>>> also I don't understand why you're not using the port (mail/exim) ? >>>> >>> >>> >>> Hi Julien, >>> >>> That very bad idea came from >>> http://stackoverflow.com/questions/23180725/how-to-install-g-on-freebsd >> :-) >>> There is also the option to install gcc from the ports, but I went for >> the >>> shortcut of symlink because of obvious reasons - not knowing what is the >>> best. >>> >> beware of stackoverflow.com, it's full of mistakes, don't trust it >> >> the answer that says "It was renamed in FreeBSD 10. Fixed by creating >> symlink in /usr/bin:" is just plain wrong.. GCC is not CLANG >> >>> So I have done away with the symlink. >>> >>> [root@admin ~/Exim/exim-4.85_RC2]# export CXX=clang++ (I even added it >> to >>> /etc/make.conf) >>> [root@admin ~/Exim/exim-4.85_RC2]# make >>> /bin/sh scripts/source_checks >>> `Makefile' is up to date. >>> >>> gcc buildconfig.c >>> make[1]: exec(gcc) failed (No such file or directory) >>> *** Error code 1 >>> >>> Stop. >>> make[1]: stopped in /root/Exim/exim-4.85_RC2/build-FreeBSD-i386 >>> *** Error code 1 >>> >>> Stop. >>> make: stopped in /root/Exim/exim-4.85_RC2 >>> [root@admin ~/Exim/exim-4.85_RC2]# >>> >> you should install GCC from ports, for example lang/gcc (which install >> gcc 4.8) and do an $> export CC=gcc48 >> > > Hi Julien, > > Can I stick that to /etc/make.conf or that isn't relevant anymore? > > Sometimes I think I will just stick at FreeBSD-9.x because these changes on > 10.x are proving hard to catch up with if you do not follow -current > mailing list:( > > Just run: cd /usr/ports/mail/exim make install clean And no hassle with compilers; the ports system itself will download and install build dependencies. FreeBSD-specific configurations will be cared for, too. And the version is the latest stable. Why not?