[Bug c/37995] using <stdio.h> fails if gcc invoked in a directory which has a subdirectory called "gcc"

mvanier at cs dot caltech dot edu gcc-bugzilla@gcc.gnu.org
Tue Nov 4 11:08:00 GMT 2008



------- Comment #5 from mvanier at cs dot caltech dot edu  2008-11-04 11:07 -------
OK, I built a vanilla gcc system from scratch and it's still exhibiting the
same problem.  However, here's something new: the problem only manifests itself
if "." (the current directory) is in the path.  If it isn't, no problem. 
$GCC_EXEC_PATH is not defined.

Also, (when "." is in the path) if I explicitly give the path to gcc:

% /pkg/gcc/bin/gcc hello.c

it works.  But if I don't:

% which gcc
/pkg/gcc/bin/gcc
% gcc hello.c

you get the same error message I reported before.  This is really weird.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37995



More information about the Gcc-bugs mailing list