Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

camlp4 fails to install with +32bit compilers (mac os) #6925

Closed
lostman opened this issue Jul 6, 2016 · 14 comments
Closed

camlp4 fails to install with +32bit compilers (mac os) #6925

lostman opened this issue Jul 6, 2016 · 14 comments

Comments

@lostman
Copy link

lostman commented Jul 6, 2016

Tried with both 4.02.3+32bit and 4.03.0+32bit.

=-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  馃惈
Building camlp4.4.03+1:
  ./configure --bindir=/Users/lostman/.opam/4.03.0+32bit/bin --libdir=/Users/lostman/.opam/4.03.0+32bit/lib/ocaml --pkgdir=/Users/lostman/.opam/4.03.0+32bit/lib
  make all
  make install install-META
[ERROR] The compilation of camlp4.4.03+1 failed.
Removing camlp4.4.03+1.
  rm -rf /Users/lostman/.opam/4.03.0+32bit/lib/camlp4
  rm -f /Users/lostman/.opam/4.03.0+32bit/bin/camlp4 /Users/lostman/.opam/4.03.0+32bit/bin/camlp4boot /Users/lostman/.opam/4.03.0+32bit/bin/mkcamlp4 /Users/lostman/.opam/4.03.0+32bit/bin/camlp4r /Users/lostman/.opam/4.03.0+32bit/bin/camlp4rf /Users/lostman/.opam/4.03.0+32bit/bin/camlp4orf /Users/lostman/.opam/4.03.0+32bit/bin/camlp4o /Users/lostman/.opam/4.03.0+32bit/bin/camlp4of /Users/lostman/.opam/4.03.0+32bit/bin/camlp4oof /Users/lostman/.opam/4.03.0+32bit/bin/camlp4prof /Users/lostman/.opam/4.03.0+32bit/bin/camlp4rf.opt /Users/lostman/.opam/4.03.0+32bit/bin/camlp4orf.opt /Users/lostman/.opam/4.03.0+32bit/bin/camlp4o.opt /Users/lostman/.opam/4.03.0+32bit/bin/camlp4oof.opt /Users/lostman/.opam/4.03.0+32bit/bin/camlp4r.opt


