From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 14:21:48 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B14CBAB; Wed, 3 Dec 2014 14:21:48 +0000 (UTC) Received: from mail-lb0-x232.google.com (mail-lb0-x232.google.com [IPv6:2a00:1450:4010:c04::232]) (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 9AB8CEF9; Wed, 3 Dec 2014 14:21:47 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id f15so13371441lbj.23 for ; Wed, 03 Dec 2014 06:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Y6fVxDNCX7749kH3ae5cf+LROP4lpy/FNFHgrr4cXHE=; b=ufxc9WJ8DZ2gEeRQLwWYXLx9a4K3I4LNSZSjwlqyKkl0sckQEFalNmeNtJpXN01XgM dBDcYRiVjKZn9iIY9T5SfRrW3eq1rGu7jW+QLANdN2avRJHzAYkCiQ7NHfkEZjRcxbBE U4Vufnj11boqraF3Q0Iu+hqHl0Ziel/3vDWf2kvLQiPGH/PWz+hb3Tb/vdYSWJ0/r4eB w2WC17fOwj1o2gCk418BL638ItxVNHjYYLYUWCTtfsnBsGkFmcdpHQOgz985GpLMLSEJ 6Ks/xGdkm6F3fEnZxHhM5DizgzO6MG85EmbUpLtzPkh+yvbF1gjgz26wKdCZJZ+RhjJD 8Gaw== X-Received: by 10.152.28.131 with SMTP id b3mr4761226lah.12.1417616505620; Wed, 03 Dec 2014 06:21:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.53.72 with HTTP; Wed, 3 Dec 2014 06:21:05 -0800 (PST) In-Reply-To: <20141203140927.GC23042@mordor.lan> References: <20141203140927.GC23042@mordor.lan> From: Odhiambo Washington Date: Wed, 3 Dec 2014 17:21:05 +0300 Message-ID: Subject: Re: How to manually compile on FreeBSD 10.x To: Julien Cigar Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: questions , User Questions 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 14:21:48 -0000 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. 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]# The reason I am not using the port is because I want to test the current version of Exim. What is the best way to handle this? Step-by-step please. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler."