xavierleroy / camlidl

Stub code generator for OCaml/C interface
Other
34 stars 8 forks source link

Build against ocaml-4.06 and ocaml-4.07 fails #6

Closed jakoblichtenberg closed 5 years ago

jakoblichtenberg commented 6 years ago

I am trying to move my OCaml toolset forward.

Question: Has anyone been able to build CamlIDL with OCaml 4.06.1 or 4.07.0?

For what it is worth here are my experiences.

Two separate problems:

1: In order to move from OCaml 4.05 to OCaml 4.06 I had to apply following hack: --- runtime/cfactory.cpp 2017-11-25 08:45:50.000000000 -0800 +++ runtime/cfactory_new.cpp 2018-09-05 20:35:21.186703000 -0700 @@ -195,7 +195,7 @@ dup2(fd, 2); close(fd);

endif

  1. In order to additionally move to 4.07 I got some issue related to Stdlib. Probably due to change https://github.com/ocaml/ocaml/pull/1010 .

Best regards and thank you.

jakoblichtenberg commented 6 years ago

Update:

I was able to move my OCaml toolset forward to 4.07 together with CamlIDL 1.06.

  1. The cfactory_new.cpp compile issue continued to be an issue. So I applied patch above as a 'workaround' and I have not encountered any problems yet.

  2. The issue regarding Stdlib evaporated. I am not exactly sure why I hit this two days ago, but not again.

Thank you!

ygrek commented 5 years ago

use ``` to separate code blocks, your patch above is unreadable. Also please show what error you get in first place. camlidl compiles cleanly on 4.06 and 4.07 for me

xavierleroy commented 5 years ago

@ygrek: I think the issue is in Windows-specific code, so if you're not under Windows you didn't see it.

xavierleroy commented 5 years ago

I pushed a tentative fix to the master branch, but I haven't tested it and may not be able to do so anytime soon. Anyone with a working Windows development environment is welcome to test and report here.

jakoblichtenberg commented 5 years ago

I got a fresh Windows environment. Will test and report back. Thank you!

On Sep 23, 2018, at 18:52, Xavier Leroy notifications@github.com<mailto:notifications@github.com> wrote:

I pushed a tentative fix to the master branch, but I haven't tested it and may not be able to do so anytime soon. Anyone with a working Windows development environment is welcome to test and report here.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/xavierleroy/camlidl/issues/6#issuecomment-423830411, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APdgOkCz8CaltyzBxm4yN8vhIXHoBRXsks5ud7xGgaJpZM4WcPLd.

yakobowski commented 5 years ago

@xavierleroy I have successfully built CamlIdl under Cygwin+Mingw. Not sure whether you meant that port, or a full MSVC build.

jakoblichtenberg commented 5 years ago

@xavierleroy . Just want to report back that I validated fix and it works well. Here is my configuration: Visual Studio 2019 Build Tools, ocaml-4.08.0+beta3, FlexDLL 0.37. cygwin used to build with native VS tools. Thank you. Jakob

PS. In validation process I discovered an issue related to move from ocaml-4.07.0 to ocaml-4.08.0+beta3. I will report this separately.

jakoblichtenberg commented 5 years ago

I believe this issue can be closed out.

xavierleroy commented 5 years ago

Thank you for the confirmation.