From owner-freebsd-x11@FreeBSD.ORG Sat May 26 19:11:30 2012 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27FDD106566C; Sat, 26 May 2012 19:11:30 +0000 (UTC) (envelope-from rflynn@acsalaska.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id E2EFF8FC08; Sat, 26 May 2012 19:11:29 +0000 (UTC) Received: from [127.0.0.1] (squeeze.lan.rachie.is-a-geek.net [192.168.2.30]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id E010D7E874; Sat, 26 May 2012 11:02:34 -0800 (AKDT) Message-ID: <4FC128C6.1020902@acsalaska.net> Date: Sat, 26 May 2012 21:02:30 +0200 From: Mel Flynn User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Oliver Pinter References: <4FC1082A.9090801@acsalaska.net> <4FC112A1.7080600@acsalaska.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, x11@freebsd.org Subject: Re: libX11 and clang: compile error X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 May 2012 19:11:30 -0000 On 26-5-2012 20:40, Oliver Pinter wrote: > On 5/26/12, Mel Flynn wrote: >> On 26-5-2012 19:17, Oliver Pinter wrote: >>> I think src.conf is relevant, while it changes the system behavior, as >>> changed the default cc from gcc-4.2 to clang. >> >> Thinking it doesn't make it so. Run: >> grep _WITHOUT_SRCCONF /usr/share/mk/*.mk >> >> Then investigate. >> Setting CC in /etc/src.conf has *no effect on CC passed to the ports*. >> Really. It does not. >> The file that can do that is /etc/make.conf. >> Another way is setting CC in your environment variables, through >> /etc/login.conf, /etc/yourshellrc ~/.profile ~/.[cz]?shrc and what not. >> >> In order to debug your issue, you should provide the output of what make >> thinks CC and CPP are and backtrack where they are set. >> Start with: >> make -C /usr/ports/x11/libX11 -V CC -V CPP >> -- >> Mel >> > > After setting WITH_CLANG_IS_CC in src.conf the base system cc,cpp and > c++ has changed: See ports/166373. Also, the fact that your /usr/bin/cpp == clang-cpp is relevant! Especially if you report: > Somewhere in config* or Makefile are a hardcoded /usr/bin/cpp ... -- Mel