From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22287 invoked by alias); 28 Mar 2011 21:51:15 -0000 Received: (qmail 22226 invoked by uid 22791); 28 Mar 2011 21:51:14 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Mar 2011 21:51:09 +0000 From: "karl at freefriends dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/48306] presence of gcc subdir with . in PATH causes breakdown X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: karl at freefriends dot org X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 28 Mar 2011 22:25:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg02941.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48306 --- Comment #2 from karl at freefriends dot org 2011-03-28 21:51:03 UTC --- For both gcc 4.5.2 and 4.6.0, I configured it from the original source on ftp.gnu.org, using --prefix=/usr/local/gnu --enable-languages=c,c++, no other arguments. "make install" to install. Here is the gcc -v output. I note that cpp is not even being executed. $ gcc -v hello.c Using built-in specs. COLLECT_GCC=gcc Target: i686-pc-linux-gnu Configured with: ../gcc-4.6.0/configure --prefix=/usr/local/gnu --enable-langua\ ges=c,c++ Thread model: posix gcc version 4.6.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro' cc1 -quiet -v -iprefix /tmp/../lib/gcc/i686-pc-linux-gnu/4.6.0/ hello.c -quiet\ -dumpbase hello.c -mtune=generic -march=pentiumpro -auxbase hello -version -o \ /dev/shm/cc34H39x.s gcc: error trying to exec 'cc1': execvp: No such file or directory The /tmp/../lib seems like a clear indication it is finding the empty /tmp/gcc directory. I thought it might be something in my environment causing the failure, but even running with env -i, I get the same error. It is puzzling that you do not see it. I can't think of what else would be specific to my installation. $ mkdir /tmp/gcc $ env -i PATH=/tmp:/usr/local/gnu/bin gcc hello.c gcc: error trying to exec 'cc1': execvp: No such file or directory (the gcc -v output from this env -i run is the same as above.) Thanks, karl