cross-compiling problem for powerpc 7450 processor
I ran into problem trying to cross compile
XFree86-4.7.0 on a i386 processor with SuSE10.2 for a target platform powerpc
7450. I had the crosstool chain for powerpc 7450. I modified both site.def,
host.def and cross.def to point to the cross-tool chain directory.
I issued make World CROSSCOMPILEDIR=/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin
and I got error as followed:
make World CROSSCOMPILEDIR=/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin
/bin/sh: ./config/util/printver.exe:
cannot execute binary file
Building XFree86.
I hope you checked the configuration
parameters in ./config/cf
to see if you need to pass BOOTSTRAPCFLAGS.
Wed Dec 19 15:39:54 PST 2007
cd ./config/imake && make -f
Makefile.ini BOOTSTRAPCFLAGS="" CC="/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin/powerpc-7450-linux-gnu-gcc"
clean
make[1]: Entering directory `/home/crosstool-builds/D3/xc/config/imake'
rm -f ccimake imake.o imake
rm -f *.CKP *.ln *.BAK *.bak *.o core
errs ,* *~ *.a tags TAGS make.log \#*
rm -f -r Makefile.proto Makefile Makefile.dep
bootstrap
rm -f imakemdep_cpp.h
make[1]: Leaving directory `/home/crosstool-builds/D3/xc/config/imake'
make Makefile.boot
make[1]: Entering directory `/home/crosstool-builds/D3/xc'
cd ./config/imake && make -w
-f Makefile.ini BOOTSTRAPCFLAGS="" CC="/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin/powerpc-7450-linux-gnu-gcc"
make[2]: Entering directory `/home/crosstool-builds/D3/xc/config/imake'
making imake with BOOTSTRAPCFLAGS= and
CROSSCOMPILEFLAGS=-DCROSSCOMPILEDIR="/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin"
in config/imake
/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin/powerpc-7450-linux-gnu-gcc
-o ccimake -DCROSSCOMPILEDIR=\"/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin\"
-O -I../../include ccimake.c
if [ -n "/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin"
] ; then \
/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin/cc
-E `./ccimake` \
-DCROSSCOMPILE_CPP
imakemdep.h > imakemdep_cpp.h; \
else touch
imakemdep_cpp.h; fi
/bin/sh: line 1: ./ccimake: cannot execute
binary file
/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin/powerpc-7450-linux-gnu-gcc
-c -O -I../../include `./ccimake` imake.c
/bin/sh: ./ccimake: cannot execute binary
file
/opt/dsud3_crosstool/gcc-4.0.0-glibc-2.3.5/powerpc-7450-linux-gnu/bin/powerpc-7450-linux-gnu-gcc
-o imake -O -I../../include imake.o
make[2]: Leaving directory `/home/crosstool-builds/D3/xc/config/imake'
rm -f ./config/makedepend/Makefile.proto
./config/imake/imake -I./config/cf -s
./config/makedepend/Makefile.proto -f ./config/makedepend/Imakefile -DTOPDIR=../..
-DCURDIR=./config/makedepend
./config/imake/imake: ./config/imake/imake:
cannot execute binary file
make[1]: *** [config/makedepend/Makefile.proto]
Error 126
make[1]: Leaving directory `/home/crosstool-builds/D3/xc'
make: *** [World] Error 2
attached is my host.def, cross.def and
site.def
thanks for all the helps.Attachment:
site.def
Description: Binary data
Attachment:
cross.def
Description: Binary data
Attachment:
host.def
Description: Binary data
[X Forum]
[Xorg]
[Devices]
[XFree86]
[XFree86 Newbie]
[Site Home]
[IETF Announce]
[Security]
[Fontconfig]
[Bugtraq]
[Rubini]
[Photo]
[Yosemite]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Video for Linux]
[Linux RAID]
[Linux Kernel]
[Linux Resources]