Article View: gnu.gcc.help
Article #42622Help on making cross compiler
From: Sean Christopher Farley
Date: Thu, 16 Nov 1995 00:00
Date: Thu, 16 Nov 1995 00:00
45 lines
2507 bytes
2507 bytes
I admit to being a newbie; I have never made a cross compiler before.
I am attempting to make a cross compiler between host=i586-linux and
target=i386-msdos-go32.
I have built the cross assembler and linker. Correctly, I hope.
My problem arises while compiling the first stage of the compiler.
Here is the beginning of the problem area:
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/i386-go32-msdos/bin/ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
/tmp/cca00093.s: Assembler messages:
/tmp/cca00093.s:5: Error: Unknown pseudo-op: `.def'
/tmp/cca00093.s:5: Error: Unknown pseudo-op: `.scl'
/tmp/cca00093.s:5: Error: ignoring unrecognized symbol type ""
/tmp/cca00093.s:5: Error: expected comma after name `4' in .size directive
/tmp/cca00093.s:5: Error: Unknown pseudo-op: `.endef'
This keep repeating until the end of more errors concerning libgcc2.c:
libgcc2.c:0: Error: Unknown pseudo-op: `.endef'
libgcc2.c:1: Error: Unknown pseudo-op: `.def'
libgcc2.c:1: Error: Unknown pseudo-op: `.val'
libgcc2.c:1: Error: Unknown pseudo-op: `.scl'
libgcc2.c:1: Error: ignoring unrecognized symbol type ""
What do I need to do? Or get? I still haven't actually gotten the libgcc.a
file, but with any type of file the above errors will arrive.
Thanks,
Sean
--
Sean C. Farley
scf@cs.purdue.edu
PGP 2.6.2 key using finger or WWW
WWW Homepage is: http://www.cs.purdue.edu/people/farleysc
Technical Details
Message-ID:
<farleysc.816548436@lab33.cs.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,cc11608ab497095,start X-Google-Attributes: gid11318c,public From: farleysc@cs.purdue.edu (Sean Christopher Farley) Subject: Help on making cross compiler Date: 1995/11/16 Message-ID: <farleysc.816548436@lab33.cs.purdue.edu> X-Deja-AN: 119515612 organization: Department of Computer Sciences, Purdue University newsgroups: gnu.gcc.help