This has also been cross-posted to the gcc-help list; I know that's a
no-no but this seems like the sort of issue that a Linux/Redhat list
would be better at.

I'm trying to configure gcc as a cross-compiler on a RedHat linux 5.0
machine (kernel version 2.0.32, gcc version 2.7.2.3-8, binutils version
2.8.1.0.1-1) for making binaries to run on SCO targets (usually sysVr3,
but possibly also r4).  In the gcc info file's section on building a
cross-compiler, there are a couple of steps which seem to be necessary
depending upon the target system, but I don't know if that applies to
SCO or not.

The first such step is to create libgcc1.a; the info file suggests
installing gcc on the _target_ machine and generating libgcc1.a from
there, but that's not an option for me (the only SCO box we have is on
its last legs, which is why I'm undertaking this project in the first
place).

The other option is (quoting from the info file):

   To build `libgcc1.a' using the perform macros, use
`LIBGCC1=libgcc1.a OLDCC=./xgcc' when building the compiler.
Otherwise, you should place your replacement library under the name
`libgcc1.a' in the directory in which you will build the
cross-compiler, before you run `make'.

What does this mean?  How do I do this?  Is SCO one of the supported
targets for this operation, and how do I even find out?

NEXT issue: In order to build the cross-compiler, I need something
called "fload.h".  The info file says I should be able to compile it on
my host machine, run it on the target machine, and then use the result
to build the cross-compiler, but on my system '# make enquire'
terminates with the following error (sorry about all the debugging
info):

  Must remake target `enquire.o'.
./xgcc -B./ -DCROSS_COMPILE -DIN_GCC   -g -I./include    -DNO_MEM
-DNO_LONG_DOUBLE_IO -O0 -I. -c ./enquire.c
Putting child 0x0809de78 PID 21124 on the chain.
Live child 0x0809de78 PID 21124
./enquire.c:390: stdio.h: No such file or directory
./enquire.c:401: sys/types.h: No such file or directory
./enquire.c:402: signal.h: No such file or directory
./enquire.c:403: setjmp.h: No such file or directory
Got a SIGCHLD; 1 unreaped children.
Reaping losing child 0x0809de78 PID 21124
make: *** [enquire.o] Error 1

The listed files do exist in my /usr/include directory; do I need to
fudge a link somewhere or do I need different files?

Finally, once my cross-compiler is configured, how do I install it
without blowing out my existing compiler wich I need for real programs
that run on my real OS?

Sorry for the laundry list; any and all thoughts gratefully appreciated.

-michael





-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to