Comments (6)
Ah... see #42. In my case, this fixed it:
yum install gcc72-c++
from ruby-unf_ext.
Here's something interesting...
[deployer] deployer@ip-10-55-11-11:~/apps/ctm$ cd /home/deployer/.rvm/gems/ruby-2.5.3@ctm2/gems/unf_ext-0.0.7.5/ext/unf_ext
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3@ctm2/gems/unf_ext-0.0.7.5/ext/unf_ext$ clear
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3@ctm2/gems/unf_ext-0.0.7.5/ext/unf_ext$ ls
extconf.rb Makefile unf unf.cc
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3@ctm2/gems/unf_ext-0.0.7.5/ext/unf_ext$ make
compiling unf.cc
g++: error: unrecognized command line option ‘-Wmisleading-indentation’
g++: error: unrecognized command line option ‘-Wimplicit-fallthrough=0’
g++: error: unrecognized command line option ‘-Wduplicated-cond’
g++: error: unrecognized command line option ‘-Wrestrict’
make: *** [unf.o] Error 1
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3@ctm2/gems/unf_ext-0.0.7.5/ext/unf_ext$ ruby extconf.rb
checking for main() in -lstdc++... yes
creating Makefile
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3@ctm2/gems/unf_ext-0.0.7.5/ext/unf_ext$ make
compiling unf.cc
linking shared-object unf_ext.so
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3@ctm2/gems/unf_ext-0.0.7.5/ext/unf_ext$
from ruby-unf_ext.
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3/gems/unf_ext-0.0.7.5/ext/unf_ext$ vim Makefile
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3/gems/unf_ext-0.0.7.5/ext/unf_ext$ ruby extconf.rb
checking for main() in -lstdc++... yes
creating Makefile
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3/gems/unf_ext-0.0.7.5/ext/unf_ext$ ruby --version
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3/gems/unf_ext-0.0.7.5/ext/unf_ext$ rvm use ruby-2.5.3
Using /home/deployer/.rvm/gems/ruby-2.5.3
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3/gems/unf_ext-0.0.7.5/ext/unf_ext$ ruby extconf.rb
checking for -lstdc++... yes
creating Makefile
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3/gems/unf_ext-0.0.7.5/ext/unf_ext$ make
compiling unf.cc
g++: error: unrecognized command line option ‘-Wmisleading-indentation’
g++: error: unrecognized command line option ‘-Wimplicit-fallthrough=0’
g++: error: unrecognized command line option ‘-Wduplicated-cond’
g++: error: unrecognized command line option ‘-Wrestrict’
make: *** [unf.o] Error 1
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3/gems/unf_ext-0.0.7.5/ext/unf_ext$
Okay so it's a ruby 2.5.3 issue
from ruby-unf_ext.
[deployer] deployer@ip-10-55-11-11:~/.rvm/gems/ruby-2.5.3/gems/unf_ext-0.0.7.5/ext/unf_ext$ g++ --version
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
maybe ruby 2.5.3 and g++ 4.8?
from ruby-unf_ext.
Not suggesting this is the correct workaround but should do the trick for anyone else that runs into this
from ruby-unf_ext.
I'm experiencing the same issue with ruby 2.6.1 on Amazon Linux AMI release 2018.03.
from ruby-unf_ext.
Related Issues (20)
- unable to install unf_ext from gem HOT 3
- Gem compile fails
- Gem install fail / Rails 5 / segmentation fault HOT 1
- Ruby 2.6 x86-mingw32 support HOT 5
- Release current master please HOT 1
- Build fails if using Xcode 11 toolchain HOT 4
- Latest version doesn't contain a binary for Windows HOT 5
- Do a 1.0.0 release?
- Is version 0.0.7.7 a legitimate release? HOT 2
- Push tag v0.0.7.7 HOT 3
- Failing to compile on macOS/Ruby 2.7.1 but not sure why HOT 7
- Building fails with Mac 14, Xcode 11.2, ruby 2.3.7 HOT 1
- Installation fails in Docker and Ruby 3 preview HOT 1
- update to support ruby 3.0 HOT 5
- Failing to build on ARM64 Linux (Apple M1 running Debian in a VM) HOT 4
- Please add support for Ruby 3.1 HOT 5
- Can't install 0.0.8.1-x64-mingw32 in ruby 3.1 HOT 7
- Can't install 0.0.8.2 on Windows HOT 2
- 0.0.8.2 binary builds seemed to be tagged as "beta"? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-unf_ext.