Newbie question: cross-compile PPC860/LINUX

techie <>
Wed Dec 22 11:12:52 CET 2004

I am a newbie to the Erlang/Opt. Looking forward to your help. Thanks!

Several question:

First Question: Failed when Cross-Compile R10B-2, target --
PPC860/Linux, Host -- RedHat-ES3-X86

Error Information got:

ppc_8xx-gcc -g -O2
-I/opt/erlang/test/otp_src_R10B-2/erts/i686-pc-linux-gnu -DHYBRID
-DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Ibeam
-Isys/unix -Isys/common -Ii686-pc-linux-gnu -Ii686-pc-linux-gnu/hybrid
-Izlib -Ihipe -o
-c > i686-pc-linux-gnu/hybrid/hipe_literals.h
/bin/sh: line 1:
cannot execute binary file
make[4]: *** [i686-pc-linux-gnu/hybrid/hipe_literals.h] Error 126
make[4]: Leaving directory `/opt/erlang/test/otp_src_R10B-2/erts/emulator'
make[3]: *** [hybrid] Error 2
make[3]: Leaving directory `/opt/erlang/test/otp_src_R10B-2/erts/emulator'
make[2]: *** [hybrid] Error 2
make[2]: Leaving directory `/opt/erlang/test/otp_src_R10B-2/erts'
make[1]: *** [emulator] Error 2
make[1]: Leaving directory `/opt/erlang/test/otp_src_R10B-2'
make: *** [noboot] Error 2

I just use the configuration learning from the step-by-step-cross-compile

(1)./configure --prefix=/opt/erlang/otp/erlang --without-ssl --disable-hipe
(2) find . -name Makefile -exec ../mung \{\} \;
(3) ../mung make/i686-pc-linux-gnu/

Question Two: How many files needed to run on the PPC860-target

I can cross-compile the PPC860-Linux with R7B4. Then i will copy the
built-files onto the target RAMDISK.
I tried to use the way in the 'system principles', but failed.
Can anybody give me a hints how to make this step success to run my
target-otp on the target board.

Thanks a lot!

Best Regards

More information about the erlang-questions mailing list