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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.4.6: fails to compile on OSX with ocaml 4.02.1 #91

Closed
avsm opened this issue Oct 16, 2014 · 6 comments
Closed

2.4.6: fails to compile on OSX with ocaml 4.02.1 #91

avsm opened this issue Oct 16, 2014 · 6 comments

Comments

@avsm
Copy link
Collaborator

avsm commented Oct 16, 2014

findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/avsm/.opam/4.02.1/lib/ocaml, /Users/avsm/.opam/4.02.1/lib/ocaml/compiler-libs
/Users/avsm/.opam/4.02.1/bin/ocamlfind ocamlc -a -o ppx/ppx.cma
/Users/avsm/.opam/4.02.1/bin/ocamlfind ocamlopt -a -o ppx/ppx.cmxa
+ /Users/avsm/.opam/4.02.1/bin/ocamlfind ocamlopt -a -o ppx/ppx.cmxa
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
    ar -m [-TLsv] archive file ...
    ar -m [-abiTLsv] position archive file ...
    ar -p [-TLsv] archive [file ...]
    ar -q [-cTLsv] archive file ...
    ar -r [-cuTLsv] archive file ...
    ar -r [-abciuTLsv] position archive file ...
    ar -t [-TLsv] archive [file ...]
    ar -x [-ouTLsv] archive [file ...]
File "_none_", line 1:
Error: Error while creating the library ppx/ppx.a
Command exited with code 2.

Empty ar not allowed on OSX

@vouillon
Copy link
Member

Indeed, the "ppx" library is empty: no ml mile, and an empty mli file (except for documentation).

I'm not sure how to fix that. Maybe by remove this library and moving Ppx_lwt to the executable "ppx_lwt"?

@Drup and @whitequark, what do you think?

@Drup
Copy link
Member

Drup commented Oct 17, 2014

This was the first sane way I could think of to generate documentation for ppx, if anyone has a better idea ....

@whitequark
Copy link
Contributor

Yes, we should definitely get rid of the empty library and properly append the META description using some other way. I have no idea what to do about documentation though. What about adding (*OASIS_START*)(*OASIS_STOP*) to some .odocl file it presumably generates?

(Insert a rant about inflexibility of OASIS)

avsm added a commit to avsm/opam-repository that referenced this issue Oct 20, 2014
@whitequark
Copy link
Contributor

Actually I think we could export the ppx rewriter itself as a library. This could be useful in construction of ppx drivers. This way, the corresponding .mli will get documented automatically.

@avsm
Copy link
Collaborator Author

avsm commented Dec 7, 2014

Any progress on fixing this on OSX? We have a dependency on trunk Lwt for the https://github.com/mirage/mirage-profile library, and this keeps coming up. The short term fix would just be to add a dummy ML file to the library to satisfy ar.

@whitequark
Copy link
Contributor

See also ocaml-ppx/ppx_getenv#1 (comment)

avsm added a commit to avsm/lwt that referenced this issue Dec 7, 2014
@Drup Drup closed this as completed Jan 6, 2015
reitblatt added a commit to frenetic-lang/frenetic that referenced this issue May 31, 2015
Empty libraries break the build on Mac OS X (see e.g. ocsigen/lwt#91). Not really sure what the purpose of test_frenetic was if it's empty, but this fixes the build...
Drup added a commit to ocsigen/tyxml that referenced this issue Apr 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants