forked from translunar/nmatrix
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Error installing on MacOS: unrecognized command line option '-Wdivision-by-zero' on Mac #584
Comments
Look at the temporary decision. I'm using clang instead of [email protected] diff --git a/lib/nmatrix/mkmf.rb b/lib/nmatrix/mkmf.rb
index 544e3af..6a58341 100644
--- a/lib/nmatrix/mkmf.rb
+++ b/lib/nmatrix/mkmf.rb
@@ -38,6 +38,11 @@ def find_newer_gplusplus #:nodoc:
puts ver
return CONFIG['CXX']
end
+
+ gpp = 'g++'
+ if (result = `which #{gpp}`)
+ return (CONFIG['CXX'] = gpp)
+ end
false
end |
@rssdev10 , it did not help, it finds the same g++ ( 4.9 ) |
yes, you are right. Actually I removed gcc 4.9. Right now I have gcc without version which is identified as gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1) You can remove a code before my patch if need to save gcc 4.9. In any case this method must be rewritten. |
Use clang and clang++ on OSX. |
Duplicates #591; closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, but the issue 426 still exists.
I fail to install nmatrix on MacOS
gem install nmatrix
fails with error:
compiling nmatrix.cpp g++-4.9: error: unrecognized command line option '-Wdivision-by-zero' g++-4.9: error: unrecognized command line option '-Wextra-tokens' make: *** [nmatrix.o] Error 1
configuration:
ruby -v -rrbconfig -e 'puts RbConfig::MAKEFILE_CONFIG["CXX"]' ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16] g++
Full log:
The text was updated successfully, but these errors were encountered: