i386-elf/coff cross build
Alagu Sankar
alagu@nettaxi.com
Sat Apr 1 00:00:00 GMT 2000
ÃÂ
Thanks for your response.ÃÂ But it doesnt seem to solve my
problem.ÃÂ Let me give a detailed output of the make error so that you can
understand it better. ÃÂ It clearly says that it uses
'ar' for target i.e. i386-coff-ar.ÃÂ Moreover the errorÃÂ says that it is
from the assembler.ÃÂ ThereÃÂ can be some other solution for this.ÃÂ
Can you brief it if you remember?
ÃÂ
I did explore to some more extend.ÃÂ The xgcc compiler generates an
assembly file for libgcc2.c file with _floatdidf option, which contains a
'.alignÃÂ 3' directive and hence the 'alignment not power of 2' error.ÃÂ
But i dont understand why the compiler generates this alignment and how to
overcome it.
ÃÂ
Any help is appreciated.
ÃÂ
--------------------------
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 __dummy _eprintf _bb _shtab
_clear_cache _trampoline __main _exit _ctors _pure; \ do \ ÃÂ echo
${name}; \ ÃÂ /home/alagu/buildx86/buildgcc/gcc/xgcc
-B/home/alagu/buildx86/buildgcc/gcc/ -B/usr/x86gcc/i386-coff/bin/
-I/usr/x86gcc/i386-coff/include -O2ÃÂ
-DCROSS_COMPILE-DIN_GCCÃÂ ÃÂ ÃÂ ÃÂ -g -O2 -I./includeÃÂ ÃÂ
-g1ÃÂ -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libcÃÂ -I.
-I/home/alagu/gcc-2.95.2/gcc -I/home/alagu/gcc-2.95.2/gcc/config
-I/home/alagu/gcc-2.95.2/gcc/../include -c -DL${name}
\ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ /home/alagu/gcc-2.95.2/gcc/libgcc2.c
-o ${name}.o; \ ÃÂ if [ $? -eq 0 ] ; then true; else exit 1; fi;
\ ÃÂ i386-coff-ar rc tmplibgcc2.a ${name}.o; \ ÃÂ rm -f ${name}.o;
\ done _muldi3 _divdi3 _moddi3
_divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf /tmp/cc6hpKn9.s:
Assembler messages: /tmp/cc6hpKn9.s:113: Error: Alignment not a power of
2 make[1]: *** [libgcc2.a] Error 1 make[1]: Leaving directory
`/home/alagu/buildx86/buildgcc/gcc' make: *** [cross] Error 2
----------------------------------------------
----- Original Message -----
From:
b
gonzales
To: Alagu Sankar ; crossgcc@sourceware.cygnus.com
Sent: Thursday, March 30, 2000 7:04
PM
Subject: Re: i386-elf/coff cross
build
I encountered this problem
before.
ÃÂ
What I did was I copied /bin/ar into one of the bin
directory of the cross compiler.
ÃÂ
Try examining the make file. There is a line
there that references the ar program.
ÃÂ
I'm sorry that I cannot give the details becauseÃÂ I
have no notes about it.
ÃÂ
Hope this helps.
ÃÂ
ÃÂ
-----Original Message----- From:
Alagu Sankar < alagu@nettaxi.com > To: crossgcc@sourceware.cygnus.com
< crossgcc@sourceware.cygnus.com > Date:
Thursday, March 30, 2000 3:17 PM Subject: i386-elf/coff cross
build
Hi all,
ÃÂ
I am in the process of building cross compiler
tools for intel 386 embedded target with a custom RTOS.ÃÂ Has anybody
succeded in installing the i[3456]-elf or i[3456]-coff gcc cross compilers
with linux or windows(cygwin) host. I'm seeing lot of failure stories in
building i386 cross tools in the mailing list
ÃÂ
I am using gcc-2.95.2 with newlib-1.8.2.ÃÂ
I am able to build bin utils for i386-coff successfully. But when i try to
install gcc i am getting the follwoing errors ( I tried with bothÃÂ cygwin and linux host but the result is
same).ÃÂ ÃÂ Any helpÃÂ in solving the problem is very much
appreciated.
ÃÂ
-------------------------------------------------------------------------
_ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf /tmp/ccQYtSN7.s:
Assembler messages: /tmp/ccQYtSN7.s:113: Error: Alignment not a power of
2 make[1]: *** [libgcc2.a] Error 1 make[1]: Leaving directory
`/home/alagu/buildx86/buildgcc/gcc' make: *** [cross] Error 2ÃÂ ÃÂ
---------------------------------------------------------------------------
ÃÂ
I was successfull in creating powerpc-eabi and
arm-coff for both the host and obviously i follow the same procedure for
building i386-coff also.
ÃÂ
I have got one more question. Does anybody
know, like.. what are theÃÂ issuesÃÂ in using gcc with a custom
developed RTOS (not RTEMS or eCos) and its own C library routines for am
embedded target.
ÃÂ
Thanx in anticipation
ÃÂ
Alagu
Sankar
More information about the crossgcc
mailing list