AW: [ECOS] #include <new> in mqueue.cxx
Martin Buck
martin.buck@ascom.ch
Tue Jul 16 00:55:00 GMT 2002
"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
More information about the Ecos-discuss
mailing list