This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: cross-compiling problems (linux to ppc)


sting sting wrote:

My host is a linux x86 RedHat machine.
My Target is Linux PowerPC  machine.

Are all the "Linux PowerPC" Linux systems more compatible with each other than the x86 ones or why the RedHat was mentioned but not the Linux system used with the PowerPC ? I would have expected something like "Linux PowerPC SuSE 7.3" or "Linux PowerPC YellowDog3"... Or that the question is about building the toolchain "just for a fun" and not aiming to any real Linux/PPC target system(s).

 If the question is about the last, please try to do that by studying the
GCC install instructions from the GCC manual(s), your using of '--with-newlib'
and expecting the host includes being used with a crosscompiler :

> Needless to say, but still , I have signal.h under /usr/include,
> /usr/include/linux, and in some other locations

shows such kind of ignoracy about the basics of crosscompilers that a sudden
opening of the GCC manual is highly recommended... Every Linux owner has GCC
and so also the GCC manual(s). If not, something is badly wrong... Just start
with the "Installing GCC / Building and Installing a Cross-Compiler" !

As your buildlog:

> /home/sad/src/build-gcc/gcc/xgcc -B/home/sad/src/build-gcc/gcc/
> -B/opt/ppc/powerpc-linux/bin/
> -B/opt/ppc/powerpc-linux/lib/
> -isystem /opt/ppc/powerpc-linux/include
> -O2  -DIN_GCC -DCROSS_COMPILE

shows, the assumption is that you already have those Linux/PPC target binutils,
libraries and headers when starting to build GCC. If the target is an existing
Linux/PPC system (distribution), you have its glibc there already. If not, it
doesn't matter much from where you will take this "bootstrap" glibc... Or you
can choose to use the Marx/Engels/Lenin's/Dan's rules from the bolshevism or
bullshitism and try to start everything from scratch :-)

Cheers, Kai



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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