Opened 14 years ago

Closed 13 years ago

#22848 closed defect (fixed)

erlang: duplicate symbol _saved_program_buf in obj/i386-apple-darwin10.2.0/opt/smp/erl_pbifs.o and obj/i386-apple-darwin10.2.0/opt/smp/erl_main.o

Reported by: cerieljacobs@… Owned by: bfulgham@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: erlang

Description (last modified by jmroot (Joshua Root))

Environment: OS X: 10.6.2 Xcode: 3.2.1 64-bit: yes (some optimizations made in macports.conf) sudo port selfupdate: done sudo port upgrade outdated: done

The last lines of the verbose output (full output attached):

/usr/bin/gcc-4.2 -mdynamic-no-pic -Ipcre -m32 -fast -arch x86_64 -march=nocona -mtune=generic -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B02/erts/i386-apple-darwin10.2.0  -no-cpp-precomp  -I/opt/local/include -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT  -Ii386-apple-darwin10.2.0/opt/smp -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin10.2.0 -Izlib  -Ipcre -Ihipe -I../include/internal -I../include/internal/i386-apple-darwin10.2.0 -Idrivers/common -Idrivers/unix -I../etc/unix -c drivers/unix/ttsl_drv.c -o obj/i386-apple-darwin10.2.0/opt/smp/ttsl_drv.o
/usr/bin/gcc-4.2 -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B02/bin/i386-apple-darwin10.2.0/beam.smp \
	 -m64 -L/opt/local/lib  -pagezero_size 0x400000  obj/i386-apple-darwin10.2.0/opt/smp/erl_main.o		obj/i386-apple-darwin10.2.0/opt/smp/preload.o obj/i386-apple-darwin10.2.0/opt/smp/erl_pbifs.o		obj/i386-apple-darwin10.2.0/opt/smp/benchmark.o obj/i386-apple-darwin10.2.0/opt/smp/erl_alloc.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_mtrace.o obj/i386-apple-darwin10.2.0/opt/smp/erl_alloc_util.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_goodfit_alloc.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bestfit_alloc.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_afit_alloc.o obj/i386-apple-darwin10.2.0/opt/smp/erl_instrument.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_init.o obj/i386-apple-darwin10.2.0/opt/smp/erl_atom_table.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_table.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_ddll.o  	obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_guard.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_info.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_op.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_os.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_lists.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_trace.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_wrap.o obj/i386-apple-darwin10.2.0/opt/smp/erl_trace.o		obj/i386-apple-darwin10.2.0/opt/smp/copy.o obj/i386-apple-darwin10.2.0/opt/smp/utils.o		obj/i386-apple-darwin10.2.0/opt/smp/bif.o obj/i386-apple-darwin10.2.0/opt/smp/io.o 			obj/i386-apple-darwin10.2.0/opt/smp/erl_printf_term.o obj/i386-apple-darwin10.2.0/opt/smp/erl_debug.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_md5.o obj/i386-apple-darwin10.2.0/opt/smp/erl_message.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_process.o obj/i386-apple-darwin10.2.0/opt/smp/erl_process_dict.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_process_lock.o obj/i386-apple-darwin10.2.0/opt/smp/erl_port_task.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_arith.o obj/i386-apple-darwin10.2.0/opt/smp/time.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_time_sup.o obj/i386-apple-darwin10.2.0/opt/smp/external.o		obj/i386-apple-darwin10.2.0/opt/smp/dist.o obj/i386-apple-darwin10.2.0/opt/smp/binary.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_db.o obj/i386-apple-darwin10.2.0/opt/smp/erl_db_util.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_db_hash.o obj/i386-apple-darwin10.2.0/opt/smp/erl_db_tree.o		obj/i386-apple-darwin10.2.0/opt/smp/fix_alloc.o obj/i386-apple-darwin10.2.0/opt/smp/big.o		obj/i386-apple-darwin10.2.0/opt/smp/hash.o obj/i386-apple-darwin10.2.0/opt/smp/index.o		obj/i386-apple-darwin10.2.0/opt/smp/atom.o obj/i386-apple-darwin10.2.0/opt/smp/module.o		obj/i386-apple-darwin10.2.0/opt/smp/export.o obj/i386-apple-darwin10.2.0/opt/smp/register.o		obj/i386-apple-darwin10.2.0/opt/smp/break.o obj/i386-apple-darwin10.2.0/opt/smp/erl_async.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_lock_check.o obj/i386-apple-darwin10.2.0/opt/smp/erl_gc.o 		obj/i386-apple-darwin10.2.0/opt/smp/erl_lock_count.o obj/i386-apple-darwin10.2.0/opt/smp/erl_nmgc.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_posix_str.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bits.o 		obj/i386-apple-darwin10.2.0/opt/smp/erl_math.o obj/i386-apple-darwin10.2.0/opt/smp/erl_fun.o             obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_port.o obj/i386-apple-darwin10.2.0/opt/smp/erl_term.o 		obj/i386-apple-darwin10.2.0/opt/smp/erl_node_tables.o obj/i386-apple-darwin10.2.0/opt/smp/erl_monitors.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_process_dump.o obj/i386-apple-darwin10.2.0/opt/smp/erl_obsolete.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_timer.o obj/i386-apple-darwin10.2.0/opt/smp/erl_drv_thread.o      obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_chksum.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_re.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_unicode.o obj/i386-apple-darwin10.2.0/opt/smp/packet_parser.o	obj/i386-apple-darwin10.2.0/opt/smp/safe_hash.o obj/i386-apple-darwin10.2.0/opt/smp/erl_zlib.o obj/i386-apple-darwin10.2.0/opt/smp/beam_emu.o		obj/i386-apple-darwin10.2.0/opt/smp/beam_opcodes.o obj/i386-apple-darwin10.2.0/opt/smp/beam_load.o	obj/i386-apple-darwin10.2.0/opt/smp/beam_bif_load.o obj/i386-apple-darwin10.2.0/opt/smp/beam_debug.o		obj/i386-apple-darwin10.2.0/opt/smp/beam_bp.o obj/i386-apple-darwin10.2.0/opt/smp/beam_catches.o obj/i386-apple-darwin10.2.0/opt/smp/sys.o obj/i386-apple-darwin10.2.0/opt/smp/driver_tab.o obj/i386-apple-darwin10.2.0/opt/smp/unix_efile.o obj/i386-apple-darwin10.2.0/opt/smp/gzio.o obj/i386-apple-darwin10.2.0/opt/smp/elib_malloc.o obj/i386-apple-darwin10.2.0/opt/smp/elib_memmove.o obj/i386-apple-darwin10.2.0/opt/smp/sys_float.o obj/i386-apple-darwin10.2.0/opt/smp/sys_time.o obj/i386-apple-darwin10.2.0/opt/smp/erl_poll.kp.o obj/i386-apple-darwin10.2.0/opt/smp/erl_check_io.kp.o obj/i386-apple-darwin10.2.0/opt/smp/erl_poll.nkp.o obj/i386-apple-darwin10.2.0/opt/smp/erl_check_io.nkp.o obj/i386-apple-darwin10.2.0/opt/smp/erl_mseg.o obj/i386-apple-darwin10.2.0/opt/smp/erl_unix_sys_ddll.o obj/i386-apple-darwin10.2.0/opt/smp/erl_mtrace_sys_wrap.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_bif0.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_bif1.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_bif2.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_debug.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_gc.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_mode_switch.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_native_bif.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_stack.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_amd64.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_amd64_glue.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_amd64_bifs.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_x86_signal.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_x86_stack.o obj/i386-apple-darwin10.2.0/opt/smp/efile_drv.o obj/i386-apple-darwin10.2.0/opt/smp/inet_drv.o obj/i386-apple-darwin10.2.0/opt/smp/zlib_drv.o obj/i386-apple-darwin10.2.0/opt/smp/ram_file_drv.o obj/i386-apple-darwin10.2.0/opt/smp/ttsl_drv.o -lutil -ldl -lm   -lncurses -L../lib/internal/i386-apple-darwin10.2.0  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B02/erts/emulator/zlib/obj/i386-apple-darwin10.2.0/opt/libz.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B02/erts/emulator/pcre/obj/i386-apple-darwin10.2.0/opt/libepcre.a -lethread -lpthread -lerts_internal_r  
