Opened 14 years ago

Closed 9 years ago

#28188 closed defect (fixed)

ocaml @3.12.0 linker error - build failed

Reported by: macportstrac@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: ocaml

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I use a 32bit intel platform with os-x 10.6.6, installed port and wanted to install unison. The install of ocaml failed with the error message:

:info:build ../ocamlcompopt.sh -nostdlib -a -I stdlib ocamlbuild/ocamlbuild_pack.cmx ocamlbuild/ocamlbuild_plugin.cmx ocamlbuild/ocamlbuild_executor.cmx ocamlbuild/ocamlbuild_unix_plugin.cmx -o ocamlbuild/ocamlbuildlib.cmxa
:info:build ../ocamlcompopt.sh -nostdlib -a -I stdlib ocamlbuild/ocamlbuild_pack.cmx ocamlbuild/ocamlbuild_plugin.cmx -o ocamlbuild/ocamlbuildlightlib.cmxa
:info:build ../ocamlcompopt.sh -nostdlib -c -g -annot -warn-error A -w L -w R -w Z -I ../otherlibs/unix -for-pack Ocamlbuild_pack -I ocamlbuild -I stdlib -o ocamlbuild/ocamlbuild.cmx ocamlbuild/ocamlbuild.ml
:info:build ../ocamlcompopt.sh -nostdlib unix.cmxa -g -I stdlib -I ../otherlibs/unix ocamlbuild/ocamlbuild_executor.cmx ocamlbuild/ocamlbuild_pack.cmx ocamlbuild/ocamlbuild_unix_plugin.cmx ocamlbuild/ocamlbuild.cmx -o ocamlbuild/ocamlbuild.native
:info:build ld: in ocamlbuild/ocamlbuild_pack.o, in section __DATA,__data reloc 1: sectionForAddress(0x4028448) address not in any section for architecture i386
:info:build collect2: ld returned 1 exit status
:info:build File "caml_startup", line 1, characters 0-1:
:info:build Error: Error during linking
:info:build Exit code 2 while executing this command:
:info:build   ../ocamlcompopt.sh -nostdlib unix.cmxa -g -I stdlib -I ../otherlibs/unix ocamlbuild/ocamlbuild_executor.cmx ocamlbuild/ocamlbuild_pack.cmx ocamlbuild/ocamlbuild_unix_plugin.cmx ocamlbuild/ocamlbuild.cmx -o ocamlbuild/ocamlbuild.native
:info:build make[1]: *** [ocamlbuild.native] Error 2
:info:build make: *** [world.opt] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ocaml/work/ocaml-3.12.0" && unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && /usr/bin/make world.opt " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for ocaml): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for ocaml is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ocaml/main.log

Attachments (1)

ocaml_build_main.log (325.7 KB) - added by macportstrac@… 14 years ago.
complete log file

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by macportstrac@…

Attachment: ocaml_build_main.log added

complete log file

comment:1 Changed 14 years ago by macportstrac@…

Cc: macportstrac@… added

Cc Me!

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

Cc: macportstrac@… removed
Description: modified (diff)
Keywords: ocaml build failed link removed
Owner: changed from macports-tickets@… to mww@…

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

Does this still happen with 3.12.1_2?

comment:4 Changed 9 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

No response; assuming resolved in current version.

Note: See TracTickets for help on using tickets.