[3345] in testers
sgi 8.1.15: /usr/bin/CC -n32
daemon@ATHENA.MIT.EDU (Darrin B. Jewell)
Sun Nov 9 19:59:54 1997
To: testers@MIT.EDU
Cc: jewell@MIT.EDU
Date: Sun, 09 Nov 1997 19:59:46 EST
From: "Darrin B. Jewell" <jewell@MIT.EDU>
System name: oliver
Type and version: SGI??? 8.1.15 (with mkserv)
Display type: UNKNOWN video
What were you trying to do?
Compile a program using the -n32 ABI.
> touch foo.c
> cc -n32 foo.c
cc ERROR: cannot exec /usr/lib32/cmplrs/ld32
cc INTERNAL ERROR: /usr/lib32/cmplrs/ld32 returned non-zero status 32
> touch foo.cc
> CC -n32 foo.cc
CC ERROR: cannot exec /usr/lib32/cmplrs/ld32
CC INTERNAL ERROR: /usr/lib32/cmplrs/ld32 returned non-zero status 32
> /usr/lib32/cmplrs/ld32
/usr/lib32/cmplrs/ld32: Command not found.
> ls -algF /usr/lib32/cmplrs/ld32
lrwxr-xr-x 1 sys 25 Nov 6 15:32 /usr/lib32/cmplrs/ld32 -> /os/usr/lib32/cmplrs/ld32
> cd /os/usr/lib32/cmplrs/
> /bin/pwd
/afs/dev.mit.edu/system/sgi_63/os/extra/extra0/lib32/cmplrs
> ls -algF ld32
lrwxr-xr-x 1 sys 12 Oct 1 18:12 ld32 -> ../../lib/ld
> cd /afs/dev.mit.edu/system/sgi_63/os/usr/
> /bin/pwd
/afs/dev.mit.edu/system/sgi_63/os/usr
> ls -l lib32
lrwxr-xr-x 1 root sys 21 Sep 30 18:52 lib32 -> ../extra/extra0/lib32
What's wrong:
The compiler cannot find its linker.
It appears that the symlink :
/afs/dev.mit.edu/system/sgi_63/os/usr/lib32 -> ../extra/extra0/lib32/
breaks the symlink :
/afs/dev.mit.edu/system/sgi_63/os/extra/extra0/lib32/cmplrs/ld32 -> ../../lib/ld
I believe the compiler should be invoking the linker which is actually found in:
/afs/dev.mit.edu/system/sgi_63/os/usr/lib/ld
What should have happened:
The compiler should probably have complained about
an unresolved "main" function.
Please describe any relevant documentation references:
I consulted Greg Hudson <ghudson@mit.edu>, who
helped me understand what was going on. Greg is average height,
has long brown hair, is pretty clueful and is usually wearing
all black.