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

ocamlfuse 2.7.1-cvs7 doesnt compile on OSX Big Sur #20

Open
hubrix opened this issue Feb 28, 2021 · 4 comments
Open

ocamlfuse 2.7.1-cvs7 doesnt compile on OSX Big Sur #20

hubrix opened this issue Feb 28, 2021 · 4 comments

Comments

@hubrix
Copy link

hubrix commented Feb 28, 2021

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
[ERROR] The compilation of ocamlfuse failed at "/Users/mark/.opam/opam-init/hooks/sandbox.sh build dune build -p ocamlfuse -j 11".

#=== ERROR while compiling ocamlfuse.2.7.1-cvs7 ===============================#
# context     2.0.8 | macos/x86_64 | ocaml-system.4.10.2 | https://opam.ocaml.org#64c8abec
# path        ~/.opam/ocaml-system.4.10.2/.opam-switch/build/ocamlfuse.2.7.1-cvs7
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p ocamlfuse -j 11
# exit-code   1
# env-file    ~/.opam/log/ocamlfuse-63936-d2d111.env
# output-file ~/.opam/log/ocamlfuse-63936-d2d111.out
### output ###
# Unix_util_stubs.c:85:9: error: implicit declaration of function 'write' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
# [...]
# Unix_util_stubs.c:85:9: note: did you mean 'fwrite'?
# /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:165:9: note: 'fwrite' declared here
# size_t   fwrite(const void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite);
#          ^
# Unix_util_stubs.c:115:3: error: implicit declaration of function 'fchdir' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
#   fchdir(Int_val(fd));
#   ^
# Unix_util_stubs.c:143:3: warning: expression result unused [-Wunused-value]
#   bufv;
#   ^~~~
# 1 warning and 3 errors generated.
@astrada
Copy link
Owner

astrada commented Feb 28, 2021

I'm sorry, but I don't have a Mac so I cannot reproduce the error. From a quick search on Google (grpc/grpc#25060), it looks like the problem is caused by a change in default flags for the C compilers on newer macos versions. A workaround you can try, is to run export CFLAGS="$CFLAGS -DHAVE_UNISTD_H" before retrying to compile.

@vtantia
Copy link

vtantia commented Jun 18, 2021

Getting this same error. Did you find any solution yet @hubrix?

@sergiomb2
Copy link

is not fixed with 53304fa ?

myedibleenso added a commit to myedibleenso/ocamlfuse that referenced this issue Jan 9, 2022
Relates to astrada/issues/20

>`osxfuse` has been succeeded by `macfuse` as of version 4.0.0.

See https://formulae.brew.sh/cask/osxfuse
myedibleenso added a commit to myedibleenso/ocamlfuse that referenced this issue Jan 9, 2022
Relates to astrada/issues/20

>`osxfuse` has been succeeded by `macfuse` as of version 4.0.0.

See https://formulae.brew.sh/cask/osxfuse
@YeArie
Copy link

YeArie commented Apr 11, 2022

Any updates?

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

5 participants