This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

building an i686 linux-to-m88k svr3 cross-compiler



here's a message i posted yesterday to gcc@gcc.gnu.org:


yes, you read right :-)

   my employer is still running svr3 on a number of these old motorola
   m88k systems and i'd like to simplify my job by building a
   cross-compiler. no problems building/installing binutils but when
   building gcc, i get the following for both cpp0 and fix-header targets:

undefined reference to `target_flags'

   i see target_flags declared in gensupport.c and rtlanal.c.  i'm not
   familiar with the gcc sources.  can someone point me in the right
   direction?

many thanks!

since then (i had no takers), i simply added a declaration for target_flags to cppinit.c to get past this. i then get the following:

/usr2/src/gcc-3.2_88k/gcc/xgcc -B/usr2/src/gcc-3.2_88k/gcc/ -B/usr/local/m88k-motorola-sysv3/bin/ -B/usr/local/m88k-motorola-sysv3/lib/ -isystem /usr/local/m88k-motorola-sysv3/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions \
-Dinhibit_libc -c ../../gcc-3.2/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
../../gcc-3.2/gcc/crtstuff.c: In function `__do_global_ctors':
../../gcc-3.2/gcc/crtstuff.c:349: Attempt to delete prologue/epilogue insn:
(insn 23 21 24 (set (reg:SI 1 r1)
(mem:SI (plus:SI (reg/f:SI 31 r31)
(const_int 36 [0x24])) [0 S4 A32])) -1 (nil)
(nil))
../../gcc-3.2/gcc/crtstuff.c:349: Internal compiler error in propagate_one_insn, at flow.c:1615
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[1]: *** [crtbegin.o] Error 1


--

Regards,

Scott Dudley

SPAMMERSNEEDNTBOTHER


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]