This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

building GLIBC-2.4 header problem with ARM/NPTL/EABI


Hi,

I'm trying to build a iwmmxt/eabi toolchain with nptl support by using
crosstool. I has adopted the method you guys posted here, especially
the patch Martin made. That's really good to start my work. I ever
build a iwmmxt toolchain with gcc-3.4.3/glibc-2.3.2 by using
crosstool. But now I encountered a problem not mentioned here. I was
trying to solve it. In the meantime, I posted my problem here and hope
anybody can hint me. Any help are appreciated.

I'm using arm-iwmmxt.dat shown below:
TARBALLS_DIR=`pwd`/stuff
KERNELCONFIG=`pwd`/arm.config
TARGET=arm-none-linux-gnueabi
TARGET_CFLAGS="-O"
GCC_LANGUAGE="c,c++"
GCC_EXTRA_CONFIG="--with-cpu=iwmmxt --enable-cxx-flags=-mcpu=iwmmxt"
GLIBC_EXTRA_CONFIG="--without-fp --disable-libunwind-exceptions"
GLIBC_EXTRA_CC_ARGS="-finline-limit=10000"

Here is the gcc-4.1.0-glibc-2.4.dat:
BINUTILS_DIR=binutils-2.16.1
GCC_CORE_DIR=gcc-3.3.6
GCC_DIR=gcc-4.1.0
GLIBC_DIR=glibc-2.4
LINUX_DIR=linux-2.6.16
GLIBCPORTS_FILENAME=glibc-ports-2.4
GLIBC_ADDON_OPTIONS=ports,nptl

I used below to build binutils. It succeeds.
/home/test/gcc41-glibc24-binu216/build/arm-none-linux-gnueabi/gcc-4.1.0-glibc-2.4/binutils-2.16.1/configure
--target=arm-none-linux-gnueabi --host=i686-host_pc-linux-gnu
--prefix=/usr/local/bridge/arm-none-linux-gnueabi --disable-nls
--with-sysroot=/usr/local/bridge/arm-none-linux-gnueabi/arm-none-linux-gnueabi

I used below to build glibc headers, it failed.
/home/test/gcc41-glibc24-binu216/build/arm-none-linux-gnueabi/gcc-4.1.0-glibc-2.4/glibc-2.4/configure
--prefix=/usr/local/bridge/arm-none-linux-gnueabi/arm-none-linux-gnueabi
--build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi --without-cvs
--disable-sanity-checks
--with-headers=/usr/local/bridge/arm-none-linux-gnueabi/arm-none-linux-gnueabi/include
--enable-add-ons=ports,nptl --without-fp
--disable-libunwind-exceptions --enable-kernel=2.6.4 --with-tls
--with-__thread --enable-hacker-mode

The error appeared when executing following command.
make CFLAGS=-DBOOTSTRAP_GCC sysdeps/gnu/errlist.c

Error 1:
/bin/sh sysdeps/unix/make-syscalls.sh $dir || exit 1; }; \
  test $dir = sysdeps/unix && break; \
done > /home/test/gcc41-glibc24-binu216/build/arm-none-linux-gnueabi/gcc-4.1.0-glibc-2.4/build-glibc-headers/sysd-syscallsT
In file included from <stdin>:1:
ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h:29:3: error: #error
Kernel headers are too old

Error 2:
  rm -f /home/test/gcc41-glibc24-binu216/build/arm-none-linux-gnueabi/gcc-4.1.0-glibc-2.4/build-glibc-headers/tls.make.dT)
> /home/test/gcc41-glibc24-binu216/build/arm-none-linux-gnueabi/gcc-4.1.0-glibc-2.4/build-glibc-headers/tls.makeT
In file included from ./include/libc-symbols.h:55,
                 from <command line>:1:
/home/test/gcc41-glibc24-binu216/build/arm-none-linux-gnueabi/gcc-4.1.0-glibc-2.4/build-glibc-headers/config.h:3:3:
error: #error "glibc cannot be compiled without optimization"
In file included from include/tls.h:6,
                 from tls.make.c:3:
ports/sysdeps/arm/nptl/tls.h:48:3: error: #error "TLS support is required."

--
best regards,
-Bridge

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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