Discussion:
I got a error cross compiling glibc with GCC-3.4.0
(too old to reply)
tosensei
2004-06-04 05:36:38 UTC
Permalink
Hi~

I had a error in configure as follows :


/libc-symbols.h -I../soft-fp/ -o
/home/tosensei/builds/powerpc-linux-glibc/math/s_isnan.o
../sysdeps/powerpc/fpu/s_isnan.c: In function `__isnan':
../sysdeps/powerpc/fpu/s_isnan.c:44: error: can't find a register in class
`FLOAT_REGS' while reloading `asm'
../sysdeps/powerpc/fpu/s_isnan.c:47: error: can't find a register in class
`FLOAT_REGS' while reloading `asm'
make[2]: *** [/home/tosensei/builds/powerpc-linux-glibc/math/s_isnan.o]
Error 1
make[2]: Leaving directory `/home/tosensei/builds/glibc-2.3.2/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/home/tosensei/builds/glibc-2.3.2'
make: *** [install] Error 2

My configuration is :

CC=$PREFIX/bin/$TARGET-gcc

../$GLIBVERSION/configure --build=i686-linux --host=powerpc-linux --prefix=$
PREFIX --enable-add-ons=linuxthreads \
--with-binutils=$PREFIX/bin --with-headers=$PREFIX/$TARGET/
include --with-fp

glibc version : 2.3.2

Please, give information resolve that error.

Take care

==========================================================
Bong Gyu, Choi

AP Satellite Industry Co, Ltd

AP Bldg 5F, #449-4 Bangbae-2dong, Seocho-gu,
Seoul, Korea

Tel : +82-2-3489-3684
Fax : +82-2-3486-0722

Cellular Phone : +82-011-714-0286
E-mail : ***@apsat.co.kr

==========================================================
fred
2004-06-04 16:40:49 UTC
Permalink
well this error seems to come from the powerpc part of the glibc. I
think you should find where "FLOAT_REGS" is defined and understand what
this is the problem at line 44 of the s_isnan.c file.
Or you should take the cvs version of the glibc for cross-compiling.
I do this from a linux-pc-gnu to i686-pc-gnu (hurd) and there is no
problems for cross-compiling.
Also i use the same version of gcc to create the cross-compiler binary.
If i create a cross-gcc-3.3.3 with a gcc-3.3.2 i have erros when i
crosscompiling.. really surprising but...well..
Post by tosensei
Hi~
/libc-symbols.h -I../soft-fp/ -o
/home/tosensei/builds/powerpc-linux-glibc/math/s_isnan.o
../sysdeps/powerpc/fpu/s_isnan.c:44: error: can't find a register in class
`FLOAT_REGS' while reloading `asm'
../sysdeps/powerpc/fpu/s_isnan.c:47: error: can't find a register in class
`FLOAT_REGS' while reloading `asm'
make[2]: *** [/home/tosensei/builds/powerpc-linux-glibc/math/s_isnan.o]
Error 1
make[2]: Leaving directory `/home/tosensei/builds/glibc-2.3.2/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/home/tosensei/builds/glibc-2.3.2'
make: *** [install] Error 2
CC=$PREFIX/bin/$TARGET-gcc
../$GLIBVERSION/configure --build=i686-linux --host=powerpc-linux --prefix=$
PREFIX --enable-add-ons=linuxthreads \
--with-binutils=$PREFIX/bin --with-headers=$PREFIX/$TARGET/
include --with-fp
glibc version : 2.3.2
Please, give information resolve that error.
Take care
==========================================================
Bong Gyu, Choi
AP Satellite Industry Co, Ltd
AP Bldg 5F, #449-4 Bangbae-2dong, Seocho-gu,
Seoul, Korea
Tel : +82-2-3489-3684
Fax : +82-2-3486-0722
Cellular Phone : +82-011-714-0286
==========================================================
tosensei
2004-06-06 23:48:27 UTC
Permalink
Really, you right, this error from glibc compiling in building ppc cross
compiling. but there is no defintion, FLOAT_REGS, I can not find that.
Post by fred
well this error seems to come from the powerpc part of the glibc. I
think you should find where "FLOAT_REGS" is defined and understand what
this is the problem at line 44 of the s_isnan.c file.
Or you should take the cvs version of the glibc for cross-compiling.
I do this from a linux-pc-gnu to i686-pc-gnu (hurd) and there is no
problems for cross-compiling.
Also i use the same version of gcc to create the cross-compiler binary.
If i create a cross-gcc-3.3.3 with a gcc-3.3.2 i have erros when i
crosscompiling.. really surprising but...well..
Post by tosensei
Hi~
/libc-symbols.h -I../soft-fp/ -o
/home/tosensei/builds/powerpc-linux-glibc/math/s_isnan.o
../sysdeps/powerpc/fpu/s_isnan.c:44: error: can't find a register in class
`FLOAT_REGS' while reloading `asm'
../sysdeps/powerpc/fpu/s_isnan.c:47: error: can't find a register in class
`FLOAT_REGS' while reloading `asm'
make[2]: *** [/home/tosensei/builds/powerpc-linux-glibc/math/s_isnan.o]
Error 1
make[2]: Leaving directory `/home/tosensei/builds/glibc-2.3.2/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/home/tosensei/builds/glibc-2.3.2'
make: *** [install] Error 2
CC=$PREFIX/bin/$TARGET-gcc
../$GLIBVERSION/configure --build=i686-linux --host=powerpc-linux --prefix=$
Post by fred
Post by tosensei
PREFIX --enable-add-ons=linuxthreads \
--with-binutils=$PREFIX/bin --with-headers=$PREFIX/$TARGE
T/
Post by fred
Post by tosensei
include --with-fp
glibc version : 2.3.2
Please, give information resolve that error.
Take care
==========================================================
Bong Gyu, Choi
AP Satellite Industry Co, Ltd
AP Bldg 5F, #449-4 Bangbae-2dong, Seocho-gu,
Seoul, Korea
Tel : +82-2-3489-3684
Fax : +82-2-3486-0722
Cellular Phone : +82-011-714-0286
==========================================================
tosensei
2004-06-06 23:49:02 UTC
Permalink
Post by fred
well this error seems to come from the powerpc part of the glibc. I
think you should find where "FLOAT_REGS" is defined and understand what
this is the problem at line 44 of the s_isnan.c file.
Or you should take the cvs version of the glibc for cross-compiling.
I do this from a linux-pc-gnu to i686-pc-gnu (hurd) and there is no
problems for cross-compiling.
Also i use the same version of gcc to create the cross-compiler binary.
If i create a cross-gcc-3.3.3 with a gcc-3.3.2 i have erros when i
crosscompiling.. really surprising but...well..
Post by tosensei
Hi~
/libc-symbols.h -I../soft-fp/ -o
/home/tosensei/builds/powerpc-linux-glibc/math/s_isnan.o
../sysdeps/powerpc/fpu/s_isnan.c:44: error: can't find a register in class
`FLOAT_REGS' while reloading `asm'
../sysdeps/powerpc/fpu/s_isnan.c:47: error: can't find a register in class
`FLOAT_REGS' while reloading `asm'
make[2]: *** [/home/tosensei/builds/powerpc-linux-glibc/math/s_isnan.o]
Error 1
make[2]: Leaving directory `/home/tosensei/builds/glibc-2.3.2/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/home/tosensei/builds/glibc-2.3.2'
make: *** [install] Error 2
CC=$PREFIX/bin/$TARGET-gcc
../$GLIBVERSION/configure --build=i686-linux --host=powerpc-linux --prefix=$
Post by fred
Post by tosensei
PREFIX --enable-add-ons=linuxthreads \
--with-binutils=$PREFIX/bin --with-headers=$PREFIX/$TARGE
T/
Post by fred
Post by tosensei
include --with-fp
glibc version : 2.3.2
Please, give information resolve that error.
Take care
==========================================================
Bong Gyu, Choi
AP Satellite Industry Co, Ltd
AP Bldg 5F, #449-4 Bangbae-2dong, Seocho-gu,
Seoul, Korea
Tel : +82-2-3489-3684
Fax : +82-2-3486-0722
Cellular Phone : +82-011-714-0286
==========================================================
tosensei
2004-06-07 01:48:15 UTC
Permalink
I also do cross compiling with GCC-3.4.0 and binutils-2.15.90.0.3.

take care
Post by fred
well this error seems to come from the powerpc part of the glibc. I
think you should find where "FLOAT_REGS" is defined and understand what
this is the problem at line 44 of the s_isnan.c file.
Or you should take the cvs version of the glibc for cross-compiling.
I do this from a linux-pc-gnu to i686-pc-gnu (hurd) and there is no
problems for cross-compiling.
Also i use the same version of gcc to create the cross-compiler binary.
If i create a cross-gcc-3.3.3 with a gcc-3.3.2 i have erros when i
crosscompiling.. really surprising but...well..
Post by tosensei
Hi~
/libc-symbols.h -I../soft-fp/ -o
/home/tosensei/builds/powerpc-linux-glibc/math/s_isnan.o
../sysdeps/powerpc/fpu/s_isnan.c:44: error: can't find a register in class
`FLOAT_REGS' while reloading `asm'
../sysdeps/powerpc/fpu/s_isnan.c:47: error: can't find a register in class
`FLOAT_REGS' while reloading `asm'
make[2]: *** [/home/tosensei/builds/powerpc-linux-glibc/math/s_isnan.o]
Error 1
make[2]: Leaving directory `/home/tosensei/builds/glibc-2.3.2/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/home/tosensei/builds/glibc-2.3.2'
make: *** [install] Error 2
CC=$PREFIX/bin/$TARGET-gcc
../$GLIBVERSION/configure --build=i686-linux --host=powerpc-linux --prefix=$
Post by fred
Post by tosensei
PREFIX --enable-add-ons=linuxthreads \
--with-binutils=$PREFIX/bin --with-headers=$PREFIX/$TARGE
T/
Post by fred
Post by tosensei
include --with-fp
glibc version : 2.3.2
Please, give information resolve that error.
Take care
==========================================================
Bong Gyu, Choi
AP Satellite Industry Co, Ltd
AP Bldg 5F, #449-4 Bangbae-2dong, Seocho-gu,
Seoul, Korea
Tel : +82-2-3489-3684
Fax : +82-2-3486-0722
Cellular Phone : +82-011-714-0286
==========================================================
Loading...