ld: duplicate symbol _saved_program_buf in obj/i386-apple-darwin10.2.0/opt/smp/erl_pbifs.o and obj/i386-apple-darwin10.2.0/opt/smp/erl_main.o
collect2: ld returned 1 exit status
make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B02/bin/i386-apple-darwin10.2.0/beam.smp] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2

Warning: the following items did not execute (for erlang): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Attachments (5)

full.verbose.install.erlang.error.txt (197.6 KB) - added by cerieljacobs@… 14 years ago.
verbose install erlang output
R13B03.verbose.output.txt (209.2 KB) - added by cerieljacobs@… 14 years ago.
R13B03 verbose install output
macports.conf (5.3 KB) - added by cerieljacobs@… 14 years ago.
macports.conf
R13B03-erlang-port-install-64-bit-debug-output.txt (244.5 KB) - added by cerieljacobs@… 14 years ago.
Erlang R13B03 64-bit port debug install output
patch (5.2 KB) - added by cerieljacobs@… 14 years ago.
patch that prepends extern to definitions

Download all attachments as: .zip

Change History (20)

Changed 14 years ago by cerieljacobs@…

verbose install erlang output

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: changed from macports-tickets@… to bfulgham@…

comment:2 Changed 14 years ago by pguyot (Paul Guyot)

