Compile error, can't find crt1.o
807559Nov 6 2006 — edited Nov 7 2006Hi
I have a new Sol 10 06/06 installed with minimal packages plus extras as necessary for a server.
I'm getting an error when I try to compile using gcc:
% echo 'int main(int argc, char **argv) { printf("hello, world!"); putchar(10); }' > hello.c
% gcc -o hello hello.c
ld: fatal: file crt1.o: open failed: No such file or directory
collect2: ld returned 1 exit status
Where did crt1.0 come from? I installed blastwave gcc3, gcc4, which didn't work. Then I uninstalled gcc3, gcc4.
Finally, I tried uninstalling and reinstalling SUNWgcc, but that hasn't helped.
# gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure prefix=/usr/sfw with-as=/usr/sfw/bin/gas with-gnu-as with-ld=/usr/ccs/bin/ld without-gnu-ld enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
---
Where do I get make, and not gmake?
Thanks in advance.