* Building PPC cross compiling environment...
@ 1999-11-29 16:13 Steven J. Hill
0 siblings, 0 replies; 3+ messages in thread
From: Steven J. Hill @ 1999-11-29 16:13 UTC (permalink / raw)
To: linuxppc-dev
Greetings.
I am attempting to build a cross compiling environment for PPC under
my RH 6.1 Linux system. I am new at this, however, I looked through
the mailing list archives, DejaNews, and a few other FAQs and was
unable to find anything on this. This my first attempt at this, I
beg for your patience. Please reply to me personally as I am not
subscribed to the list currently. Thanks.
-Steve
***********************************
configure --prefix=/usr --host=i386-linux-gnu --target=powerpc-linux
Created "Makefile" in /tmp/binutils-2.9.1.0.19a using "mt-frag"
collect2: ld returned 33 exit status
*** The command '/usr/bin/gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
***********************************
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Building PPC cross compiling environment...
@ 1999-11-29 17:37 kd
0 siblings, 0 replies; 3+ messages in thread
From: kd @ 1999-11-29 17:37 UTC (permalink / raw)
To: linuxppc-dev
Hi,
Number one be shure you have the upto date utils. For example if you want
to compile the Glibc2.1 you need binutils newer than 2.9.4.something. This
applies also to the native tools.
To build the gcc2.95.2 you need a "new" egcs, gcc.2.7.x or egc 1.0.1 will
not do. Be careful to apply the cache patch to the glibc source if you are
building for embedded targets such as mpc823 or mpc860 (posted to the
linuxppc-embedded mailing list). If you have two compilers like in debian
slink (gcc 2.87.x and egcs), export the CC variable to use the egcc
compile, e.g.
export CC=egcc.
I believe tthat the gcc2.7.x is the default compiler in many systems
because egcs had problems compiling the kernel for some systems.
It is also a good idea to build the utils,compilers and libs in another
directory. I.e. at the same directorylevel as (e.g.) binutils-2.9.4 do
mkdir binbuild
cd binbuild
../binutils-2.9.4/configure --target=powerpc-linux --host=i586-linux
--prefix=/usr
make
make install
Hope that this is of some help
K.D.
"Steven J. Hill"
<sjhill@plutonium.net> To: linuxppc-dev@lists.linuxppc.org
Sent by: cc:
owner-linuxppc-dev@lists.li Subject: Building PPC cross compiling environment...
nuxppc.org
11/29/99 04:13 PM
Greetings.
I am attempting to build a cross compiling environment for PPC under
my RH 6.1 Linux system. I am new at this, however, I looked through
the mailing list archives, DejaNews, and a few other FAQs and was
unable to find anything on this. This my first attempt at this, I
beg for your patience. Please reply to me personally as I am not
subscribed to the list currently. Thanks.
-Steve
***********************************
configure --prefix=/usr --host=i386-linux-gnu --target=powerpc-linux
Created "Makefile" in /tmp/binutils-2.9.1.0.19a using "mt-frag"
collect2: ld returned 33 exit status
*** The command '/usr/bin/gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
***********************************
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Building PPC cross compiling environment...
[not found] <199911300559.XAA26048@lists.linuxppc.org>
@ 1999-11-30 7:04 ` Grant Erickson
0 siblings, 0 replies; 3+ messages in thread
From: Grant Erickson @ 1999-11-30 7:04 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Steven J. Hill
On Mon, 29 Nov 1999, Steven Hill <sjhill@plutonium.net> wrote:
> I am attempting to build a cross compiling environment for PPC under
> my RH 6.1 Linux system. I am new at this, however, I looked through
> the mailing list archives, DejaNews, and a few other FAQs and was
> unable to find anything on this. This my first attempt at this, I
> beg for your patience. Please reply to me personally as I am not
> subscribed to the list currently. Thanks.
Complete instructions can be found at:
http://www.lcse.umn.edu/~grant/Linux/cross.html
It's written for a cross-compiler on SPARC Solaris 2.7, but just plug in
your host system where necessary and things should* work fine.
Grant
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-11-30 7:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-29 16:13 Building PPC cross compiling environment Steven J. Hill
-- strict thread matches above, loose matches on Subject: below --
1999-11-29 17:37 kd
[not found] <199911300559.XAA26048@lists.linuxppc.org>
1999-11-30 7:04 ` Grant Erickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).