From owner-freebsd-stable@FreeBSD.ORG Mon Sep 29 03:15:13 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E6672E37; Mon, 29 Sep 2014 03:15:13 +0000 (UTC) Received: from udns.ultimatedns.net (unknown [IPv6:2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 79C7FDDD; Mon, 29 Sep 2014 03:15:13 +0000 (UTC) Received: from udns.ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.5/8.14.5) with ESMTP id s8T3FSI4036735; Sun, 28 Sep 2014 20:15:33 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: (from www@localhost) by udns.ultimatedns.net (8.14.5/8.14.5/Submit) id s8T3FMqf036729; Sun, 28 Sep 2014 20:15:22 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net ([2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (UDNSMS authenticated user chrish) by ultimatedns.net with HTTP; Sun, 28 Sep 2014 20:15:23 -0700 (PDT) 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> Date: Sun, 28 Sep 2014 20:15:23 -0700 (PDT) Subject: Re: Mesa-9: configure: error: C compiler cannot create executables From: "Chris H" To: "Allan Jude" User-Agent: UDNSMS/2.0.3 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2014 03:15:14 -0000 >>> 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! --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" >