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

Failure to build with Xcode 10 / macOS 10.14 Mojave #210

Open
fxcoudert opened this issue Sep 13, 2018 · 3 comments
Open

Failure to build with Xcode 10 / macOS 10.14 Mojave #210

fxcoudert opened this issue Sep 13, 2018 · 3 comments

Comments

@fxcoudert
Copy link

Discovered during Homebrew testing: Homebrew/homebrew-core#31740

The error is:

$ opam config exec -- make lib9p
vendor/lib9p/request.c:28:10: vendor/lib9p/pack.c:32:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
vendor/lib9p/connection.c:28:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
vendor/lib9p/log.c:28:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
make: *** [vendor/build/lib9p/log.o] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
1 error generated.
1 error generated.
make: *** [vendor/build/lib9p/connection.o] Error 1
make: *** [vendor/build/lib9p/request.o] Error 1
make: *** [vendor/build/lib9p/pack.o] Error 1
@Buzzglo
Copy link

Buzzglo commented Oct 10, 2018

eagerly awaiting this task

@jelmansouri
Copy link

jelmansouri commented Oct 11, 2018

Looks like default Xcode installation through the store doesn't install this package:
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
Tried compiling the lib independently and installing the package fixes the issue.
(To install do simply do open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg in a terminal)

@jelmansouri
Copy link

jelmansouri commented Oct 11, 2018

If you build the driver with qcow2 which is the default, you're gonna get this error:

[ERROR] The compilation of ocaml-system failed at "/private/tmp/docker-machine-driver-xhyve-20181011-14594-10x1d8n/.brew_home/.opam/opam-init/hooks/sandbox.sh build ocaml gen_ocaml_config.ml".

# === ERROR while compiling ocaml-system.4.07.0 ================================#
# context              2.0.0 | macos/x86_64 |  | https://opam.ocaml.org#ebd2104d
# path                 ~/.opam/default/.opam-switch/build/ocaml-system.4.07.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build ocaml gen_ocaml_config.ml
# exit-code            71
# env-file             /private/tmp/opam-jelmansouri-15282/ocaml-system-15282-2c871f.env
# output-file          /private/tmp/opam-jelmansouri-15282/ocaml-system-15282-2c871f.out
###  output ###
# sandbox-exec: sandbox_apply_container: Operation not permitted

The current workaround is to do:
brew install docker-machine-driver-xhyve --without-qcow2

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

3 participants