This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: AW: #include <new> in mqueue.cxx
- From: Martin Buck <martin dot buck at ascom dot ch>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 16 Jul 2002 09:55:02 +0200
- Subject: Re: AW: [ECOS] #include <new> in mqueue.cxx
- Newsgroups: local.ecos.discuss
- Organization: Ascom Systec AG
- References: <C8B3DE2A53035248921C3DE1111FA503D781@TITAN.protec.distefora.lan>
"Jones, Michael" wrote:
> OK, so I have downloaded, built and installed newlib...
Don't build/install it manually...
> OK, so I copy libgloss and newlib into the src/gcc-3.0.4/gcc directory and rebuild gcc with "--with-newlib"...
...and put the directories in the right place: at the same level as
libstdc++-v3, i.e. into src/gcc-3.0.4.
Here's the build script I used. I don't guarantee that it works on any
system but mine. You might have to tweak the version numbers/target
directory.
#!/bin/sh
set -e -x
TARGET=arm-elf
DEST="/usr/local/pkg/ecos-tools-$TARGET"
BINUTILS_VERSION=2.12
GCC_VERSION=3.0.4
NEWLIB_VERSION=1.10.0
BINUTILS_DIR="binutils-$BINUTILS_VERSION"
GCC_DIR="gcc-$GCC_VERSION"
NEWLIB_DIR="newlib-$NEWLIB_VERSION"
umask 022
rm -fr "$BINUTILS_DIR" "$GCC_DIR" "$NEWLIB_DIR"
tar xvIf "binutils-$BINUTILS_VERSION.tar.bz2"
tar xvzf "gcc-$GCC_VERSION.tar.gz"
tar xvzf "newlib-$NEWLIB_VERSION.tar.gz"
ln -s "../$NEWLIB_DIR/newlib" "$GCC_DIR"
ln -s "../$NEWLIB_DIR/libgloss" "$GCC_DIR"
rm -fr build
mkdir -p build/binutils build/gcc
cd build/binutils
"../../$BINUTILS_DIR/configure" --target="$TARGET" --prefix="$DEST" \
--disable-nls
make LDFLAGS=-s all install
cd ../gcc
PATH="$DEST/bin:$PATH"
"../../$GCC_DIR/configure" --target="$TARGET" --prefix="$DEST" \
--with-gnu-as --with-gnu-ld --with-newlib --disable-nls
make LANGUAGES="c c++" LDFLAGS=-s \
all-gcc all-target-libstdc++-v3 install-gcc
install-target-libstdc++-v3
cd ../..
rm -fr "$BINUTILS_DIR" "$GCC_DIR" "$NEWLIB_DIR" build
Martin
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss