This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cross compiling glibc failed


Hi,
I'm trying to setup a clean sysrooted GNU toolchain, but compiling gcc
with --with-arch generates the following error when compiling glibc:

i686-pc-linux-gnu-gcc ../sysdeps/i386/fpu/s_frexp.S -c
-D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include
-I/home/sylvain/dev/sandbox/cross/builds/glibc/math
-I/home/sylvain/dev/sandbox/cross/builds/glibc -I../sysdeps/i386/elf
-I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic
-I../nptl  -I.. -I../libio -I. -nostdinc -isystem
/home/sylvain/dev/sandbox/cross/toolchain/lib/gcc/i686-pc-linux-gnu/4.3.2/include
-isystem /home/sylvain/dev/sandbox/cross/toolchain/lib/gcc/i686-pc-linux-gnu/4.3.2/include-fixed
-isystem /home/sylvain/dev/sandbox/cross/sysroot/usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED
  -DASSEMBLER  -DGAS_SYNTAX -g -Wa,--noexecstack  -o
/home/sylvain/dev/sandbox/cross/builds/glibc/math/s_frexp.os -MD -MP
-MF /home/sylvain/dev/sandbox/cross/builds/glibc/math/s_frexp.os.dt
-MT /home/sylvain/dev/sandbox/cross/builds/glibc/math/s_frexp.os
../sysdeps/i386/fpu/s_frexp.S: Assembler messages:
../sysdeps/i386/fpu/s_frexp.S:66: Error: invalid identifier for ".ifdef"
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
unrecognized character is `.'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: expected comma after name `'
in .size directive
../sysdeps/i386/fpu/s_frexp.S:66: Error: ".endif" without ".if"
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk `.get_pc_thunk.dx' after
expression
make[2]: *** [/home/sylvain/dev/sandbox/cross/builds/glibc/math/s_frexp.os]
Error 1
make[2]: leaving
/home/sylvain/dev/sandbox/cross/releases/glibc-2.9-20081222/math

If I put in glibc CFLAGS "-march=i686", it does compile fine.

The full script used to generate such error is attached

That may help fix a bug or did I do something wrong?

Best regards,

    Sylvain BERTRAND

-- 
Code in C only, use GPL licensed only software, use GNU/Linux and
secure your digital freedom!

Attachment: cross.sh
Description: Bourne shell script


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]