Does the problem appear with R13B03 which has just been committed?

comment:3 Changed 14 years ago by cerieljacobs@…

Yes, the problem still appears.

$ sudo port clean erlang
$ sudo port selfupdate
$ sudo port -v install erlang
--->  otp_src_R13B03.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/erlang

last output:

/usr/bin/gcc-4.2 -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B03/bin/i386-apple-darwin10.2.0/beam.smp \
	 -m64 -L/opt/local/lib -framework CoreFoundation  -pagezero_size 0x400000  obj/i386-apple-darwin10.2.0/opt/smp/erl_main.o		obj/i386-apple-darwin10.2.0/opt/smp/preload.o obj/i386-apple-darwin10.2.0/opt/smp/erl_pbifs.o	obj/i386-apple-darwin10.2.0/opt/smp/benchmark.o obj/i386-apple-darwin10.2.0/opt/smp/erl_alloc.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_mtrace.o obj/i386-apple-darwin10.2.0/opt/smp/erl_alloc_util.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_goodfit_alloc.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bestfit_alloc.oobj/i386-apple-darwin10.2.0/opt/smp/erl_afit_alloc.o obj/i386-apple-darwin10.2.0/opt/smp/erl_instrument.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_init.o obj/i386-apple-darwin10.2.0/opt/smp/erl_atom_table.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_table.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_ddll.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_guard.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_info.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_op.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_os.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_lists.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_trace.oobj/i386-apple-darwin10.2.0/opt/smp/erl_bif_wrap.o obj/i386-apple-darwin10.2.0/opt/smp/erl_trace.o		obj/i386-apple-darwin10.2.0/opt/smp/copy.o obj/i386-apple-darwin10.2.0/opt/smp/utils.o		obj/i386-apple-darwin10.2.0/opt/smp/bif.o obj/i386-apple-darwin10.2.0/opt/smp/io.o 			obj/i386-apple-darwin10.2.0/opt/smp/erl_printf_term.o obj/i386-apple-darwin10.2.0/opt/smp/erl_debug.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_md5.o obj/i386-apple-darwin10.2.0/opt/smp/erl_message.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_process.o obj/i386-apple-darwin10.2.0/opt/smp/erl_process_dict.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_process_lock.o obj/i386-apple-darwin10.2.0/opt/smp/erl_port_task.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_arith.o obj/i386-apple-darwin10.2.0/opt/smp/time.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_time_sup.o obj/i386-apple-darwin10.2.0/opt/smp/external.o	obj/i386-apple-darwin10.2.0/opt/smp/dist.o obj/i386-apple-darwin10.2.0/opt/smp/binary.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_db.o obj/i386-apple-darwin10.2.0/opt/smp/erl_db_util.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_db_hash.o obj/i386-apple-darwin10.2.0/opt/smp/erl_db_tree.o		obj/i386-apple-darwin10.2.0/opt/smp/fix_alloc.o obj/i386-apple-darwin10.2.0/opt/smp/big.o			obj/i386-apple-darwin10.2.0/opt/smp/hash.o obj/i386-apple-darwin10.2.0/opt/smp/index.o		obj/i386-apple-darwin10.2.0/opt/smp/atom.o obj/i386-apple-darwin10.2.0/opt/smp/module.o		obj/i386-apple-darwin10.2.0/opt/smp/export.o obj/i386-apple-darwin10.2.0/opt/smp/register.o		obj/i386-apple-darwin10.2.0/opt/smp/break.o obj/i386-apple-darwin10.2.0/opt/smp/erl_async.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_lock_check.o obj/i386-apple-darwin10.2.0/opt/smp/erl_gc.o 		obj/i386-apple-darwin10.2.0/opt/smp/erl_lock_count.o obj/i386-apple-darwin10.2.0/opt/smp/erl_nmgc.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_posix_str.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bits.o 		obj/i386-apple-darwin10.2.0/opt/smp/erl_math.o obj/i386-apple-darwin10.2.0/opt/smp/erl_fun.o             obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_port.o obj/i386-apple-darwin10.2.0/opt/smp/erl_term.o 	obj/i386-apple-darwin10.2.0/opt/smp/erl_node_tables.o obj/i386-apple-darwin10.2.0/opt/smp/erl_monitors.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_process_dump.o obj/i386-apple-darwin10.2.0/opt/smp/erl_obsolete.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_timer.o obj/i386-apple-darwin10.2.0/opt/smp/erl_drv_thread.o      obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_chksum.o obj/i386-apple-darwin10.2.0/opt/smp/erl_bif_re.o		obj/i386-apple-darwin10.2.0/opt/smp/erl_unicode.o obj/i386-apple-darwin10.2.0/opt/smp/packet_parser.o	obj/i386-apple-darwin10.2.0/opt/smp/safe_hash.o obj/i386-apple-darwin10.2.0/opt/smp/erl_zlib.o	obj/i386-apple-darwin10.2.0/opt/smp/erl_nif.o obj/i386-apple-darwin10.2.0/opt/smp/beam_emu.o		obj/i386-apple-darwin10.2.0/opt/smp/beam_opcodes.o obj/i386-apple-darwin10.2.0/opt/smp/beam_load.o		obj/i386-apple-darwin10.2.0/opt/smp/beam_bif_load.o obj/i386-apple-darwin10.2.0/opt/smp/beam_debug.o	obj/i386-apple-darwin10.2.0/opt/smp/beam_bp.o obj/i386-apple-darwin10.2.0/opt/smp/beam_catches.o obj/i386-apple-darwin10.2.0/opt/smp/sys.o obj/i386-apple-darwin10.2.0/opt/smp/driver_tab.o obj/i386-apple-darwin10.2.0/opt/smp/unix_efile.o obj/i386-apple-darwin10.2.0/opt/smp/gzio.o obj/i386-apple-darwin10.2.0/opt/smp/elib_malloc.o obj/i386-apple-darwin10.2.0/opt/smp/elib_memmove.o obj/i386-apple-darwin10.2.0/opt/smp/sys_float.o obj/i386-apple-darwin10.2.0/opt/smp/sys_time.o obj/i386-apple-darwin10.2.0/opt/smp/erl_poll.kp.o obj/i386-apple-darwin10.2.0/opt/smp/erl_check_io.kp.o obj/i386-apple-darwin10.2.0/opt/smp/erl_poll.nkp.o obj/i386-apple-darwin10.2.0/opt/smp/erl_check_io.nkp.o obj/i386-apple-darwin10.2.0/opt/smp/erl_mseg.o obj/i386-apple-darwin10.2.0/opt/smp/erl_unix_sys_ddll.o obj/i386-apple-darwin10.2.0/opt/smp/erl_mtrace_sys_wrap.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_bif0.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_bif1.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_bif2.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_debug.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_gc.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_mode_switch.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_native_bif.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_stack.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_amd64.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_amd64_glue.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_amd64_bifs.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_x86_signal.o obj/i386-apple-darwin10.2.0/opt/smp/hipe_x86_stack.o obj/i386-apple-darwin10.2.0/opt/smp/efile_drv.o obj/i386-apple-darwin10.2.0/opt/smp/inet_drv.o obj/i386-apple-darwin10.2.0/opt/smp/zlib_drv.o obj/i386-apple-darwin10.2.0/opt/smp/ram_file_drv.o obj/i386-apple-darwin10.2.0/opt/smp/ttsl_drv.o -lutil -ldl -lm   -lncurses -L../lib/internal/i386-apple-darwin10.2.0  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B03/erts/emulator/zlib/obj/i386-apple-darwin10.2.0/opt/libz.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B03/erts/emulator/pcre/obj/i386-apple-darwin10.2.0/opt/libepcre.a -lethread -lpthread -lerts_internal_r  
