From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 18 22:05:43 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1593106564A for ; Wed, 18 Jan 2012 22:05:43 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 8FCE38FC16 for ; Wed, 18 Jan 2012 22:05:43 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id q0IM5gIr035179 for ; Wed, 18 Jan 2012 14:05:43 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <4F174236.2010006@rawbw.com> Date: Wed, 18 Jan 2012 14:05:42 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111226 Thunderbird/9.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: compiler configuration regression in 9.0? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2012 22:05:43 -0000 One port build (www/neon29) fails for me on 9.0 (i386, freshly upgraded from 8.2), configure fails with the message: "cpp: error trying to exec 'cc1': execvp: No such file or directory" I tracked in down to the PATH variable passed to cpp, when PATH begins with /usr/local/bin, cpp breaks in 9.0. But when the same /usr/local/bin is in the end of the path it works fine. I also noticed that in 9.0 gcc is 4.2.1 and in 8.2 gcc is 4.2.2, which may be related. What might be a problem with this? Yuri --- testcase --- #!/bin/sh echo >> conftest.c << __END__ /* confdefs.h */ #ifdef __STDC__ # include #else # include #endif __END__ # BREAKS 9.0, works in 8.2 export PATH="/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin" # WORKS everywhere #export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin" cpp -I/usr/local/include conftest.c