This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/48306] New: presence of gcc subdir with . in PATH causes breakdown
- From: "karl at freefriends dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Mar 2011 00:03:33 +0000
- Subject: [Bug driver/48306] New: presence of gcc subdir with . in PATH causes breakdown
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48306
Summary: presence of gcc subdir with . in PATH causes breakdown
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: karl@freefriends.org
If a directory in PATH contains a subdirectory gcc/ (with executable access),
gcc fails to find its subprograms:
$ PATH=/tmp:$PATH
$ mkdir /tmp/gcc
$ gcc hello.c
gcc: error trying to exec 'cc1': execvp: No such file or directory
$ rmdir /tmp/gcc
$ gcc hello.c
$
If this behavior is explained or implicit in the documentation, sorry; I
couldn't find it. It happens in at least gcc 4.5.x and 4.6.0. I'm sure it
wasn't always this way.