This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: Help!! libstdc++-v3 build for cross compiler target powerpc
- To: Xiaopeng Gong <pgong at integralaccess dot com>
- Subject: RE: Help!! libstdc++-v3 build for cross compiler target powerpc
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Wed, 24 Jan 2001 14:13:08 -0800 (PST)
- cc: libstdc++ at gcc dot gnu dot org
> What I did is:
> put the source into /try6/gcc-20010115/
> mkdir /try6/buildgcc
> cd /try6/buildgcc
you are missing some steps, and some sources.
You need to either check out the "src" module from sources.redhat.com as per
http://sources.redhat.com/gdb/
Use
cvs -z9 -d :pserver:anoncvs@anoncvs.cygnus.com:/cvs/src co src
though, so you get the src module.
-or-
get a binutils tarball from
ftp.freesoftware.com/pub/sourceware/binutils/snapshots
ie
binutils-010122.tar.bz2
Once you have one of these sources (CVS is preferred) you can continue.
Basically, at that point, you'll have
src.src
src.gcc
...and you are going to make a merged tree. One way to to this is:
cp -R src.src src.gcc_merged
cp -R src.gcc/* src.gcc_merged/
You can then use this merged tree to make newlib-based crosses (what you
are trying to do.)
ie
> cd /try6/buildgcc
../src.gcc_merged/configure --target=powerpc-eabi
--prefix=/try6/H-x86-x-powerpc-eabi --enable-languages=c,c++
--enable-threads=posix
anyway. This isn't meant to be an exhaustive checklist: Geoff Keating
wrote up something that's posted either on the gcc lists or on the gcc
docs pages on the web. You might look for it, as that info is really
off-topic for this list.
best,
benjamin