Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Mac install fails with Homebrew gcc #11

Open
ilkka opened this issue Jun 4, 2014 · 1 comment
Open

Mac install fails with Homebrew gcc #11

ilkka opened this issue Jun 4, 2014 · 1 comment

Comments

@ilkka
Copy link

ilkka commented Jun 4, 2014

I just happened to notice that when GCC is installed from Homebrew and therefore GCC's c++ is in $PATH before the system clang c++, installation fails with:

...
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_be.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_le.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf8.o
  LIBTOOL-STATIC Release/oniguruma.a
  CXX(target) Release/obj.target/onig_scanner/src/onig-cache.o
c++: error: unrecognized command line option '-stdlib=libc++'
make: *** [Release/obj.target/onig_scanner/src/onig-cache.o] Error 1
@probablycorey probablycorey added bug and removed bug labels Jul 21, 2014
@ethansherriff
Copy link

I use MacPorts, but running CXX=clang++ npm install oniguruma fixed this (and a lot of CoreFoundation related errors, too) for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants