public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Cross compiler Alpha->powerpc problems
@ 2001-03-25  3:31 Bob Koninckx
  2001-03-26 19:52 ` Alexandre Oliva
  0 siblings, 1 reply; 7+ messages in thread
From: Bob Koninckx @ 2001-03-25  3:31 UTC (permalink / raw)
  To: gcc-help

Hi guys,

I am trying to build the development tools for ecos on an alpha (rh. 7.0
distribution, 2.2.17 kernel)

My native tools are gcc-2.95.3, binutils 2.10.1

I downloaded gcc-2.95.2 (core + g++) and binutils-2.10.1

Binutils compiled fine and where installed under
/usr/local/crossgcc/powerpc-eabi

I then tried to build the compiler using the following commands


## PATH=/usr/local/crossgcc/powerpc-eabi/bin:$PATH; export PATH

## configure --target=powerpc-eabi \
## --prefix=/usr/local/crossgcc/powerpc-eabi \
## --exec-prefix=/usr/local/crossgcc/powerpc-eabi \
## --with-gnu-as --with-gnu-ld --with-newlib \
## -v 2>&1 | tee configure.out

This did not report any errors. The build phase dies with the message 


make[3]: Entering directory `/home/bob/tmp/ecos-tools/build/gcc/gcc'
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 __dummy _eprintf _bb
_shtab _clear_cache _trampoline __main _exit _ctors _pure; \
do \
  echo ${name}; \
  /home/bob/tmp/ecos-tools/build/gcc/gcc/xgcc
-B/home/bob/tmp/ecos-tools/build/gcc/gcc/
-B/usr/local/crossgcc/powerpc-eabi/powerpc-eabi/bin/
-I/usr/local/crossgcc/powerpc-eabi/powerpc-eabi/include -O2 
-DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2 -I./include    -g1 
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc   -mrelocatable-lib
-mno-eabi -mstrict-align -I. -I../../../src/gcc/gcc-2.95.2/gcc
-I../../../src/gcc/gcc-2.95.2/gcc/config
-I../../../src/gcc/gcc-2.95.2/gcc/../include -c -DL${name} \
       ../../../src/gcc/gcc-2.95.2/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  powerpc-eabi-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
_divdi3
_moddi3
_udivdi3
_umoddi3
_negdi2
_lshrdi3
_ashldi3
_ashrdi3
_ffsdi2
_udiv_w_sdiv
_udivmoddi4
_cmpdi2
_ucmpdi2
_floatdidf
_floatdisf
../../../src/gcc/gcc-2.95.2/gcc/libgcc2.c: In function `__floatdisf':
../../../src/gcc/gcc-2.95.2/gcc/libgcc2.c:1069: Could not split insn
(insn:TI 144 16 18 (set (reg:SI 10 r10)
        (const_int 4294901760 [0xffff0000])) 423 {movsi+1} (insn_list
143 (nil))
    (nil))
make[3]: *** [libgcc2.a] Error 1




Any ideas ?? Suggestions

Thanks,

Bob

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: Cross compiler Alpha->powerpc problems
@ 2001-03-26  4:38 David Korn
  2001-03-26  5:17 ` Bob Koninckx
  0 siblings, 1 reply; 7+ messages in thread
From: David Korn @ 2001-03-26  4:38 UTC (permalink / raw)
  To: 'bob.koninckx@mech.kuleuven.ac.be', gcc-help

>-----Original Message-----
>From: Bob Koninckx [ mailto:bob.koninckx@mech.kuleuven.ac.be ]
>Sent: 25 March 2001 11:30

>## PATH=/usr/local/crossgcc/powerpc-eabi/bin:$PATH; export PATH

  Don't do this.

  In the $prefix/$target/bin directory, you have cross binutils, with
no '$target-' prefix.  Putting this directory first in your path means that
whenever gcc tries to invoke 'as', it will find the ppc cross assembler and
run that.  That's not what you want; you want to find the native assembler,
since you're building a compiler that's meant to run on your alpha, not 
your ppc.

  What you really wanted was

  PATH=/usr/local/crossgcc/bin:$PATH; export PATH

so that the cross compile process can find the cross binutils under the
name 'powerpc-eabi-as' etc.

  Clear everything out and try again with this version of the path setting.

  I can't promise that this is the solution to your problem, but it's
still necessary; I've always had mysterious build errors when I've made
that mistake myself.

  BTW, http://sources.redhat.com/ecos/getstart.html only mentions the
tools as running under Linux and Windows, so you may find that they
don't build correctly under Alpha?  Or are you running Linux on Alpha?
Have you joined the eCos mailing list?  Did you apply the path from
http://sources.redhat.com/ecos/tools/patches/ecos-gcc-2952.pat
to the gcc source code?

      DaveK
-- 
 All your base are belong to us!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-03-28  0:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-25  3:31 Cross compiler Alpha->powerpc problems Bob Koninckx
2001-03-26 19:52 ` Alexandre Oliva
2001-03-26 22:55   ` Bob Koninckx
2001-03-27 13:06     ` Alexandre Oliva
2001-03-28  0:50       ` Bob Koninckx
2001-03-26  4:38 David Korn
2001-03-26  5:17 ` Bob Koninckx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).