This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems with powerpc64-unknown-linux-gnu


On Fri, Apr 12, 2002 at 10:53:55PM -0700, Janis Johnson wrote:
> 
> I don't have access to the system right now, but it probably doesn't have
> ppc64 tools.  My first attempt failed with an assembler error so I built
> new binutils which were apprently ppc64, and the second attempt failed
> because xxx/xxx64/crti.o (can't remember the real name) wasn't found, so
> that probably means there was no ppc64 glibc.

Yes, trying to build --enable-shared without glibc installed is doomed.

Starting off without any tools, the sequence is:

o  Build and install binutils.  Use --disable-shared.  eg. configure
   /src/binutils/configure --prefix=/usr/local \
     --build=powerpc-linux --host=powerpc-linux --target=powerpc64-linux \
     --disable-nls --disable-shared

o  Build and install gcc.  Use --disable-shared --enable-languages=c
   and use exactly the same --prefix, --build, --host and --target as
   you used for binutils.  eg. configure
   /src/gcc/configure --prefix=/usr/local \
     --build=powerpc-linux --host=powerpc-linux --target=powerpc64-linux \
     --disable-nls --disable-shared --enable-languages=c

o  Build and install glibc.  If you're building cross-tools, then use
   --prefix=$prefix/$target, where $prefix and $target are the values
   used for --prefix and --target respectively when compiling binutils.
   For native targets, use the same --prefix as binutils.  eg. configure
   /src/glibc/configure --prefix=/usr/local/powerpc64-linux \
     --build=powerpc-linux --host=powerpc64-linux --target=powerpc64-linux \
     --with-headers=/src/linux-2.4.18-ppc/include --without-cvs \
     --enable-add-ons --disable-profile --enable-shared \
     --disable-sanity-checks

o  Rebuild gcc with --enable-shared --enable-languages=<as_you_like>

You'll note in the above, I've treated powerpc64-linux as a cross-target
from powerpc-linux, even though they might be running on the same machine.
There are a few tool and glibc issues yet to be ironed out...

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]