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

Build failure on macos with OCaml 4.05: implicit declaration of function 'Assert' is invalid in C99 #26

Open
shonfeder opened this issue Sep 6, 2022 · 0 comments

Comments

@shonfeder
Copy link

Hi!

I'm seeing the following build failure on our MacOS github runner:

- File "dune", line 9, characters 9-25:
- 9 |   (names stdcompat__stubs))
-              ^^^^^^^^^^^^^^^^
- (cd _build/default && /usr/bin/cc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -g -I /Users/runner/work/omd/omd/_opam/lib/ocaml -o stdcompat__stubs.o -c stdcompat__stubs.c)
- In file included from stdcompat__stubs.c:25:
- In file included from /Users/runner/work/omd/omd/_opam/lib/ocaml/caml/memory.h:28:
- /Users/runner/work/omd/omd/_opam/lib/ocaml/caml/minor_gc.h:102:3: error: implicit declaration of function 'Assert' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
-   Assert(ephe_ref->offset < Wosize_val(ephe_ref->ephe));
-   ^
- 1 error generated.

This is on

  • MacOS 11.6.8
  • OCaml 4.05

You can see the build failure here: https://github.com/ocaml/omd/runs/8197411068?check_suite_focus=true

Thanks for the great utility and please let me know if I can help.

@shonfeder shonfeder changed the title Build failure on macos with OCaml 4.05 Build failure on macos with OCaml 4.05: implicit declaration of function 'Assert' is invalid in C99 Sep 6, 2022
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

1 participant