Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2013 14:15:59 +0100
From:      Niclas Zeising <zeising+freebsd@daemonic.se>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        "Hartmann, O." <ohartman@zedat.fu-berlin.de>, FreeBSD Current <freebsd-current@freebsd.org>, Dimitry Andric <dim@FreeBSD.org>, freebsd-ports@freebsd.org
Subject:   Re: CURRENT: lang/gcc fails to build on CURRENT with error: configure: error: no usable dependency style found
Message-ID:  <513DD90F.2090700@daemonic.se>
In-Reply-To: <20130311131318.GA57506@troutmask.apl.washington.edu>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?513DD90F.2090700>