From owner-freebsd-ports@FreeBSD.ORG Mon Mar 11 13:16:23 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 BCDCA64E; Mon, 11 Mar 2013 13:16:23 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 62A2F14E; Mon, 11 Mar 2013 13:16:23 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id CD30A40009; Mon, 11 Mar 2013 14:16:21 +0100 (CET) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id C27BF40008; Mon, 11 Mar 2013 14:16:21 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (mx.daemonic.se [IPv6:2001:470:dca9:0:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id D5DD840007; Mon, 11 Mar 2013 14:16:20 +0100 (CET) Received: from mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) by mx.daemonic.se (Postfix) with ESMTPS id 3ZPfvy2kDrz8hVn; Mon, 11 Mar 2013 14:16:14 +0100 (CET) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mx.daemonic.se ([10.1.0.3]) (using TLS with cipher CAMELLIA256-SHA) by mailscanner.daemonic.se (mailscanner.daemonic.se [10.1.0.6]) (amavisd-new, port 10025) with ESMTPS id 71OjiJ6T2by4; Mon, 11 Mar 2013 14:16:09 +0100 (CET) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2001:470:dca9:0:1::4]) by mx.daemonic.se (Postfix) with ESMTPS id 3ZPfvs2srTz8hVm; Mon, 11 Mar 2013 14:16:09 +0100 (CET) Received: from vivi.daemonic.se (vivi.daemonic.se [IPv6:2001:470:dca9:1::4]) by mail.daemonic.se (Postfix) with ESMTPSA id 3ZPfvs08Kcz9Ctq; Mon, 11 Mar 2013 14:16:09 +0100 (CET) Message-ID: <513DD90F.2090700@daemonic.se> Date: Mon, 11 Mar 2013 14:15:59 +0100 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: Steve Kargl Subject: Re: CURRENT: lang/gcc fails to build on CURRENT with error: configure: error: no usable dependency style found References: <513B56E8.2060702@zedat.fu-berlin.de> <8F5265A6-396A-426F-A3F8-EFD44D167313@FreeBSD.org> <20130309233930.GA95285@troutmask.apl.washington.edu> <513DAF4F.50602@FreeBSD.org> <20130311131318.GA57506@troutmask.apl.washington.edu> In-Reply-To: <20130311131318.GA57506@troutmask.apl.washington.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: "Hartmann, O." , FreeBSD Current , Dimitry Andric , freebsd-ports@freebsd.org 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: Mon, 11 Mar 2013 13:16:23 -0000 On 03/11/13 14:13, Steve Kargl wrote: > On Mon, Mar 11, 2013 at 11:17:51AM +0100, Dimitry Andric wrote: >> On 2013-03-10 00:39, Steve Kargl wrote: >> ... >>> If you have a clang built FreeBSD-current, then it is no >>> longer possible to *bootstrap* gcc-4.6.x, gcc-4.7.x, nor >>> the upcoming gcc-4.8.0. AFAICT, the problem is related >>> to /usr/bin/cpp. I haven't tried earlier versions of >>> gcc. >> >> I have built the lang/gcc47 and lang/gcc48 ports just now, and they >> compiled without any issues. What is the exact error you have been >> getting? > > Note, I said explicitly said *bootstrap*. I can build 4.6, 4.7, > and 4.8. I cannot *bootstrap* these compilers. The entire > build log from 'gmake bootstrap |& tee gcc-4.8.0.log' is > here > > http://troutmask.apl.washington.edu/gcc-4.8.0.log > > The last few lines are > > checking whether /home/sgk/gcc/obj4x/./prev-gcc/xgcc -B/home/sgk/gcc/obj4x/./prev-gcc/ -B/home/sgk/work/4x/x86_64-unknown-freebsd10.0/bin/ -B/home/sgk/work/4x/x86_64-unknown-freebsd10.0/bin/ -B/home/sgk/work/4x/x86_64-unknown-freebsd10.0/lib/ -isystem /home/sgk/work/4x/x86_64-unknown-freebsd10.0/include -isystem /home/sgk/work/4x/x86_64-unknown-freebsd10.0/sys-include supports -fno-rtti... yes > checking dependency style of /home/sgk/gcc/obj4x/./prev-gcc/xg++ -B/home/sgk/gcc/obj4x/./prev-gcc/ -B/home/sgk/work/4x/x86_64-unknown-freebsd10.0/bin/ -nostdinc++ -B/home/sgk/gcc/obj4x/prev-x86_64-unknown-freebsd10.0/libstdc++-v3/src/.libs -B/home/sgk/gcc/obj4x/prev-x86_64-unknown-freebsd10.0/libstdc++-v3/libsupc++/.libs -I/home/sgk/gcc/obj4x/prev-x86_64-unknown-freebsd10.0/libstdc++-v3/include/x86_64-unknown-freebsd10.0 -I/home/sgk/gcc/obj4x/prev-x86_64-unknown-freebsd10.0/libstdc++-v3/include -I/home/sgk/gcc/gcc4x/libstdc++-v3/libsupc++ -L/home/sgk/gcc/obj4x/prev-x86_64-unknown-freebsd10.0/libstdc++-v3/src/.libs -L/home/sgk/gcc/obj4x/prev-x86_64-unknown-freebsd10.0/libstdc++-v3/libsupc++/.libs... none > configure: error: no usable dependency style found > gmake[2]: *** [configure-stage2-libcpp] Error 1 > gmake[2]: Leaving directory `/usr/home/sgk/gcc/obj4x' > gmake[1]: *** [stage2-bubble] Error 2 > gmake[1]: Leaving directory `/usr/home/sgk/gcc/obj4x' > gmake: *** [bootstrap] Error 2 > >> I think there must be a common problem you and Oliver have in your build >> environment, most likely non-default CFLAGS. > > No. Here's my make.conf. > > KERNCONF=SPEW > CPUTYPE?=opteron > FFLAGS+= -O2 -pipe -march=native -mtune=native -funroll-loops -ftree-vectorize > MALLOC_PRODUCTION="YES" > WITHOUT_LIB32="YES" > WITHOUT_MODULES="YES" > WITHOUT_NLS="YES" > WITH_BSD_GREP="YES" > WITH_PROFILE="YES" > WITH_PKGNG=yes > PRINTERDEVICE=ps > # > # Crap for ports. > # > DISABLE_MAKE_JOBS="YES" > WITH_GHOSTSCRIPT_VER=8 > # > # added by use.perl 2013-02-19 12:45:06 > PERL_VERSION=5.12.4 > This is most likely due to a incompatibility between bsd grep and gnu grep. Try to switch to gnu grep, and the problem will most likely go away. Regards! -- Niclas