Build for ARM with gcc-4.2.3, glibc-2.7 with NPTL & TLS, gdb
Jeff Gray
jeffg@magellan-technology.com
Tue Apr 29 00:18:00 GMT 2008
I have made some minor changes to the work done by Deepak Barua &
successfully created a crosstool build for ARM9. gcc-4.3 proved to have
some build issues, so I'm going to use 4.2.3 for the moment as that
works well. GDB has to be explicitly set to 6.5 to work. The default 6.3
doesn't build.
This should be the basis of a stable, relatively up to date cross
development system.
The build script is:
---------------
#!/bin/sh
set -ex
TARBALLS_DIR=/usr/local/crosstool/source
RESULT_TOP=/opt/crosstool
export TARBALLS_DIR RESULT_TOP
GCC_LANGUAGES="c,c++"
export GCC_LANGUAGES
eval `cat arm9.dat gcc-4.2.3-glibc-2.7-nptl-tls-ports.dat` sh all.sh
--notest --gdb
---------------
The ARM9.DAT file is:
---------------
KERNELCONFIG=`pwd`/arm.config
TARGET=arm-unknown-linux-gnu
GCC_EXTRA_CONFIG="--with-cpu=arm9 --enable-cxx-flags=-mcpu=arm9"
TARGET_CFLAGS="-O"
---------------
The main gcc-4.2.3-glibc-2.7-nptl-tls-ports.dat file is:
---------------
CC=gcc
AR=ar
RANLIB=ranlib
BINUTILS_DIR=binutils-2.18
BINUTILS_EXTRA_CONFIG="--disable-werror"
GCC_CORE_DIR=
GCC_DIR=gcc-4.2.3
GCC_EXTRA_CONFIG="$GCC_EXTRA_CONFIG --enable-multilib
--enable-threads=posix --with-tls --with-__thread"
GLIBC_DIR=glibc-2.7
LINUX_DIR=linux-2.6.23
LINUX_SANITIZED_HEADER_DIR=
GLIBCTHREADS_FILENAME=
GLIBCPORTS_FILENAME=glibc-ports-2.7
GLIBC_ADDON_OPTIONS="nptl,glibc-ports-2.7"
GDB_DIR=gdb-6.5
USE_SYSROOT=/opt/crosstool
GLIBC_EXTRA_CONFIG="$GLIBC_EXTRA_CONFIG --without-fp --with-tls
--with-__thread --enable-kernel=2.6.0 --disable-sanity-checks"
---------------
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list