ld: duplicate symbol _saved_program_buf in obj/i386-apple-darwin10.2.0/opt/smp/erl_pbifs.o and obj/i386-apple-darwin10.2.0/opt/smp/erl_main.o
collect2: ld returned 1 exit status
make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B03/bin/i386-apple-darwin10.2.0/beam.smp] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2

Warning: the following items did not execute (for erlang): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Changed 14 years ago by cerieljacobs@…

Attachment: R13B03.verbose.output.txt added

R13B03 verbose install output

comment:4 Changed 14 years ago by pguyot (Paul Guyot)

What is in your macports.conf file? I'm confused about some stuff I see in your log and that don't appear here. It's probably a problem caused by the additional optimization you ask the compiler with -fast -march=nocona -mtune generic. There is also this weird error on line 765 of your log.

Changed 14 years ago by cerieljacobs@…

Attachment: macports.conf added

macports.conf

comment:5 Changed 14 years ago by cerieljacobs@…

Without -fast -march=nocona -mtune generic, installation succeeds.

comment:6 Changed 14 years ago by cerieljacobs@…

With -march=nocona -mtune generic, without -fast installation succeeds too.

comment:7 Changed 14 years ago by cerieljacobs@…

Trying to remove -O3 and -m32 flags with command:

$ sudo port -v install erlang configure.cflags-delete=-O3 configure.cflags-delete=-m32

