Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Sep 2014 20:15:23 -0700 (PDT)
From:      "Chris H" <bsd-lists@bsdforge.com>
To:        "Allan Jude" <allanjude@freebsd.org>
Cc:        freebsd-current@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: Mesa-9: configure: error: C compiler cannot create executables
Message-ID:  <411fc42685f5deb5ca9cf02374fc531a.authenticated@ultimatedns.net>
In-Reply-To: <26670d7976dc83f6afaf63577f6c114d.authenticated@ultimatedns.net>
References:  <7b0a119ebc4d8d7813f92c0f94aba8d8.authenticated@ultimatedns.net> <542882B7.4060407@freebsd.org> <82259777bbe474bb5581c2b4a0b79f25.authenticated@ultimatedns.net> <54288C32.3080201@freebsd.org> <55ea1654e68d865f7becfa4bf57474c3.authenticated@ultimatedns.net> <26670d7976dc83f6afaf63577f6c114d.authenticated@ultimatedns.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>>> On 09/28/2014 18:11, Chris H wrote:
>>>>> On 09/28/2014 17:37, Chris H wrote:
>>>>>> Greetings,
>>>>>>  A recent install of RELENG_9, followed by a build|install world|kernel.
>>>>>> Returns the following error when attempting an make install of
>>>>>> x11/xorg-minimal
>>>>>>
>>>>>> ===>  Configuring for dri-9.1.7_5,2
>>>>>> configure: loading site script /usr/ports/Templates/config.site
>>>>>> checking build system type... amd64-portbld-freebsd9.3
>>>>>> checking host system type... amd64-portbld-freebsd9.3
>>>>>> checking target system type... amd64-portbld-freebsd9.3
>>>>>> checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
>>>>>> checking whether build environment is sane... yes
>>>>>> checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
>>>>>> checking for gawk... (cached) /usr/bin/awk
>>>>>> checking whether gmake sets $(MAKE)... yes
>>>>>> checking whether gmake supports nested variables... yes
>>>>>> checking for style of include used by gmake... GNU
>>>>>> checking for gcc... clang
>>>>>> checking whether the C compiler works... no
>>>>>> configure: error: in `/usr/ports/graphics/dri/work/Mesa-9.1.7':
>>>>>> configure: error: C compiler cannot create executables
>>>>>> See `config.log' for more details
>>>>>> ===>  Script "configure" failed unexpectedly.
>>>>>> Please report the problem to x11@FreeBSD.org [maintainer] and attach the
>>>>>> "/usr/ports/graphics/dri/work/Mesa-9.1.7/config.log" including the output of
>>>>>> the failure of your make command. Also, it might be a good idea to provide
>>>>>> an overview of all packages installed on your system (e.g. a
>>>>>> /usr/local/sbin/pkg-static info -g -Ea).
>>>>>> *** [do-configure] Error code 1
>>>>>>
>>>>>> Any thoughts on how to overcome this issue?
>>>>>>
>>>>>> Relevant info:
>>>>>>
>>>>>> # svn info /usr/src
>>>>>>
>>>>>> Path: /usr/src
>>>>>> Working Copy Root Path: /usr/src
>>>>>> URL: svn://svn.freebsd.org/base/stable/9
>>>>>> Relative URL: ^/stable/9
>>>>>> Repository Root: svn://svn.freebsd.org/base
>>>>>> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
>>>>>> Revision: 272203
>>>>>> Node Kind: directory
>>>>>> Schedule: normal
>>>>>> Last Changed Author: thomas
>>>>>> Last Changed Rev: 272184
>>>>>> Last Changed Date: 2014-09-26 12:13:13 -0700 (Fri, 26 Sep 2014)
>>>>>>
>>>>>> svn info /usr/ports
>>>>>> Path: /usr/ports
>>>>>> Working Copy Root Path: /usr/ports
>>>>>> URL: svn://svn.freebsd.org/ports/head
>>>>>> Relative URL: ^/head
>>>>>> Repository Root: svn://svn.freebsd.org/ports
>>>>>> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
>>>>>> Revision: 369380
>>>>>> Node Kind: directory
>>>>>> Schedule: normal
>>>>>> Last Changed Author: mva
>>>>>> Last Changed Rev: 369380
>>>>>> Last Changed Date: 2014-09-27 01:34:11 -0700 (Sat, 27 Sep 2014)
>>>>>>
>>>>>> FreeBSD demon 9.3-STABLE FreeBSD 9.3-STABLE #0 r272203: Sat Sep 27 15:49:55 PDT 2014
>>>>>> root@demon:/usr/obj/usr/src/sys/DEMON  amd64
>>>>>>
>>>>>> Thank you for all your time, and consideration.
>>>>>>
>>>>>> --Chris
>>>>>>
>>>>>> _______________________________________________
>>>>>> freebsd-current@freebsd.org mailing list
>>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>>>>>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>>>>>>
>>>>>
>>>>> What does config.log say?
>>>> Please see attached (config.log.txt) -- it's big. :)
>>>>
>>>>>
>>>>> also 'clang -v'
>>>> nadda -- don't think it's installed -- WITHOUT_CLANG=true (/etc/make.conf)
>>>>
>>>> Thank you for your thoughtful reply, Allan.
>>>>
>>>> --Chris
>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Allan Jude
>>>>> _______________________________________________
>>>>> freebsd-current@freebsd.org mailing list
>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>>>>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> freebsd-current@freebsd.org mailing list
>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>>>>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>>>
>>> echo $CC
>> # echo $CC
>> CC: Undefined variable
>>>
>>> It seems it is trying to use clang, and you have disabled clang
>>>
>>> check your /etc/make.conf
>> I'm carrying over defines from a 9.2-STABLE box:
>> WITHOUT_CLANG=true
>> FAVORITE_COMPILER=gcc
>>
>> These worked famously on the 9.2. So I thought them safe here (9.3).
>>>
>>> you might need to add CC=gcc to /etc/make.conf to make it work
>>>
>>> Warning: I have no idea what I am talking about, it is 2am at a BSD
>>> conference hacking lounge
>> LOL I wish you the best! :)
>>
>> Thank you for taking the time to reply, Allan. Especially under the
>> circumstances!
>>
>> --Chris
>
> A trip to lang/gcc; make install clean. Also failed to help.
> I guess there isn't a compiler capable of creating executables
> available with RELENG_9? Is this some fascist move to eliminate
> (g)cc from FreeBSD. So that only clang/llvm work?
>
> ugh. :-|
Well. A quick look at graphics/dri/Makefile, reveals it is
a diabolical plot to insist gcc goes away. :(
I simply commented the conditional, and added GCC to suit my needs. :)

# gcc from base can't handle some code in mesa 9.1+
# We only care for 9.x and 8.x, not for old pre-clang default current.
# This is for 0b0000 binary which gcc 4.3+ understands and is in the i965 driver.
.if defined(WITH_NEW_XORG)
. if (${OSVERSION} >= 901500 && ${OSVERSION} < 1000000) \
		&& ${ARCH} == amd64
USE_GCC=yes
#CC=clang
#CXX=clang++
#CPP=clang-cpp
. elif ${OSVERSION} < 901500
USE_GCC=yes
. endif
.endif

Die clang, die! <evil grin>

--Chris

>
>
> --Chris
>
>>>
>>>
>>> --
>>> Allan Jude
>>> _______________________________________________
>>> freebsd-current@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>>>
>>
>> _______________________________________________
>> freebsd-current@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>>
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?411fc42685f5deb5ca9cf02374fc531a.authenticated>