[gnu.gcc.bug] generating gcc cross-compilers -- bugs/problems

Leisner.Henr@XEROX.COM (Marty) (04/14/89)

I'm trying to set up cross-compilers with gnu C v1.33.  I have easy access
to a sun386i and a sun/4 (both running sun OS/4).  I've had problems
generating cross-compilers so I'd figure I'd learn how to do it on these 2
machines.

On each machine, I've been able to bootstrap GCC successfully (running a
native compiler on a host).

I've been able to generate a 386i cross compiler on the sun/4 (using Sun
CC).
I've been unable to generate a sun/4 cross-compiler on the sun386i using
either sunC or gcc.

I just ran config.gcc desired-target and typed make on each machine.

I've tried this for a few other targets and have had mixed success (I was
able to generate a ns32k target but I can't generate a 68xxx target on the
386i.  I'm going to do some more playing on the sun/4).

Is there anything wrong  with what I'm trying to do (the gcc documentation
mentions floating point incompatibilities in cross-compiling, but doesn't
seem to mention much else).  Is there anything inside gcc dependent on the
host environment which isn't defined in the machine description?

Here's my test program:
mlsun% more hello.c
main()
{
}

On sun386i for sun4:
mlsun% !./gcc
./gcc -B./ -v -S hello.c
gcc version 1.33
 ./cpp -v -undef -D__GNUC__ -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__
-D__unix_
_ hello.c /tmp/cca25951.cpp
GNU CPP version 1.33
 ./cc1 /tmp/cca25951.cpp -quiet -dumpbase hello.c -version -o hello.s
GNU C version 1.33 (sparc) compiled by GNU C version 1.33.
./gcc: Program cc1 got fatal signal 11.

On the sun4, I was able to create a 386 compiler with seemingly no problem.

I've also tried to compile sparcs gcc with the sun386i C compiler with
similar results.


marty
ARPA:	leisner.henr@xerox.com
GV:  leisner.henr
NS:  martin leisner:wbst139:xerox
UUCP:	hplabs!arisia!leisner