This is the mail archive of the gcc-help@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]

help about building gcc crosscompiler for powerpc-eabi



Hi!


I build gcc crosscompiler with host linux x86 and target=powerpc-eabi in this way:

gcc-core / gcc-g++ 2.95.2
binutils-2.10.1
newlib-1.9.0


rm -rf /tmp/ppc/build/binutils mkdir /tmp/ppc/build/binutils cd /tmp/ppc/build/binutils

/tmp/ppc/binutils-2.10.1/configure --prefix=/tmp/ppc/tools --target=powerpc-eabi --exec-prefix=/tmp/ppc/tools/H-i686-pc-linux-gnu

gmake -w all install


rm -rf /tmp/ppc/build/gcc mkdir /tmp/ppc/build/gcc cd /tmp/ppc/build/gcc

PATH=/tmp/ppc/tools/H-i686-pc-linux-gnu/bin:$PATH
export PATH

/tmp/ppc/gcc-2.95.2/configure --prefix=/tmp/ppc/tools --target=powerpc-eabi --exec-prefix=/tmp/ppc/tools/H-i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --with-newlib=/tmp/ppc/newlib --with-headers=/tmp/ppc/newlib/libc/include

gmake -w all-gcc install-gcc LANGUAGES="c c++"


rm -rf /tmp/ppc/build/newlib mkdir /tmp/ppc/build/newlib cd /tmp/ppc/build/newlib


/tmp/ppc/newlib-1.9.0/configure --prefix=/tmp/ppc/tools --target=powerpc-eabi --exec-prefix=/tmp/ppc/tools/H-i686-pc-linux-gnu



gmake -w all install


Its work, but i get a error when try to compile a program that use memory.h :

powerpc-eabi-gcc -c -msim -mcpu=750 ../../src/DecMPAFileAccess.cpp -o output/DecMPAFileAccess.cpp.o
../../src/DecMPAFileAccess.cpp:26: memory.h: Arquivo ou diret?rio n?o encontrado


I searched memory.h in include directory and it is not there.
What is the problem?

thanks
Fabio Wronski


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