2nd Stage of xGCC -- failure

Lukas Ruf ruf@tik.ee.ethz.ch
Thu Apr 12 02:08:00 GMT 2001


Hi Yves,

thanks for your answer. I am downloading the toolchains now.  But,
supposed I want to create my own xgcc for ARM, do you have any hint, how
I can circumvent the pefore mentioned problem of 

In file included from
/home/ruf/Cross/arm-linux/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/math.h:350,
                 from /home/ruf/Cross/src/gcc-2.95.3/libstdc++/cmath:7,
                 from
/home/ruf/Cross/src/gcc-2.95.3/libstdc++/cmathi.cc:7:
/home/ruf/Cross/arm-linux/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/bits/mathinline.h:
In function `double atan2(double, double)':
/home/ruf/Cross/arm-linux/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/bits/mathinline.h:475:
unknown register name `st(1)' in `asm'

which expands to 

#define __llrint_code \
  long long int __llrintres;                  \
  __asm__ __volatile__                    \
    ("fistpll %0"                   \
     : "=m" (__llrintres) : "t" (__x) : "st");              \
  return __llrintres
__MATH_INLINE long long int


Thanks in advance,

Lukas

On Thu, 12 Apr 2001, Yves Rutschle wrote:

> > I am trying to create a cross-compiler for arm-linux with support of
> > glibc as I need to get Linux running on an ARM -- something, that must
> > have been done a thousand times, I suggest :-|
> 
> Yep. You should be able to find a pre-compiled package for i386-linux
> hosts
> from MontaVista, (www.mvista.com) I think RedHat has cross-compile stuff
> too. The LART has a toolchain as well 
> ( http://www.lart.tudelft.nl/lartware/compile-tools/ )
> 
> > - Do I really need C++ support to build the Linux kernel for ARM?
> 
> No. You don't even need Glibc at all. All you need to compile
> the kernel is binutils and GCC for C.
> Add to that Glibc and you can compile any C program for Linux.
> Then you need to do the second stage of GCC for C++ programs,
> but fortunately there aren't that many out there.
> 
> Y.

-- 
Lukas Ruf                        Swiss Federal Institute of Technology
Office: ETZ-G61.2                             Computer Engineering and
Phone: +41/1/632 7312                        Networks Laboratory (TIK)
Fax:   +41/1/632 1035                                      ETH Zentrum
PGP 2.6: ID D20BA2ED;                                    Gloriastr. 35
Fingerprint 6323 B9BC 9C8E 6563  B477 BADD FEA6 E6B7    CH-8092 Zurich

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list