List Info

Thread: Build for ARM with gcc-4.2.3, glibc-2.7 with NPTL & TLS, gdb




Build for ARM with gcc-4.2.3, glibc-2.7 with NPTL & TLS, gdb
country flaguser name
Australia
2008-04-28 19:18:02
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.messagela
bs.com/email 
____________________________________________________________
__________

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


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )