This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: gnupro toolkit?
- From: michael shiloh <michael at michaelshiloh dot com>
- To: Tom Marshall <tommy at home dot tig-grr dot com>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: Sun, 24 Mar 2002 23:13:29 -0800 (PST)
- Subject: Re: [ECOS] gnupro toolkit?
On Sun, 24 Mar 2002, michael shiloh wrote:
> > Yes .. I assume my normal Linux "gcc" won't work because it's going to build
> > binaries for Linux/glibc. If I was compiling for another CPU such as ARM or
> > SuperH, I would certainly need a cross-compiler for it. I assume the same
> > will probably apply for the "pc" target .. if nothing else, for the
> > different crt0 code, linking and such.
ok, here's what i think i did. this is untested from
notes i took when i installed, hopefully any mistakes
will be pretty obvious. note that you need both c and
c++.
good luck:
get:
ftp://ftp.gnu.org/gnu/binutils/binutils-2.11.2.tar.gz
ftp://ftp.keystealth.org/pub/gnu/gcc/gcc-3.0.3/gcc-core-3.0.3.tar.gz
ftp://ftp.keystealth.org/pub/gnu/gcc/gcc-3.0.3/gcc-g++-3.0.3.tar.gz
ftp://ftp.keystealth.org/pub/gnu/gdb/gdb-5.1.1.tar.gz
into /wherever/gcc
untar source:
mkdir -p /src/binutils /src/gcc /src/gdb
cd /src/binutils
tar -zxvf /wherever/gcc/binutils-2.11.2.tar.gz
cd /src/gcc
tar -zxvf /wherever/gcc/gcc-3.0.3.tar.gz
tar -zxvf /wherever/gcc/gcc-core-3.0.3.tar.gz
tar -zxvf /wherever/gcc/gcc-g++-3.0.3.tar.gz
cd /src/gdb
tar -zxvf /wherever/gcc//gdb-5.1.1.tar.gz
1.Configure the GNU Binary Utilities:
mkdir -p /tmp/build/binutils
cd /tmp/build/binutils
/bin/rm -rf /tmp/build/binutils/*
/src/binutils/binutils-2.11.2/configure --target=i386-elf \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-linux-gnu \
-v |& tee configure.out
2.Build and install the GNU Binary Utilities:
make -w all |& tee make.out
make -w install
3.Configure GCC, ensuring that the GNU Binary Utilities are
at the head of the PATH:
set path = ( /tools/H-i686-pc-linux-gnu/bin $path )
mkdir -p /tmp/build/gcc
/bin/rm -rf /tmp/build/gcc/*
cd /tmp/build/gcc
/src/gcc/gcc-3.0.3/configure --target=i386-elf \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-linux-gnu \
--with-gnu-as --with-gnu-ld --with-newlib \
-v |& tee configure.out
4.Build and install the GNU Binary Utilities:
make -w all-gcc LANGUAGES="c c++" |& tee make.out
make -w install-gcc LANGUAGES="c c++" |& tee make.out
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss