[erlang-questions] Install Erlang/OTP on SUSE 11

Mikael Pettersson mikpe@REDACTED
Thu Jul 17 02:19:38 CEST 2008


Xingdong Bian writes:
 > Hi
 > 
 > Any one has the same issues with me?
 > When i install the Erlang/OTP on the SUSE 11 for
 > 12B-3:
 > it says the gcc compiler is not supported, asks me to change another  
 > version of the gcc compiler

gcc-4.3.0 is known to be broken. So SuSE 11 ships that? I'm not impressed.

 > 11B-5, 12B-0,1,2:
 > ./configure is fine
 > then make with error:
 > ==================================
 > obj/i686-pc-linux-gnu/opt/smp/ttsl_drv.o -lutil -ldl -lm -lncurses - 
 > L../lib/internal/i686-pc-linux-gnu /home/bian/downloads/otp_src_R12B-2/ 
 > erts/obj/i686-pc-linux-gnu/libz.a -lethread -lpthread - 
 > lerts_internal_r -lrt
 > obj/i686-pc-linux-gnu/opt/smp/hipe_x86_signal.o: In function  
 > `my_sigaction':
 > /home/bian/downloads/otp_src_R12B-2/erts/emulator/hipe/ 
 > hipe_x86_signal.c:220: undefined reference to `INIT'
 > /home/bian/downloads/otp_src_R12B-2/erts/emulator/hipe/ 
 > hipe_x86_signal.c:230: undefined reference to `__next_sigaction'
 > obj/i686-pc-linux-gnu/opt/smp/hipe_x86_signal.o: In function  
 > `hipe_signal_init':
 > /home/bian/downloads/otp_src_R12B-2/erts/emulator/hipe/ 
 > hipe_x86_signal.c:305: undefined reference to `INIT'
 > obj/i686-pc-linux-gnu/opt/smp/hipe_x86_signal.o: In function  
 > `my_sigaction':
 > /home/bian/downloads/otp_src_R12B-2/erts/emulator/hipe/ 
 > hipe_x86_signal.c:220: undefined reference to `INIT'
 > /home/bian/downloads/otp_src_R12B-2/erts/emulator/hipe/ 
 > hipe_x86_signal.c:230: undefined reference to `__next_sigaction'
 > /home/bian/downloads/otp_src_R12B-2/erts/emulator/hipe/ 
 > hipe_x86_signal.c:220: undefined reference to `INIT'
 > /home/bian/downloads/otp_src_R12B-2/erts/emulator/hipe/ 
 > hipe_x86_signal.c:230: undefined reference to `__next_sigaction'
 > collect2: ld returned 1 exit status
 > make[3]: *** [/home/bian/downloads/otp_src_R12B-2/bin/i686-pc-linux- 
 > gnu/beam.smp] Error 1
 > make[3]: Leaving directory `/home/bian/downloads/otp_src_R12B-2/erts/ 
 > emulator'
 > make[2]: *** [opt] Error 2
 > make[2]: Leaving directory `/home/bian/downloads/otp_src_R12B-2/erts/ 
 > emulator'
 > make[1]: *** [smp] Error 2
 > make[1]: Leaving directory `/home/bian/downloads/otp_src_R12B-2/erts'
 > make: *** [emulator] Error 2
 > ==================================
 > 
 > 
 > when i disable the hipe with
 > ./configure --disable-hipe
 > I still get error:
 > 
 > ==================================
 > make[2]: Leaving directory `/home/bian/erlang/otp_src_R12B-1'
 > make[1]: Leaving directory `/home/bian/erlang/otp_src_R12B-1'
 > cd lib && \
 > ERL_TOP=/home/bian/erlang/otp_src_R12B-1 PATH=/home/bian/erlang/ 
 > otp_src_R12B-1/bootstrap/bin:${PATH} \
 > make opt SECONDARY_BOOTSTRAP=true
 > make[1]: Entering directory `/home/bian/erlang/otp_src_R12B-1/lib'
 > make[2]: Entering directory `/home/bian/erlang/otp_src_R12B-1/lib/ 
 > parsetools'
 > === Entering application parsetools
 > make[3]: Entering directory `/home/bian/erlang/otp_src_R12B-1/lib/ 
 > parsetools/src'
 > make[3]: Nothing to be done for `opt'.
 > make[3]: Leaving directory `/home/bian/erlang/otp_src_R12B-1/lib/ 
 > parsetools/src'
 > === Skipping subdir doc/src, it is missing
 > === Leaving application parsetools
 > make[2]: Leaving directory `/home/bian/erlang/otp_src_R12B-1/lib/ 
 > parsetools'
 > make[2]: Entering directory `/home/bian/erlang/otp_src_R12B-1/lib/asn1/ 
 > src'
 > make[2]: Nothing to be done for `opt'.
 > make[2]: Leaving directory `/home/bian/erlang/otp_src_R12B-1/lib/asn1/ 
 > src'
 > make[2]: Entering directory `/home/bian/erlang/otp_src_R12B-1/lib/hipe'
 > Makefile:35: warning: overriding commands for target `docs'
 > /home/bian/erlang/otp_src_R12B-1/make/otp_subdir.mk:28: warning:  
 > ignoring old commands for target `docs'
 > === Entering application hipe
 > make[3]: Entering directory `/home/bian/erlang/otp_src_R12B-1/lib/hipe/ 
 > rtl'
 > /home/bian/erlang/otp_src_R12B-1/bin/i686-pc-linux-gnu/hipe_mkliterals  
 > -e > hipe_literals.hrl
 > erlc -W +debug_info +warn_obsolete_guard +inline -o../ebin  
 > hipe_rtl_arch.erl
 > make[3]: *** [../ebin/hipe_rtl_arch.beam] Segmentation fault
 > make[3]: Leaving directory `/home/bian/erlang/otp_src_R12B-1/lib/hipe/ 
 > rtl'
 > make[2]: *** [opt] Error 2
 > make[2]: Leaving directory `/home/bian/erlang/otp_src_R12B-1/lib/hipe'
 > make[1]: *** [opt] Error 2
 > make[1]: Leaving directory `/home/bian/erlang/otp_src_R12B-1/lib'
 > make: *** [secondary_bootstrap_build] Error 2
 > 
 > ==================================
 > 
 > 
 > The above two error texts from different version installation, but for  
 > all 11b-5, 12b-0,1,2 the error is the same.
 > 
 > Any one has any idea?

Always start building Erlang/OTP from a freshly unpacked tarball.
When changing ./configure options, always remove the entire tree and
start from a fresh one.



More information about the erlang-questions mailing list