#=== ERROR while installing camlp4.4.03+1 =====================================#
# opam-version 1.2.0
# os           darwin
# command      make all
# path         /Users/lostman/.opam/4.03.0+32bit/build/camlp4.4.03+1
# compiler     4.03.0+32bit
# exit-code    2
# env-file     /Users/lostman/.opam/4.03.0+32bit/build/camlp4.4.03+1/camlp4-5250-6d07ae.env
# stdout-file  /Users/lostman/.opam/4.03.0+32bit/build/camlp4.4.03+1/camlp4-5250-6d07ae.out
# stderr-file  /Users/lostman/.opam/4.03.0+32bit/build/camlp4.4.03+1/camlp4-5250-6d07ae.err
### stdout ###
# ...[truncated]
# /Users/lostman/.opam/4.03.0+32bit/bin/ocamlc.opt -c -g -w Z -I camlp4/import -I camlp4/config -I camlp4 -o camlp4/config/Camlp4_import.cmo camlp4/config/Camlp4_import.ml
# /Users/lostman/.opam/4.03.0+32bit/bin/ocamlopt.opt -c -g -w Z -I camlp4/import -I camlp4/config -I camlp4 -o camlp4/config/Camlp4_import.cmx camlp4/config/Camlp4_import.ml
# /Users/lostman/.opam/4.03.0+32bit/bin/ocamlopt.opt -c -g -w Z -I camlp4/import -I camlp4/config -I camlp4 -o camlp4/config/Camlp4_config.cmx camlp4/config/Camlp4_config.ml
# /Users/lostman/.opam/4.03.0+32bit/bin/ocamlopt.opt -c -g -w a -I camlp4/import -I camlp4/config -I camlp4/boot -o camlp4/boot/Camlp4.cmx camlp4/boot/Camlp4.ml
# /Users/lostman/.opam/4.03.0+32bit/bin/ocamlopt.opt -c -g -w a -I camlp4/import -I camlp4/config -I camlp4/boot -o camlp4/boot/camlp4boot.cmx camlp4/boot/camlp4boot.ml
# /Users/lostman/.opam/4.03.0+32bit/bin/ocamlopt.opt dynlink.cmxa -g camlp4/config/Camlp4_import.cmx camlp4/config/Camlp4_config.cmx camlp4/boot/Camlp4.cmx camlp4/boot/camlp4boot.cmx -o camlp4/boot/camlp4boot.native
# + /Users/lostman/.opam/4.03.0+32bit/bin/ocamlopt.opt dynlink.cmxa -g camlp4/config/Camlp4_import.cmx camlp4/config/Camlp4_config.cmx camlp4/boot/Camlp4.cmx camlp4/boot/camlp4boot.cmx -o camlp4/boot/camlp4boot.native
# File "_none_", line 1:
# Error: Cannot find file dynlink.cmxa
# Command exited with code 2.
### stderr ###
# + echo camlp4/Camlp4.cmo camlp4/Camlp4Top.cmo camlp4/camlp4prof.byte camlp4/mkcamlp4.byte camlp4/camlp4.byte camlp4/camlp4fulllib.cma camlp4/camlp4boot.byte camlp4/camlp4boot.cma camlp4/camlp4r.byte camlp4/camlp4r.cma camlp4/camlp4rf.byte camlp4/camlp4rf.cma camlp4/camlp4o.byte camlp4/camlp4o.cma camlp4/camlp4of.byte camlp4/camlp4of.cma camlp4/camlp4oof.byte camlp4/camlp4oof.cma camlp4/camlp4orf.b...[truncated]
# make: *** [byte] Error 10
@imeckler
Copy link
Contributor

I have the same issue

@yminsky
Copy link
Contributor

yminsky commented Sep 25, 2016

Hmm. Same issue here, still. Anyone know what's up with this?

@dbuenzli
Copy link
Collaborator

Duplicate #4911

@lostman
Copy link
Author

lostman commented Sep 26, 2016

Also see: camlp4/camlp4#108

I'm not sure whether this change will make it to 4.03.0+32bit (that would be nice!). I currently have a custom version that I've added myself but couldn't see any other way.

Should I close this issue?

@dbuenzli
Copy link
Collaborator

dbuenzli commented Jul 3, 2017

This issue remains as described in the initial report. Ping @diml the maintainer of the camlp4 package.

@ghost
Copy link

ghost commented Jul 13, 2017

I thought this was supposed to be fixed in OCaml directly?

@dbuenzli
Copy link
Collaborator

@diml When, where and how ?

@ghost
Copy link

ghost commented Jul 17, 2017

It was suggested in camlp4/camlp4#108 that native dynlink should be enabled by OCaml for 32 bit osx.

Otherwise, we can try changing the ocaml-native in the opam file of camlp4 to ocaml-native-dynlink

@dbuenzli
Copy link
Collaborator

Otherwise, we can try changing the ocaml-native in the opam file of camlp4 to ocaml-native-dynlink

Since that seems to be the requirement for native code it seems to be the most sensitive thing to do.

@ghost
Copy link

ghost commented Jul 17, 2017

I think it'll need a bit of work on Camlp4 thought. Currently make byte will still use a native ocamlbuild plugin which will causes the build to use camlp4/boot/camlp4boot.native, which for some reason is linked with dynlink even though it contains no reference to dynlink.

I'll have a look

@dbuenzli
Copy link
Collaborator

Alternatively simply disallow the install on these switches using available:

@dbuenzli
Copy link
Collaborator

@diml Any update on this ?

@dra27
Copy link
Member

dra27 commented Jan 17, 2018

This should be fixed by #11199

@dbuenzli
Copy link
Collaborator

Closing then. Please reopen if that's not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants