From owner-freebsd-x11@FreeBSD.ORG Wed Jan 22 10:34:15 2014 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B1EA1CB for ; Wed, 22 Jan 2014 10:34:15 +0000 (UTC) Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr [80.12.242.128]) by mx1.freebsd.org (Postfix) with ESMTP id 26EDD18D9 for ; Wed, 22 Jan 2014 10:34:14 +0000 (UTC) Received: from localhost ([92.162.2.180]) by mwinf5d12 with ME id GyaC1n00A3t1olG03yaCJi; Wed, 22 Jan 2014 11:34:13 +0100 Message-ID: <52DF9EA3.80108@orange.fr> Date: Wed, 22 Jan 2014 11:34:11 +0100 From: Claude Buisson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130921 Thunderbird/17.0.9 MIME-Version: 1.0 To: Niclas Zeising Subject: Re: build of libGL-9.1.7 fails: "/lib/cpp" fails sanity check [SOLVED] References: <52DE9A7C.2030503@orange.fr> <52DEE29D.2030102@daemonic.se> <52DEF5E6.4000600@orange.fr> <52DF88C5.2040601@daemonic.se> <52DF9351.2090001@orange.fr> <52DF9A03.9000907@daemonic.se> In-Reply-To: <52DF9A03.9000907@daemonic.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jan 2014 10:34:15 -0000 On 01/22/2014 11:14, Niclas Zeising wrote: > On 01/22/14 10:45, Claude Buisson wrote: >> On 01/22/2014 10:00, Niclas Zeising wrote: >>> On 01/21/14 23:34, Claude Buisson wrote: >>>> On 01/21/2014 22:11, Niclas Zeising wrote: >>>>> On 01/21/14 17:04, Claude Buisson wrote: >>>>>> Hello >>>>>> >>>>>> building graphics/libGL on >>>>>> >>>>>> FreeBSD watson 10.0-STABLE FreeBSD 10.0-STABLE #1 r260579M: Fri Jan 17 >>>>>> 17:26:38 >>>>>> CET 2014 toor@watson:/home/obj/home/src/sys/WATSON10X amd64 >>>>>> >>>>>> built whithout gcc >>>>>> >>>>>> with a ports tree at r340357 >>>>>> >>>>>> WITH_NEWXORG >>>>>> >>>>>> the build fails at the configure stage: >>>>>> >>>> >>>>> >>>>> It seems the list ate your attachement, can you post it somewhere on >>>>> the >>>>> net, or send it to me in private? I'd also like you to post >>>>> /etc/make.conf and /etc/src.conf, just in case. Can you also try to >>>>> run >>>>> /bin/cpp --version and post the output? And also /lib/cpp if you have >>>>> it. Do you have any gcc port installed? Something seems strange in >>>>> that it looks for g++ for some reason, but I don't have a recent build >>>>> output myself, so I can't compare currently. >>>>> Regards! >>>>> >>>> Hi, >>>> >>>> Please find attached: >>>> >>>> /etc/src.conf -> watson.src.conf >>>> /etc/make.conf -> watson.make.conf >>>> /usr/local/sbin/pkg-static info -g -Ea -> watson.pkg.info >>>> the output of make -> watson.libGL.make.out >>>> the libGL configure.log -> watson.libGL.config.log >>>> >>>> Of course, there is NO /bin/cpp or /lib/cpp on this system, only >>>> /usr/bin/cpp >>>> /usr/bin/cpp --version >>>> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 >>>> Target: x86_64-unknown-freebsd10.0 >>>> Thread model: posix >>>> >>>> and this is effectively found by configure. >>>> >>>> There is NO gcc port intalled (see watson.pkg.info). This is a complete >>>> port >>>> built from scratch after deleting every intalled port and nuking >>>> /usr/local/ >>>> >>>> BTW, I have already encountered the case of configure scripts confusing >>>> clang >>>> for gcc3 on 10.0-CURRENT systems (but not for xorg related ports), and >>>> forced >>>> USE_GCC as I already had gcc46 installed. But this time I just tried to >>>> build a >>>> system "pure clang". >>>> >>> >>> Ok. For some reason it tries to use g++ instead of c++ as the C++ >>> compiler. I don't know why that is though. Do you still have the base >>> gcc installed, or is it just left overs from earlier, that you've >>> forgotten to remove when upgrading FreeBSD? >>> Regards! >>> >> >> There is no gcc from previous ports (see above), and no gcc from an >> earlier base >> - I use to clean my systems the old/hard way, by doing a make >> installword / make >> distribution / make installkernel to a reference directory and doing a >> diff. >> In any case, it could not be gcc3 as found by configure - but clang >> version is 3.3 ! >> >> CBu >> > > Can you double check that there is no gcc or g++ binary anywhere in the > system? Because configure clearly finds g++, at least. It also detects > that clang uses the same include and dependency style as gcc3, but > that's not relevant. > Regards! > I must apologize.. I quadruple checked and found an old solitary /usr/bin/g++ Now graphics/libGL builds OK. Thanks for your patience Claude Buisson