fails, there are still gcc lines with both -O3 -fast -m32 -m64 on one line.
(suggestions how to accomplish this are welcome)

comment:8 Changed 14 years ago by cerieljacobs@…

Trying a different route to install in 64-bit:

$ sudo port -v install erlang configure.args-append=--enable-m64-build configure.args-append=--enable-darwin-64bit configure.args-append=--build=i686-apple-darwin10

Which doesn't do what I want: replace -m32 with -m64 and add all the other erlang 64-bit required stuff.

This issue more converts to a feature request: "please add a 64-bit variant"

comment:9 Changed 14 years ago by cerieljacobs@…

/usr/bin/gcc-4.2 -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B03/bin/i686-apple-darwin10/beam.smp \
	 -m64 -L/opt/local/lib -framework CoreFoundation  -pagezero_size 0x400000  obj/i686-apple-darwin10/opt/smp/erl_main.o		obj/i686-apple-darwin10/opt/smp/preload.o obj/i686-apple-darwin10/opt/smp/erl_pbifs.o		obj/i686-apple-darwin10/opt/smp/benchmark.o obj/i686-apple-darwin10/opt/smp/erl_alloc.o		obj/i686-apple-darwin10/opt/smp/erl_mtrace.o obj/i686-apple-darwin10/opt/smp/erl_alloc_util.o	obj/i686-apple-darwin10/opt/smp/erl_goodfit_alloc.o obj/i686-apple-darwin10/opt/smp/erl_bestfit_alloc.o	obj/i686-apple-darwin10/opt/smp/erl_afit_alloc.o obj/i686-apple-darwin10/opt/smp/erl_instrument.o	obj/i686-apple-darwin10/opt/smp/erl_init.o obj/i686-apple-darwin10/opt/smp/erl_atom_table.o	obj/i686-apple-darwin10/opt/smp/erl_bif_table.o obj/i686-apple-darwin10/opt/smp/erl_bif_ddll.o  	obj/i686-apple-darwin10/opt/smp/erl_bif_guard.o obj/i686-apple-darwin10/opt/smp/erl_bif_info.o	obj/i686-apple-darwin10/opt/smp/erl_bif_op.o obj/i686-apple-darwin10/opt/smp/erl_bif_os.o		obj/i686-apple-darwin10/opt/smp/erl_bif_lists.o obj/i686-apple-darwin10/opt/smp/erl_bif_trace.o	obj/i686-apple-darwin10/opt/smp/erl_bif_wrap.o obj/i686-apple-darwin10/opt/smp/erl_trace.o	obj/i686-apple-darwin10/opt/smp/copy.o obj/i686-apple-darwin10/opt/smp/utils.o		obj/i686-apple-darwin10/opt/smp/bif.o obj/i686-apple-darwin10/opt/smp/io.o 			obj/i686-apple-darwin10/opt/smp/erl_printf_term.o obj/i686-apple-darwin10/opt/smp/erl_debug.o		obj/i686-apple-darwin10/opt/smp/erl_md5.o obj/i686-apple-darwin10/opt/smp/erl_message.o		obj/i686-apple-darwin10/opt/smp/erl_process.o obj/i686-apple-darwin10/opt/smp/erl_process_dict.obj/i686-apple-darwin10/opt/smp/erl_process_lock.o obj/i686-apple-darwin10/opt/smp/erl_port_task.o	obj/i686-apple-darwin10/opt/smp/erl_arith.o obj/i686-apple-darwin10/opt/smp/time.o	obj/i686-apple-darwin10/opt/smp/erl_time_sup.o obj/i686-apple-darwin10/opt/smp/external.o	obj/i686-apple-darwin10/opt/smp/dist.o obj/i686-apple-darwin10/opt/smp/binary.o		obj/i686-apple-darwin10/opt/smp/erl_db.o obj/i686-apple-darwin10/opt/smp/erl_db_util.o		obj/i686-apple-darwin10/opt/smp/erl_db_hash.o obj/i686-apple-darwin10/opt/smp/erl_db_tree.o		obj/i686-apple-darwin10/opt/smp/fix_alloc.o obj/i686-apple-darwin10/opt/smp/big.o		obj/i686-apple-darwin10/opt/smp/hash.o obj/i686-apple-darwin10/opt/smp/index.o		obj/i686-apple-darwin10/opt/smp/atom.o obj/i686-apple-darwin10/opt/smp/module.o		obj/i686-apple-darwin10/opt/smp/export.o obj/i686-apple-darwin10/opt/smp/register.o		obj/i686-apple-darwin10/opt/smp/break.o obj/i686-apple-darwin10/opt/smp/erl_async.o		obj/i686-apple-darwin10/opt/smp/erl_lock_check.o obj/i686-apple-darwin10/opt/smp/erl_gc.o 		obj/i686-apple-darwin10/opt/smp/erl_lock_count.o obj/i686-apple-darwin10/opt/smp/erl_nmgc.o	obj/i686-apple-darwin10/opt/smp/erl_posix_str.o obj/i686-apple-darwin10/opt/smp/erl_bits.o 	obj/i686-apple-darwin10/opt/smp/erl_math.o obj/i686-apple-darwin10/opt/smp/erl_fun.o             obj/i686-apple-darwin10/opt/smp/erl_bif_port.o obj/i686-apple-darwin10/opt/smp/erl_term.o 	obj/i686-apple-darwin10/opt/smp/erl_node_tables.o obj/i686-apple-darwin10/opt/smp/erl_monitors.obj/i686-apple-darwin10/opt/smp/erl_process_dump.o obj/i686-apple-darwin10/opt/smp/erl_obsolete.o	obj/i686-apple-darwin10/opt/smp/erl_bif_timer.o obj/i686-apple-darwin10/opt/smp/erl_drv_thread.o      obj/i686-apple-darwin10/opt/smp/erl_bif_chksum.o obj/i686-apple-darwin10/opt/smp/erl_bif_re.o		obj/i686-apple-darwin10/opt/smp/erl_unicode.o obj/i686-apple-darwin10/opt/smp/packet_parser.o	obj/i686-apple-darwin10/opt/smp/safe_hash.o obj/i686-apple-darwin10/opt/smp/erl_zlib.o		obj/i686-apple-darwin10/opt/smp/erl_nif.o obj/i686-apple-darwin10/opt/smp/beam_emu.o		obj/i686-apple-darwin10/opt/smp/beam_opcodes.o obj/i686-apple-darwin10/opt/smp/beam_load.o		obj/i686-apple-darwin10/opt/smp/beam_bif_load.o obj/i686-apple-darwin10/opt/smp/beam_debug.o		obj/i686-apple-darwin10/opt/smp/beam_bp.o obj/i686-apple-darwin10/opt/smp/beam_catches.o obj/i686-apple-darwin10/opt/smp/sys.o obj/i686-apple-darwin10/opt/smp/driver_tab.o obj/i686-apple-darwin10/opt/smp/unix_efile.o obj/i686-apple-darwin10/opt/smp/gzio.o obj/i686-apple-darwin10/opt/smp/elib_malloc.o obj/i686-apple-darwin10/opt/smp/elib_memmove.o obj/i686-apple-darwin10/opt/smp/sys_float.o obj/i686-apple-darwin10/opt/smp/sys_time.o obj/i686-apple-darwin10/opt/smp/erl_poll.kp.o obj/i686-apple-darwin10/opt/smp/erl_check_io.kp.o obj/i686-apple-darwin10/opt/smp/erl_poll.nkp.o obj/i686-apple-darwin10/opt/smp/erl_check_io.nkp.o obj/i686-apple-darwin10/opt/smp/erl_mseg.o obj/i686-apple-darwin10/opt/smp/erl_unix_sys_ddll.o obj/i686-apple-darwin10/opt/smp/erl_mtrace_sys_wrap.o  obj/i686-apple-darwin10/opt/smp/efile_drv.o obj/i686-apple-darwin10/opt/smp/inet_drv.o obj/i686-apple-darwin10/opt/smp/zlib_drv.o obj/i686-apple-darwin10/opt/smp/ram_file_drv.o obj/i686-apple-darwin10/opt/smp/ttsl_drv.o -lutil -ldl -lm   -lncurses -L../lib/internal/i686-apple-darwin10  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang
