build of libGL-9.1.7 fails: "/lib/cpp" fails sanity check [SOLVED]
Claude Buisson
clbuisson at orange.fr
Wed Jan 22 10:34:15 UTC 2014
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 at 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:
>>>>>>
>>>> <snip>
>>>>>
>>>>> 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
More information about the freebsd-x11
mailing list