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

Servo build fails on MacOS Sierra #23087

Closed
fredfeng opened this issue Mar 24, 2019 · 2 comments
Closed

Servo build fails on MacOS Sierra #23087

fredfeng opened this issue Mar 24, 2019 · 2 comments
Labels

Comments

@fredfeng
Copy link

@fredfeng fredfeng commented Mar 24, 2019

I first followed the instructions for brew:
brew bundle install --file=etc/taskcluster/macos/Brewfile
pip install virtualenv

Since my MacOS is 10.13.4 (High Sierra), I also ran the following commands:
brew install openssl

export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include"
export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib"

./mach check

But the check command didn't pass:
...
Checking crossbeam-deque v0.6.1
Compiling quote v0.6.3
Checking crossbeam-deque v0.2.0
Checking futf v0.1.4
Checking ordered-float v1.0.0
Checking immeta v0.4.0
Checking generic-array v0.9.0
Checking generic-array v0.12.0
Checking core-foundation v0.6.2
error: failed to run custom build command for gobject-sys v0.7.0
process didn't exit successfully: /servo/target/debug/build/gobject-sys-ab01c00524d1de76/build-script-build (exit code: 1)
--- stderr
"pkg-config" "--libs" "--cflags" "gobject-2.0 >= 2.32" did not exit successfully: exit code: 1
--- stderr
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libffi', required by 'gobject-2.0', not found

warning: build failed, waiting for other jobs to finish...
Building [===========================> ] 310/590: osmesa-src(build), mozangle(build)

Any hints will be highly appreciated!

@jdm
Copy link
Member

@jdm jdm commented Mar 24, 2019

@fredfeng Does #23015 (comment) help at all?

@jdm jdm added P-mac A-build labels Mar 24, 2019
@fredfeng
Copy link
Author

@fredfeng fredfeng commented Mar 24, 2019

Yes, it works. Thanks so much!

I tried this:
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.