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

unrecognized command line option '-stdlib=libc++' #249

Open
foonlyboy opened this issue Mar 11, 2019 · 0 comments
Open

unrecognized command line option '-stdlib=libc++' #249

foonlyboy opened this issue Mar 11, 2019 · 0 comments

Comments

@foonlyboy
Copy link

On macos 10.11.6
with ruby 2.6.1 from macports

gem update sassc (from 2.0.0 to 2.0.1)
fails with:
c++: error: unrecognized command line option '-stdlib=libc++'

Workaround:
sudo env CXX=/opt/local/bin/clang gem update sassc

  • macports compiles ruby with /opt/local/bin/clang
  • gem defaults to option: '-stdlib=libc++'
  • sassc uses c++ as the compiler (instead of clang or the gem default)
  • c++ on my machine is linked to gcc (which does not understand -stdlib=libc++)

I suspect:

  • you take the compiler options from the gem defaults
  • you preset the compiler to be 'c++' (not from the gem defaults)

Setting env CXX to /opt/local/bin/clang fixed the problem for me (see Workaround above)

Regards,
~eike

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