New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
camlp4 fails to install with +32bit compilers (mac os) #108
Comments
FWIW I've built
|
Disabling natdynlink on 32bit darwins was done by @damiendoligez on ocaml/ocaml@9058296 . It seems, from the commit message, that 32bit+natdylink does work with darwin{8,9} but not with darwin{10,11} (that is 10.6 and 10.7); see also ocaml/ocaml@f93ec9a that initially disabled natdynlink on 32-bit 10.6 (darwin10). What is your own @damiendoligez or @alainfrisch, do you know how to test whether natdynlink works correctly on a given 32bit darwin host, to know the check can be relaxed for a newer version? |
A more relevant question would be: does it work on Darwin15 (i.e. 10.11) because that's the current version. I wouldn't mind breaking 10.6 and 10.7, they are not even in our set of CI machines. Especially as it would only break the automatic configuration. |
@damiendoligez I'm running |
…n hosts See camlp4/camlp4#108: native dynlink seems to work correctly on recent OSX machines (Darwin15, OSX 10.11), even on 32 bit setups. 32bit setups were broken by OSX toolchain changes on darwin{10,11} (10.6, 10.7) so all 32bit darwin versions above darwin9 were pessimistically disabled. (Apparently the user demand for 32bit darwin host support is that core_kernel assumes 32bit machines, at least when used in combination with js_of_ocaml).
…n hosts See camlp4/camlp4#108: native dynlink seems to work correctly on recent OSX machines (Darwin15, OSX 10.11), even on 32 bit setups. 32bit setups were broken by OSX toolchain changes on darwin{10,11} (10.6, 10.7) so all 32bit darwin versions above darwin9 were pessimistically disabled. (Apparently the user demand for 32bit darwin host support is that core_kernel assumes 32bit machines, at least when used in combination with js_of_ocaml).
I just sent a PR upstream to enable natdylink on darwin12 and more recent version. @lostman could you check that applying the patch https://patch-diff.githubusercontent.com/raw/ocaml/ocaml/pull/692.patch on a fresh switch alias also works? |
Just compiled What's the best workflow for something like this? I manually copied the |
How can I apply the patch while leaving the old compiler config in place? I just edited the 4.03.0+32bit |
It seems to me that the patch should be added to the opam repository directly |
…n hosts See camlp4/camlp4#108: native dynlink seems to work correctly on recent OSX machines (Darwin15, OSX 10.11), even on 32 bit setups. 32bit setups were broken by OSX toolchain changes on darwin{10,11} (10.6, 10.7) so all 32bit darwin versions above darwin9 were pessimistically disabled. (Apparently the user demand for 32bit darwin host support is that core_kernel assumes 32bit machines, at least when used in combination with js_of_ocaml).
It doesn't work (with 4.02.3 or trunk) on my machine (darwin 15.6.0 and xcode 8.1) using either the config args found in Could someone give me detailed instructions to make it work? |
@lostman I can't reproduce your observations. Could you send me the exact versions of MacOS and Xcode, the command lines that you used, and the contents of your environment (especially if you have defined |
Also posted this issue in
ocaml/opam-repository
:ocaml/opam-repository#6925
but I think this is a better place.
I was trying to build
js_of_ocaml
which usescamlp4
with+32bit
variants of the OCaml compiler (need 32-bit compiler to usejs_of_ocaml
withcore_kernel
andasync
).Unfortunately it doesn't work:
natdynlink
is disabled on 32-bit darwin architectures (ocaml-4.02.3/configure
):The text was updated successfully, but these errors were encountered: