[erlang-questions] otp_R11-B5 for mips

Mikael Pettersson mikpe@REDACTED
Mon Mar 31 14:59:01 CEST 2008


Sergio Rodríguez Ezquerra writes:
 > Hello,
 > 
 > i'm trying compile otp_src_R11-B5 for mips architecture. I'm following 
 > the steps below:
 > 
 > 1- Set up environment variables (toolchain variables with source command).
 > 2- ./configure --host=mipsel-linux 
 > --prefix=/var/local/mips/otp_src_R11-B5 
 > LDFLAGS="-L/var/local/mips/ncurses/lib"                   
 > CFLAGS="-I/var/local/mips/ncurses/include" --disable-hipe
 > 3- make TARGET=mipsel-unknown-linux-gnu
 > 
 > After running several times 'make TARGET=mipsel-unknown-linux-gnu' 
 > command, i getting the following error:
 > 
 > mipsel-linux-gcc  -I/var/local/mips/ncurses/include 
 > -I/var/local/sources/otp_src_R11B-5/erts/mipsel-unknown-linux-gnu  
 > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE  -DUSE_THREADS 
 > -D_THREAD_SAFE -D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS -DHYBRID 
 > -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes 
 > -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT 
 > -D_POSIX_THREAD_SAFE_FUNCTIONS  -Ibeam -Isys/unix -Isys/common 
 > -Imipsel-unknown-linux-gnu/opt/hybrid -Imipsel-unknown-linux-gnu -Izlib 
 > -Ihipe -I../include/internal 
 > -I../include/internal/mipsel-unknown-linux-gnu -c beam/beam_emu.c -o 
 > obj/mipsel-unknown-linux-gnu/opt/hybrid/beam_emu.o
 > beam/beam_emu.c: In function 'process_main':
 > beam/beam_emu.c:1323: error: label 'lb_hipe_trap_throw' used but not defined
 > beam/beam_emu.c:1323: error: label 'lb_hipe_trap_return' used but not 
 > defined
 > beam/beam_emu.c:1323: error: label 'lb_hipe_trap_resume' used but not 
 > defined
 > beam/beam_emu.c:1323: error: label 'lb_hipe_trap_reschedule' used but 
 > not defined
 > beam/beam_emu.c:1323: error: label 'lb_hipe_trap_call_closure' used but 
 > not defined
 > beam/beam_emu.c:1323: error: label 'lb_hipe_trap_call' used but not defined
 > beam/beam_emu.c:1323: error: label 'lb_hipe_call_count' used but not defined
 > make[3]: *** [obj/mipsel-unknown-linux-gnu/opt/hybrid/beam_emu.o] Error 1
 > make[3]: se sale del directorio 
 > `/var/local/sources/otp_src_R11B-5/erts/emulator'
 > make[2]: *** [opt] Error 2
 > make[2]: se sale del directorio 
 > `/var/local/sources/otp_src_R11B-5/erts/emulator'
 > make[1]: *** [hybrid] Error 2
 > make[1]: se sale del directorio `/var/local/sources/otp_src_R11B-5/erts'
 > make: *** [emulator] Error 2
 > 
 > My toolchain use gcc 4.0.4.
 > 
 > Can anyone help me?

I don't know anything about cross-compiling Erlang/OTP,
but the error you quote indicates that the generated
erts/emulator/$target/opt/plain/beam_opcodes.h file
does include HiPE opcodes, which doesn't happen when
one does a native --disable-hipe build in a pristine
source tree.

I suspect you did your build in a dirty source tree
where a HiPE-enabled build had already been attempted.

Try a 'make eclean' to wipe out most generated files
from erts, followed by ./configure and make.



More information about the erlang-questions mailing list