[MacPorts] #21743: ocaml-3.11.1 native code compiler fails.
#21743: ocaml-3.11.1 native code compiler fails. ---------------------------------------+------------------------------------ Reporter: kiyoshi.coquser@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: ocaml ---------------------------------------+------------------------------------ Ocaml 3.11.1 have some issues about native code generation. So building of some ports (ex. Unison +aqua) fails. I prepared minimal patches to fix these issues. They are borrowed from Caml CVS repository: http://camlcvs.inria.fr/ Fixing issues: 0004813: incorrect parsing of floating point literals http://caml.inria.fr/mantis/view.php?id=4813 0004841: Cannot make callbacks from C code when using the -output-obj option under Mac OS X http://caml.inria.fr/mantis/view.php?id=4841 0004867: ocamlopt -shared failed on Mac OS X 10.6 Snow Leopard (x86_64) http://caml.inria.fr/mantis/view.php?id=4867 0004877: Definition of uint64 in caml/config.h conflicts. (MacOSX Snow Leopard, X86_64) http://caml.inria.fr/mantis/view.php?id=4877 Note: These issues will be fixed in the next release of ocaml. -- Ticket URL: <http://trac.macports.org/ticket/21743> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21743: ocaml-3.11.1 native code compiler fails. ---------------------------------------+------------------------------------ Reporter: kiyoshi.coquser@… | Owner: avsm@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: ocaml ---------------------------------------+------------------------------------ Changes (by avsm@…): * owner: macports-tickets@… => avsm@… * status: new => assigned Comment: Attached ocaml.diff of the changes which also bumps Revision of the port in the Portfile. Testing it now on x86_32 Snow Leopard -- Ticket URL: <http://trac.macports.org/ticket/21743#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21743: ocaml-3.11.1 native code compiler fails. ----------------------------------------+----------------------------------- Reporter: kiyoshi.coquser@… | Owner: avsm@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: ocaml | ----------------------------------------+----------------------------------- Changes (by avsm@…): * status: assigned => closed * resolution: => fixed Comment: no regressions spotted in x86_32, except an unrelated bug involving ld.conf - most of our ports do not update the ld.conf on install, so I changed base ocaml to include the ld.conf directory in its ld.conf. Committed in r58665 . Kiyoshi, if you could confirm that your problems are fixed on x86_64 SL with this commit, I'd appreciate it. -- Ticket URL: <http://trac.macports.org/ticket/21743#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21743: ocaml-3.11.1 native code compiler fails. ----------------------------------------+----------------------------------- Reporter: kiyoshi.coquser@… | Owner: avsm@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: ocaml | ----------------------------------------+----------------------------------- Comment(by kiyoshi.coquser@…): Replying to [comment:4 avsm@…]: I confirm that unison +aqua port (with 64bit support patches) now be compiled on X86_64 environment. It also passed my private test cases which I built to clarify the problem. And, patch for ld.conf is nice. Thanks a lot avsm. -- Ticket URL: <http://trac.macports.org/ticket/21743#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
MacPorts wrote:
#21743: ocaml-3.11.1 native code compiler fails. ----------------------------------------+----------------------------------- Reporter: kiyoshi.coquser@… | Owner: avsm@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: ocaml | ----------------------------------------+-----------------------------------
Comment(by kiyoshi.coquser@…):
Replying to [comment:4 avsm@…]:
I confirm that unison +aqua port (with 64bit support patches) now be compiled on X86_64 environment.
It also passed my private test cases which I built to clarify the problem.
And, patch for ld.conf is nice.
Thanks a lot avsm.
--
Hi all, I still am unable to build unison +aqua with the latest macports version. I'm using macports 1.8.1 on snow leopard. Perhaps I'm doing some newbie error? $ sudo port install unison +aqua Password: ---> Computing dependencies for unison ---> Staging ocaml into destroot ---> Installing ocaml @3.11.1_2 ---> Activating ocaml @3.11.1_2 ---> Cleaning ocaml ---> Fetching unison ---> Verifying checksum(s) for unison ---> Extracting unison ---> Applying patches to unison ---> Configuring unison ---> Building unison Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57" && /usr/bin/make -j2 all NATIVE=true THREADS=true UISTYLE=macnew " returned error 2 Command output: ocamlopt: uutil.mli ---> uutil.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/uutil.mli ocamlopt: fileutil.mli ---> fileutil.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/fileutil.mli ocamlopt: name.mli ---> name.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/name.mli ocamlopt: lock.mli ---> lock.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/lock.mli ocamlopt: clroot.mli ---> clroot.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/clroot.mli ocamlopt: tree.mli ---> tree.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/tree.mli ocamlopt: checksum.mli ---> checksum.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/checksum.mli ocamlopt: terminal.mli ---> terminal.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/terminal.mli ocamlopt: transfer.mli ---> transfer.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/transfer.mli ocamlopt: strings.mli ---> strings.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/strings.mli ocamlopt: test.mli ---> test.cmi ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/test.mli ocamlopt: uimacbridgenew.ml ---> uimacbridgenew.cmx ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/uimacbridgenew.ml ocamlopt: osxsupport.c ---> osxsupport.o ocamlopt -I lwt -I ubase -thread -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/osxsupport.c File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.27.57/uimacbridgenew.ml", line 3, characters 0-11: Error: Unbound module Common make: *** [uimacbridgenew.cmx] Error 2 -- View this message in context: http://www.nabble.com/-MacPorts---21743%3A-ocaml-3.11.1-native-code-compiler... Sent from the MacPorts - Tickets mailing list archive at Nabble.com.
#21743: ocaml-3.11.1 native code compiler fails. ----------------------------------------+----------------------------------- Reporter: kiyoshi.coquser@… | Owner: avsm@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: | Keywords: Port: ocaml | ----------------------------------------+----------------------------------- Changes (by stessaris@…): * status: closed => reopened * resolution: fixed => Comment:
0004877: Definition of uint64 in caml/config.h conflicts. (MacOSX Snow Leopard, X86_64)
http://caml.inria.fr/mantis/view.php?id=4877
Note: These issues will be fixed in the next release of ocaml.
Version 3.11.2 doesn't fix 0004877 (see http://caml.inria.fr/mantis/changelog_page.php), so the conflict is still there. -- Ticket URL: <http://trac.macports.org/ticket/21743#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21743: ocaml-3.11.1 native code compiler fails. ----------------------------------------+----------------------------------- Reporter: kiyoshi.coquser@… | Owner: avsm@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: | Keywords: Port: ocaml | ----------------------------------------+----------------------------------- Comment(by ryandesign@…): Neither does 3.12.0 apparently (the upstream bug report is still open) -- Ticket URL: <https://trac.macports.org/ticket/21743#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21743: ocaml-3.11.1 native code compiler fails. ----------------------------------------+----------------------------------- Reporter: kiyoshi.coquser@… | Owner: mww@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: | Keywords: Port: ocaml | ----------------------------------------+----------------------------------- Changes (by jmr@…): * cc: avsm@… (added) * owner: avsm@… => mww@… * status: reopened => new -- Ticket URL: <https://trac.macports.org/ticket/21743#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (2)
-
chengsoon.ong
-
MacPorts