possible gcc C bug on Sun solaris 2.5.1
Slatest, Leonard A
slatest@bnl.gov
Wed Jan 26 08:33:00 GMT 2000
All,
When I execute:
gcc -p testit.c
on my sun solaris 2.5.1 box, I get this error:
ld: fatal: file mcrt1.o: open failed: No such file or directory
The error only occurs when I compile with the -p option.
I do not see this error in the list of bugs on the gcc web page. Do
you happen to know if this is a bug in the version of gcc I am using,
and if it was fixed in a later version, in which case we will upgrade our
gcc?
Here is the output from
gcc -v --save-temps -p testit.c :
****************************************************************************
********************************************************
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/specs
gcc version 2.8.1
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/cpp -lang-c -v -undef
-D__GNUC__=2 -D__
GNUC_MINOR__=8 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__
-D__sun__ -D__unix__ -D_
_svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4)
-D__GCC_NEW_VARARG
S__ -Acpu(sparc) -Amachine(sparc) testit.c testit.i
GNU CPP version 2.8.1 (sparc)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/local/sparc-sun-solaris2.5.1/include
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/cc1 testit.i -quiet
-dumpbase testit.c
-version -p -o testit.s
GNU C version 2.8.1 (sparc-sun-solaris2.5.1) compiled by GNU C version
2.8.1.
/usr/ccs/bin/as -V -Qy -s -o testit.o testit.s
/usr/ccs/bin/as: WorkShop Compilers 4.2 dev 13 May 1996
/usr/ccs/bin/ld -V -Y
P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib -Qy mcrt1.o /
usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/crti.o
/usr/ccs/lib/values-Xa.o /usr/loca
l/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/crtbegin.o
-L/usr/local/lib/gcc-lib/sparc-sun-sol
aris2.5.1/2.8.1 -L/usr/local/sparc-sun-solaris2.5.1/lib -L/usr/ccs/bin
-L/usr/ccs/lib -L/usr
/local/lib testit.o -lgcc -lc -lgcc
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/crte
nd.o /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/crtn.o
ld: fatal: file mcrt1.o: open failed: No such file or directory
****************************************************************************
*********************************
Thank you,
----------------------------------------------------------------------------
------------
Len Slatest 631-344-4102 slatest@bnl.gov
<<testit.i.gz>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testit.i.gz
Type: application/x-gzip
Size: 870 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000126/4cab5696/attachment.bin>
More information about the Gcc-bugs
mailing list