From owner-freebsd-current@FreeBSD.ORG Mon Jun 14 20:02:08 2010 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 14E911065678 for ; Mon, 14 Jun 2010 20:02:08 +0000 (UTC) (envelope-from alexbestms@uni-muenster.de) Received: from SECMAIL.UNI-MUENSTER.DE (SECMAIL.UNI-MUENSTER.DE [128.176.192.141]) by mx1.freebsd.org (Postfix) with ESMTP id 9345F8FC08 for ; Mon, 14 Jun 2010 20:02:07 +0000 (UTC) Received: from mail-yw0-f182.google.com (mail-yw0-f182.google.com [209.85.211.182]) by SECMAIL.UNI-MUENSTER.DE (Postfix) with ESMTP id A6CB5BF404 for ; Mon, 14 Jun 2010 22:02:05 +0200 (CEST) Received: by ywh12 with SMTP id 12so3065803ywh.14 for ; Mon, 14 Jun 2010 13:02:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.72.32 with SMTP id k32mr2521926qaj.167.1276545723971; Mon, 14 Jun 2010 13:02:03 -0700 (PDT) Received: by 10.229.247.142 with HTTP; Mon, 14 Jun 2010 13:02:03 -0700 (PDT) In-Reply-To: <86y6ehsnq5.fsf@gmail.com> References: <20100614100500.GA35142@freebsd.org> <86y6ehsnq5.fsf@gmail.com> Date: Mon, 14 Jun 2010 22:02:03 +0200 Message-ID: From: Alexander Best To: Anonymous Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: two buildworld problems 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: Mon, 14 Jun 2010 20:02:08 -0000 On Mon, Jun 14, 2010 at 4:17 PM, Anonymous wrote: > Alexander Best writes: > >> On Mon, Jun 14, 2010 at 12:05 PM, Roman Divacky w= rote: >>> On Sun, Jun 13, 2010 at 10:28:23PM +0200, Alexander Best wrote: >>>> hi there. i'm experiencing two problems during buildworld. i'm not >>>> sure if these are the result of me doing weird stuff or a problem in >>>> the src structure: >>>> >>>> 1. i have the following in my make.conf: >>>> >>>> .if empty(.CURDIR:M/usr/src/*) && empty(.CURDIR:M/usr/obj/*) && >>>> exists(/usr/local/bin/gcc44) >>>> CC =3D gcc44 >>>> CXX =3D g++44 >>>> CPP =3D cpp44 >>>> .endif >>> >>> you may want to reverse the condition, ie. >>> >>> .if !empty(.CURDIR:M/usr/ports/*) >> >> yeah i had something like that in my make.conf beforehand. the problem >> was however that this would only use gcc44 when 'make' was run in the >> ports directory. however i want make to ALWAYS use gcc44 apart from >> /usr/src. > > It may be easier to make gcc44 symlinks for cc/c++/gcc/g++ in > e.g. HOME/.bin and add it to PATH before /usr/bin[1]. make buildworld > overrides its own PATH and shouldn't be affected but pretty much > anything else will use gcc44, not only make(1) targets. > > You can create basegcc/baseg++ symlinks then for things that don't > compile by gcc44 but in case of portmaster you'd have to teach it > respect user-defined PATH in order for CC=3Dbasegcc in make.conf to work. > > [1] *after* ccache if you have it installed, e.g. > =A0 =A0PATH=3D$LOCALBASE/libexec/ccache:$HOME/.bin:...:/usr/bin:... thanks for hint. right now my main problem is that i'm not able to sucessfull do 'buildworld' with CC/CXX/CPP set in src.conf. this should be reproducable quite easy by either adding: CC=3Dgcc CXX=3Dg++ CPP=3Dcpp to src.conf or CC=3Dclang CXX=3Dclang++ CPP=3Dclang i posted the error output beforehand. this problems has nothing to do with anything in make.conf since i commented out every gcc44 stuff and even CFLAGS and so forth. for me the only way to successfully do 'buildworld' is to make sure CC/CXX/CPP aren't set in src.conf or as envars. cheers. alex > --=20 Alexander Best