Try if configuring the compiler with "--with-gnu-as --with-gnu-ld"
helps.
> Hi:
>
> I trying to configure a cross-compiler to run on a RedHat 5.2 box. I
> have a series of object files that are compiled on a SCO box that I must
> link with in order to access a relational database. I have already
> configured, compiled, and installed a cross-assembler and a
> cross-linker. When trying to compile gcc as a cross-compiler, it bombs
> out when compiling libgcc2.c. Here are some of the errors:
>
> [root@esc gcc-2.7.2.3]# make LANGUAGES=c
> if [ -f libgcc2.ready ] ; then \
> true; \
> else \
> touch libgcc2.ready; \
> fi
> rm -f tmplibgcc2.a
> for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
> _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2
> _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi
> _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi
> _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs _eprintf _op_new
> _op_vnew _new_handler _op_delete _op_vdel _bb _shtab _clear_cache
> _trampoline __main _exit _ctors _eh _pure; \
> do \
> echo ${name}; \
> ./xgcc -B./ -O2 -DCROSS_COMPILE -DIN_GCC -g -I./include -g1 -I.
> -I. -I./config -c -DL${name} \
> ./libgcc2.c -o ${name}.o; \
> if [ $? -eq 0 ] ; then true; else exit 1; fi; \
> /usr/i686-pc-sco3.2v5/bin/ar rc tmplibgcc2.a ${name}.o; \
> rm -f ${name}.o; \
> done
> _muldi3
> /tmp/cca15817.s: Assembler messages:
> /tmp/cca15817.s:5: Error: Unknown pseudo-op: `.def'
> /tmp/cca15817.s:5: Error: Unknown pseudo-op: `.scl'
> /tmp/cca15817.s:5: Error: ignoring unrecognized symbol type ""
> /tmp/cca15817.s:5: Error: Rest of line ignored. First ignored character
> is `0'.
> /tmp/cca15817.s:5: Error: expected comma after name `' in .size
> directive
> /tmp/cca15817.s:5: Error: Rest of line ignored. First ignored character
> is `4'.
> /tmp/cca15817.s:5: Error: Unknown pseudo-op: `.endef'
> /tmp/cca15817.s:6: Error: Unknown pseudo-op: `.def'
>                         .
>                         .
>                         .
> libgcc2.c:32: Error: Unknown pseudo-op: `.scl'
> libgcc2.c:1: Error: Unknown pseudo-op: `.endef'
> libgcc2.c:8: Error: Unknown pseudo-op: `.def'
> libgcc2.c:8: Error: Unknown pseudo-op: `.val'
> libgcc2.c:8: Error: Unknown pseudo-op: `.scl'
> libgcc2.c:8: Error: Unknown pseudo-op: `.endef'
> make: *** [libgcc2.a] Error 1
> [root@esc gcc-2.7.2.3]#
>
> The errors go on like this for about 4 pages. I have been busting my
> brains trying to figure out what is going wrong, but I don't know enough
> about this to arrive at the solution. Does anyone have any experience
> with this? Does anyone have any words of advice? Can anyone point me in
> the right direction for some help?
>
> Signed,
> Totally Frustrated
> --
> Oakwood, GA 30566 USA
> 770.965.9294
> http://www.esc1.com
> The Gates of hell shall NOT prevail...
> --
> To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.
>
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.