Compile Problems on amd64!
Markus Schirp
mbj@REDACTED
Wed Jun 21 12:40:06 CEST 2006
Hi,
Im new here, and not a native englisch speaker pls rememver this if my
question is dump *g*.
Im Running Gentoo/Amd64 (native 64 build) im tried to compile erlang
(11.2.0) using portage and by hand. All the time it stops with following
message:
gcc -o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/bin/x86_64-pc-linux-gnu/beam.hybrid
\
-Wl,-export-dynamic
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_main.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/preload.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_pbifs.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/benchmark.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_alloc.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_mtrace.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_alloc_util.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_goodfit_alloc.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bestfit_alloc.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_afit_alloc.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_instrument.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_init.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_atom_table.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bif_table.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bif_info.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bif_op.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bif_os.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bif_lists.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bif_trace.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bif_wrap.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_trace.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/copy.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/utils.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/bif.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/io.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_printf_term.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_debug.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_md5.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_message.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_process.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_process_dict.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_arith.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/time.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_time_sup.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/external.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/dist.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/binary.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_db.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_db_util.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_db_hash.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_db_tree.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/fix_alloc.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/big.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hash.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/index.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/atom.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/module.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/export.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/register.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/break.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_async.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_lock_check.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/ggc.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_gc.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_nmgc.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_posix_str.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bits.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_math.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_fun.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bif_port.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_term.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_node_tables.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_monitors.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_process_dump.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_obsolete.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_bif_timer.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/beam_emu.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/beam_opcodes.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/beam_load.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/beam_bif_load.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/beam_debug.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/beam_bp.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/beam_catches.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/sys.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/driver_tab.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/unix_efile.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/gzio.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/elib_malloc.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/elib_memmove.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/unix_ddll_drv.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/sys_float.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/sys_time.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_mseg.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/erl_mtrace_sys_wrap.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_bif0.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_bif1.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_bif2.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_debug.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_gc.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_mode_switch.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_native_bif.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_stack.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64_glue.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64_bifs.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_x86_signal.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_x86_stack.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/efile_drv.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/ddll_drv.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/inet_drv.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/zlib_drv.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/ram_file_drv.o
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/ttsl_drv.o
-ldl -lm -lncurses -L../lib/internal/x86_64-pc-linux-gnu
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj/x86_64-pc-linux-gnu/libz.a
-lethread -lpthread -lerts_internal_r -lrt
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld:
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64_bifs.o:
relocation R_X86_64_32S against `nbif_demonitor_1' can not be used when
making a shared object; recompile with -fPIC
/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/obj.hybrid.beam/x86_64-pc-linux-gnu/hipe_amd64_bifs.o:
could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: ***
[/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/bin/x86_64-pc-linux-gnu/beam.hybrid]
Error 1
make[3]: Leaving directory
`/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/emulator'
make[2]: *** [hybrid] Error 2
make[2]: Leaving directory
`/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts/emulator'
make[1]: *** [hybrid] Error 2
make[1]: Leaving directory
`/var/tmp/portage/erlang-11.2.0/work/otp_src_R11B-0/erts'
make: *** [emulator] Error 2
Hopefully someone could help!
Markus Schirp
More information about the erlang-bugs
mailing list