Newbie question: cross-compile PPC860/LINUX

techie techieyang@REDACTED
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
/opt/erlang/test/otp_src_R10B-2/bin/i686-pc-linux-gnu/hipe_mkliterals.hybrid
/opt/erlang/test/otp_src_R10B-2/erts/obj.hybrid.beam/i686-pc-linux-gnu/hipe_mkliterals.o
/opt/erlang/test/otp_src_R10B-2/bin/i686-pc-linux-gnu/hipe_mkliterals.hybrid
-c > i686-pc-linux-gnu/hybrid/hipe_literals.h
/bin/sh: line 1:
/opt/erlang/test/otp_src_R10B-2/bin/i686-pc-linux-gnu/hipe_mkliterals.hybrid:
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/otp.mk

Question Two: How many files needed to run on the PPC860-target
(Embedded-ppc860-board)

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
Techie




More information about the erlang-questions mailing list