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

ocp-build 1.99.17-beta build failed on windows/cygwin #80

Open
anmaped opened this issue Mar 20, 2017 · 3 comments
Open

ocp-build 1.99.17-beta build failed on windows/cygwin #80

anmaped opened this issue Mar 20, 2017 · 3 comments

Comments

@anmaped
Copy link

anmaped commented Mar 20, 2017

Some fix available ? I'm using ocaml 4.03.0 on windows (cygwin) and the last git version.

# boot/ocp-build.asm init
# boot/ocp-build.asm
### stderr ###
# [...]
# Error: in project "ocplib-compat", the source filename
#       "_obuild/ocp-pp/ocp-pp.byte" does not exist
# RULE 116 (state active)
#               SOURCE _obuild/ocplib-compat/ocplib-compat validated(not available)
#               SOURCE _obuild/ocp-pp/ocp-pp.byte.exe(not available)
#               SOURCE ocplib-compat/stringCompat.ml(exists)
#               SOURCE _obuild/ocp-pp/ocp-pp.byte(not available)
#       %{ocp-pp_FULL_DST_DIR}%/ocp-pp.byte ocplib-compat/stringCompat.ml > _obuild/ocplib-compat/_temp/stringCompat.mlpp
#               TARGET _obuild/ocplib-compat/_temp/stringCompat.mlpp
# make: *** [Makefile:143: build-ocps] Error 2

@lefessan
Copy link
Member

lefessan commented Mar 20, 2017

Just to try, could you update libs/ocplib-compat/build.ocp to remove the line:

    ocaml.pp_deps = [ "%{ocp-pp_FULL_DST_DIR}%/ocp-pp.byte" ];

I think it is redundant with

   ocaml.pp_requires = [ "ocp-pp:byte" ];

except that the later correctly set the extension to .byte.exe.

If it works, I will update the git repo.

@anmaped
Copy link
Author

anmaped commented Mar 20, 2017

Thanks. It solved for ocplib-compat. But now the same happen for ocplib-unix.

# boot/ocp-build.asm init
# boot/ocp-build.asm
### stderr ###
# [...]
# File "/home/anmap/.opam/4.03.0/build/ocp-build.1.99.17-beta/libs/ocplib-unix/build.ocp2", line 1, characters 40-40:
# Error: in project "ocplib-unix", the source filename
#       "./_obuild/ocp-pp/ocp-pp.byte" does not exist
# RULE 354 (state active)
#               SOURCE ./_obuild/ocplib-unix/ocplib-unix validated(not available)
#               SOURCE ./libs/ocplib-unix/minUnix.mli(exists)
#               SOURCE ./_obuild/ocp-pp/ocp-pp.byte(not available)
#       %{ocp-pp_FULL_DST_DIR}%/ocp-pp.byte ./libs/ocplib-unix/minUnix.mli > ./_obuild/ocplib-unix/_temp/minUnix.mlipp
#               TARGET ./_obuild/ocplib-unix/_temp/minUnix.mlipp
# make: *** [Makefile:184: build-ocps] Error 2

@anmaped
Copy link
Author

anmaped commented Mar 20, 2017

If I remove both pp_deps = [ "%{ocp-pp_FULL_DST_DIR}%/ocp-pp.byte" ]; lines then it compiles.

Using version 1.99.16-beta , there is no issue with ocplib-unix.

Now, I have issues with ocp-indent (ocp-build version 1.99.17-beta is installed)

# Error: you need ocp-build >= 1.99.
# make: *** [Makefile:92: ocp-build.root] Error 1

It appears that the issue is due to ocp-build.byte.exe name.

If I modify ocp-autoconf.byte to ocp-autoconf and ocp-pp.byte to opc-pp then everything is ok.

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

2 participants