egcs bug

Chris Moller moller1@bops.com
Thu May 20 13:06:00 GMT 1999


i just installed redhat linux 6.0 with gcc -v yielding:

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

if i compile any file:
   cc -o hello hello.c
everything works fine EXCEPT when there's an executable file (script or
binary) or a subdirectory named "ld" in the current directory.  if
there's an executable named "ld", it will be run instead of the linker
"ld"; if there's a subdir named "ld", you get an error message
"collect2: ld returned 33 exit status".

i think this failure occured because  (a), the linker ld was left out of
the /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66, and (b), the first
entry in my $PATH is '.'.  when the compiler couldn't find ld in the
gcc-lib dir and whatever other fixed locations it looks in, it gave up
and let the shell try to resolve it, and the shell found whatever was in
'.'

i fixed (patched?) this by copying /usr/bin/as and /usr/bin/lb into
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -- everything works fine
now.

chris moller, bops, inc.




More information about the Gcc-bugs mailing list