8000 Add -isystem on macOS Catalina to fix ruby build by jez · Pull Request #3062 · sorbet/sorbet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add -isystem on macOS Catalina to fix ruby build #3062

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

Merged
merged 2 commits into from
May 19, 2020
Merged

Conversation

jez
Copy link
Collaborator
@jez jez commented May 19, 2020

Motivation

This manifested as an error that looked like:

command ./configure --enable-load-relative --with-destdir=/private/var/tmp/_bazel_jez/491a13d243378e23690a7f8390a5c09f/sandbox/darwin-sandbox/2/execroot/com_stripe_ruby_typer/bazel-out/darwin-fastbuild/bin/external/ruby_2_6/toolchain --with-rubyhdrdir=${includedir} --with-rubyarchhdrdir=${includedir}/ruby-arch --disable-install-doc --prefix=/ failed!
checking for ruby... /usr/bin/ruby
tool/config.guess already exists
tool/config.sub already exists
checking build system type... x86_64-apple-darwin19.3.0
checking host system type... x86_64-apple-darwin19.3.0
checking target system type... x86_64-apple-darwin19.3.0
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/var/folders/5p/z_n7b95s1yz02fdjwvk8cwp80000gn/T/tmp.FpE76u33':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
build dir: /var/folders/5p/z_n7b95s1yz02fdjwvk8cwp80000gn/T/tmp.FpE76u33
Target @ruby_2_6//:ruby failed to build

cc @Morriar @jvilk-stripe this should fix the errors you were seeing trying to
build @ruby_2_6 locally.

https://stackoverflow.com/questions/58278260/cant-compile-a-c-program-on-a-mac-after-upgrading-to-catalina-10-15/58278392#58278392

Test plan

Tested in my personal laptop running macOS Catalina, and also on my work laptop
running macOS Mojave.

This manifested as an error that looked like:

    command ./configure --enable-load-relative --with-destdir=/private/var/tmp/_bazel_jez/491a13d243378e23690a7f8390a5c09f/sandbox/darwin-sandbox/2/execroot/com_stripe_ruby_typer/bazel-out/darwin-fastbuild/bin/external/ruby_2_6/toolchain --with-rubyhdrdir=${includedir} --with-rubyarchhdrdir=${includedir}/ruby-arch --disable-install-doc --prefix=/ failed!
    checking for ruby... /usr/bin/ruby
    tool/config.guess already exists
    tool/config.sub already exists
    checking build system type... x86_64-apple-darwin19.3.0
    checking host system type... x86_64-apple-darwin19.3.0
    checking target system type... x86_64-apple-darwin19.3.0
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... configure: error: in `/var/folders/5p/z_n7b95s1yz02fdjwvk8cwp80000gn/T/tmp.FpE76u33':
    configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
    build dir: /var/folders/5p/z_n7b95s1yz02fdjwvk8cwp80000gn/T/tmp.FpE76u33
    Target @ruby_2_6//:ruby failed to build
@jez jez requested a review from a team as a code owner May 19, 2020 22:48
@jez jez requested review from elliottt and removed request for a team May 19, 2020 22:48
@jez jez merged commit e4f71ca into master May 19, 2020
@jez jez deleted the jez-ruby-catalina branch May 19, 2020 22:59
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

Successfully merging this pull request may close these issues.

2 participants
0