[erlang-questions] problems building r11b-3
Ulf Wiger
ulf@REDACTED
Wed Dec 10 16:15:16 CET 2008
Thanks, That got me further:
gcc -g -O3 -I/home/uwiger/src/otp/otp_src_R11B-3/erts/i686-pc-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 -Ii686-pc-linux-gnu/opt/hybrid -Ii686-pc-linux-gnu -Izlib
-Ihipe -I../include/internal -I../include/internal/i686-pc-linux-gnu
-c hipe/hipe_x86_signal.c -o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o
gcc -o /home/uwiger/src/otp/otp_src_R11B-3/bin/i686-pc-linux-gnu/beam.hybrid \
-Wl,-export-dynamic
obj/i686-pc-linux-gnu/opt/hybrid/erl_main.o obj/i686-pc-linux-gnu/opt/hybrid/preload.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_pbifs.o obj/i686-pc-linux-gnu/opt/hybrid/benchmark.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_alloc.o obj/i686-pc-linux-gnu/opt/hybrid/erl_mtrace.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_alloc_util.o obj/i686-pc-linux-gnu/opt/hybrid/erl_goodfit_alloc.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_bestfit_alloc.o obj/i686-pc-linux-gnu/opt/hybrid/erl_afit_alloc.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_instrument.o obj/i686-pc-linux-gnu/opt/hybrid/erl_init.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_atom_table.o obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_table.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_ddll.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_guard.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_info.o obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_op.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_os.o obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_lists.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_trace.o obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_wrap.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_trace.o obj/i686-pc-linux-gnu/opt/hybrid/copy.o
obj/i686-pc-linux-gnu/opt/hybrid/utils.oobj/i686-pc-linux-gnu/opt/hybrid/bif.o
obj/i686-pc-linux-gnu/opt/hybrid/io.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_printf_term.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_debug.o obj/i686-pc-linux-gnu/opt/hybrid/erl_md5.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_message.o obj/i686-pc-linux-gnu/opt/hybrid/erl_process.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_process_dict.o obj/i686-pc-linux-gnu/opt/hybrid/erl_arith.o
obj/i686-pc-linux-gnu/opt/hybrid/time.o obj/i686-pc-linux-gnu/opt/hybrid/erl_time_sup.o
obj/i686-pc-linux-gnu/opt/hybrid/external.o obj/i686-pc-linux-gnu/opt/hybrid/dist.o
obj/i686-pc-linux-gnu/opt/hybrid/binary.o obj/i686-pc-linux-gnu/opt/hybrid/erl_db.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_db_util.o obj/i686-pc-linux-gnu/opt/hybrid/erl_db_hash.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_db_tree.o obj/i686-pc-linux-gnu/opt/hybrid/fix_alloc.o
obj/i686-pc-linux-gnu/opt/hybrid/big.o obj/i686-pc-linux-gnu/opt/hybrid/hash.o
obj/i686-pc-linux-gnu/opt/hybrid/index.o obj/i686-pc-linux-gnu/opt/hybrid/atom.o
obj/i686-pc-linux-gnu/opt/hybrid/module.o obj/i686-pc-linux-gnu/opt/hybrid/export.o
obj/i686-pc-linux-gnu/opt/hybrid/register.o obj/i686-pc-linux-gnu/opt/hybrid/break.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_async.o obj/i686-pc-linux-gnu/opt/hybrid/erl_lock_check.o
obj/i686-pc-linux-gnu/opt/hybrid/ggc.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_gc.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_nmgc.o obj/i686-pc-linux-gnu/opt/hybrid/erl_posix_str.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_bits.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_math.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_fun.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_port.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_term.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_node_tables.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_monitors.o obj/i686-pc-linux-gnu/opt/hybrid/erl_process_dump.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_obsolete.o obj/i686-pc-linux-gnu/opt/hybrid/erl_bif_timer.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_port_task.o
obj/i686-pc-linux-gnu/opt/hybrid/beam_emu.o obj/i686-pc-linux-gnu/opt/hybrid/beam_opcodes.o
obj/i686-pc-linux-gnu/opt/hybrid/beam_load.o obj/i686-pc-linux-gnu/opt/hybrid/beam_bif_load.o
obj/i686-pc-linux-gnu/opt/hybrid/beam_debug.o obj/i686-pc-linux-gnu/opt/hybrid/beam_bp.o
obj/i686-pc-linux-gnu/opt/hybrid/beam_catches.o
obj/i686-pc-linux-gnu/opt/hybrid/sys.o
obj/i686-pc-linux-gnu/opt/hybrid/driver_tab.o
obj/i686-pc-linux-gnu/opt/hybrid/unix_efile.o
obj/i686-pc-linux-gnu/opt/hybrid/gzio.o
obj/i686-pc-linux-gnu/opt/hybrid/elib_malloc.o
obj/i686-pc-linux-gnu/opt/hybrid/elib_memmove.o
obj/i686-pc-linux-gnu/opt/hybrid/sys_float.o
obj/i686-pc-linux-gnu/opt/hybrid/sys_time.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_poll.kp.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_check_io.kp.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_poll.nkp.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_check_io.nkp.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_mseg.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_unix_sys_ddll.o
obj/i686-pc-linux-gnu/opt/hybrid/erl_mtrace_sys_wrap.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_bif0.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_bif1.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_bif2.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_debug.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_gc.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_mode_switch.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_native_bif.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_stack.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_glue.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_stack.o
obj/i686-pc-linux-gnu/opt/hybrid/efile_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/inet_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/zlib_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/ram_file_drv.o
obj/i686-pc-linux-gnu/opt/hybrid/ttsl_drv.o -lutil -ldl -lm
-lpthread -lncurses -L../lib/internal/i686-pc-linux-gnu
/home/uwiger/src/otp/otp_src_R11B-3/erts/obj/i686-pc-linux-gnu/libz.a
-lethread -lpthread -lerts_internal_r -lrt
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.o: In function
`nbif_handle_fp_exception':
/home/uwiger/src/otp/otp_src_R11B-3/erts/emulator/i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.S:269:
undefined reference to `erts_restore_fpu'
collect2: ld returned 1 exit status
make[3]: *** [/home/uwiger/src/otp/otp_src_R11B-3/bin/i686-pc-linux-gnu/beam.hybrid]
Error 1
make[3]: Leaving directory `/home/uwiger/src/otp/otp_src_R11B-3/erts/emulator'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/home/uwiger/src/otp/otp_src_R11B-3/erts/emulator'
make[1]: *** [hybrid] Error 2
make[1]: Leaving directory `/home/uwiger/src/otp/otp_src_R11B-3/erts'
make: *** [emulator] Error 2
2008/12/10 Mikael Pettersson <mikpe@REDACTED>:
> Ulf Wiger writes:
> > Does anyone know why r11b-3 and r11b-5 fail to build on
> > a fresh Ubuntu 8.10, whereas r12b-5 builds just fine?
> >
> > BR,
> > Ulf W
> >
> > obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.o: In function
> > `nbif_handle_fp_exception':
> > /home/uwiger/src/otp/otp_src_R11B-3/erts/emulator/i686-pc-linux-gnu/opt/hybrid/hipe_x86_bifs.S:269:
> > undefined reference to `erts_restore_fpu'
> > obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o: In function `my_sigaction':
> > /home/uwiger/src/otp/otp_src_R11B-3/erts/emulator/hipe/hipe_x86_signal.c:220:
> > undefined reference to `INIT'
> > /home/uwiger/src/otp/otp_src_R11B-3/erts/emulator/hipe/hipe_x86_signal.c:230:
> > undefined reference to `__next_sigaction'
> > obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o: In function
> > `hipe_signal_init':
> > /home/uwiger/src/otp/otp_src_R11B-3/erts/emulator/hipe/hipe_x86_signal.c:305:
> > undefined reference to `INIT'
> > obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o: In function `my_sigaction':
> > /home/uwiger/src/otp/otp_src_R11B-3/erts/emulator/hipe/hipe_x86_signal.c:220:
> > undefined reference to `INIT'
> > /home/uwiger/src/otp/otp_src_R11B-3/erts/emulator/hipe/hipe_x86_signal.c:230:
> > undefined reference to `__next_sigaction'
> > /home/uwiger/src/otp/otp_src_R11B-3/erts/emulator/hipe/hipe_x86_signal.c:220:
> > undefined reference to `INIT'
> > /home/uwiger/src/otp/otp_src_R11B-3/erts/emulator/hipe/hipe_x86_signal.c:230:
> > undefined reference to `__next_sigaction'
> > collect2: ld returned 1 exit status
>
> Yes.
>
> If you 'diff -u' hipe_x86_signal.c between r11b-whatever and
> r12b-5 you'll find that a glibc version check has been changed.
> Apply that change to r11b-whatever and you should be fine.
>
More information about the erlang-questions
mailing list