$ sudo port -v install erlang configure.args="--enable-m64-build --enable-darwin-64bit --build=i686-apple-darwin10"

does better do the intended job, but still fails with the "duplicate symbol _saved_program_buf in obj/i686-apple-darwin10/opt/smp/erl_pbifs.o and obj/i686-apple-darwin10/opt/smp/erl_main.o" error.

/work/erlang-R13B03/erts/emulator/zlib/obj/i686-apple-darwin10/opt/libz.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B03/erts/emulator/pcre/obj/i686-apple-darwin10/opt/libepcre.a -lethread -lpthread -lerts_internal_r  
ld: duplicate symbol _saved_program_buf in obj/i686-apple-darwin10/opt/smp/erl_pbifs.o and obj/i686-apple-darwin10/opt/smp/erl_main.o
collect2: ld returned 1 exit status
make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B03/bin/i686-apple-darwin10/beam.smp] Error 1

Changed 14 years ago by cerieljacobs@…

Erlang R13B03 64-bit port debug install output

comment:10 Changed 14 years ago by cerieljacobs@…

This is caused by a bug in the upstream source code.

Try remove this line from erts/emulator/beam/global.h:

    struct erl_heap_fragment* saved_program_buf;

More info: http://www.erlang.org/cgi-bin/ezmlm-cgi?4:mss:48405:200912:nmbcnionkhpmkendahkk

