Article View: gnu.gcc.help
Article #53692Re: Help needed: gcc/g++ 1.37 SCO Xenix binaries
From: Ronald S H Khoo
Date: Thu, 08 Aug 1991 11:46
Date: Thu, 08 Aug 1991 11:46
79 lines
3481 bytes
3481 bytes
Quoth billk@ucscb.ucsc.edu in <19153@darkstar.ucsc.edu>:
> I downloaded SCO Xenix binaries for gcc 1.37.1 and g++ 1.37,
> apparently using Steve Bleazard's patches.
Who built these binaries ? In particular, did you use the binaries that
we built ? (you can find those on unix.secs.oakland.edu) If you are using
our binaries, you will be able to do
# grep rel= /etc/perms/gnuc
#rel=1.37.1d
Also, please cc: all XENIX-related gcc mail to steve@robobar.co.uk. Thank you.
> I do not have gnu-ld, so gcc and g++ are using /bin/ld.
We don't use gnu-ld under XENIX.
> 2.3.4 with the SCO Xenix Development System 2.3.1.
Well, we have Dev Sys 2.3.1 here at RoboBar, but 2.3.4 OS has not arrived yet.
> Gcc and g++ execute and compile programs, but do not link programs.
> gcc link line: ld -i /lib/386/Sseg.o /lib/386/Scrt0.o -o a.out foo.o
> /usr/local/lib/gcc-gnulib /lib/386/Slibcfp.a /lib/386/libc.a
^^^
Should be Slibc.a, for Xenix. Is that a typo?
> gcc link errors:
> Unresolved externals:
> _main in file(s):
> /lib/386/Slibc.a(_start.c)
> _printf in file(s):
> foo.o(foo.o)
> What am I doing wrong?
Odd. Very odd. About the only other thing I can suggest is to try using
the /bin/ld from your development system, rather than the operating system:
(Insert Diskette D01)
cd / ; mv /bin/ld /bin/ld.save ; tar xf /dev/install ./bin/ld
For certain, the exact same gcc binary works here. This is the log of
information we need to proceed further:
# cat hello.c
#include <stdio.h>
main()
{
printf("Hello world\n");
}
# grep rel= /etc/perms/soft /etc/perms/gnuc
/etc/perms/soft:#rel=2.3.1b
/etc/perms/gnuc:#rel=1.37.1d
# what /bin/ld
/bin/ld
Wed Dec 13 05:23:13 PST 1989
# gcc -v hello.c
gcc version 1.37.1
/usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dunix -DM_I86 -DM_I86SM -DM_SDATA
-DM_STEXT -DM_I386 -DM_XENIX -DM_BITFIELDS -Di386 -DM_INTERNAT -DM_XOUT -DM_SYS5
-DM_SYSV -DM_SYS3 -DM_SYSIII -DM_WORDSWAP -D__unix__ -D__M_I86__ -D__M_I86SM__
-D__M_SDATA__ -D__M_STEXT__ -D__M_I386__ -D__M_XENIX__ -D__M_BITFIELDS__
-D__i386__ -D__M_INTERNAT__ -D__M_XOUT__ -D__M_SYS5__ -D__M_SYSV__ -D__M_SYS3__
-D__M_SYSIII__ -D__M_WORDSWAP__ hello.c /usr/tmp/cca11512.cpp
GNU CPP version 1.37.1
/usr/local/lib/gcc-cc1 /usr/tmp/cca11512.cpp -quiet -dumpbase hello.c -version
-o /usr/tmp/cca11512.s
GNU C version 1.37.1 (80386, Xenix GAS syntax) compiled by GNU C version 1.37.1.
default target switches: -m80387
/usr/local/bin/gas -v -o hello.o /usr/tmp/cca11512.s
GNU assembler version 1.35
ld -i /lib/386/Sseg.o /lib/386/Scrt0.o -o a.out hello.o /usr/local/lib/gcc-gnulib /lib/386/Slibcfp.a /lib/386/Slibc.a
# ./a.out
Hello world
--
Ronald Khoo <ronald@robobar.co.uk> +44 81 991 1142 (O) +44 71 229 7741 (H)
Technical Details
Message-ID:
<9108081046.AA15628@robobar.Co.Uk>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!robobar.co.UK!ronaldReferences:
<19153@darkstar.ucsc.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,4f86e77b472812a8 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1991-08-08 09:20:22 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!robobar.co.UK!ronald From: ronald@robobar.co.UK (Ronald S H Khoo) Newsgroups: gnu.gcc.help Subject: Re: Help needed: gcc/g++ 1.37 SCO Xenix binaries Message-ID: <9108081046.AA15628@robobar.Co.Uk> Date: 8 Aug 91 11:46:08 GMT References: <19153@darkstar.ucsc.edu> Sender: daemon@cis.ohio-state.edu Distribution: gnu Organization: Robobar Ltd., Perivale, Middx., ENGLAND. Lines: 79