comment:11 Changed 14 years ago by cerieljacobs@…

Is the macports maintainer for erlang able to integrate this (also attached) http://www.erlang.org/cgi-bin/ezmlm-cgi?4:mss:48443:200912:nifhlggabockkmcdbmfn patch?

Changed 14 years ago by cerieljacobs@…

Attachment: patch added

patch that prepends extern to definitions

comment:12 in reply to:  8 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Please remember to use WikiFormatting and preview your posts. I have attempted to correct your formatting in your posts above.

Replying to cerieljacobs@…:

This issue more converts to a feature request: "please add a 64-bit variant"

A variant is not an appropriate mechanism for providing 64-bit support. Instead, ports shall inspect the ${configure.build_arch} variable and act accordingly. 64-bit support for erlang was already requested in #19174.

comment:13 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: duplicate symbol _saved_program_buf in obj/i386-apple-darwin10.2.0/opt/smp/erl_pbifs.o and obj/i386-apple-darwin10.2.0/opt/smp/erl_main.oerlang: duplicate symbol _saved_program_buf in obj/i386-apple-darwin10.2.0/opt/smp/erl_pbifs.o and obj/i386-apple-darwin10.2.0/opt/smp/erl_main.o

comment:14 Changed 13 years ago by bfulgham@…

This seems to be resolved in R14B01. Can you confirm correct 64-bit build functionality on your particular platform/OS install?

comment:15 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

No response; closing.

Note: See TracTickets for help on using tickets.