Giter Site home page Giter Site logo

Build Errors about ruby-unf_ext HOT 6 OPEN

knu avatar knu commented on August 10, 2024 1
Build Errors

from ruby-unf_ext.

Comments (6)

trusche avatar trusche commented on August 10, 2024 4

Ah... see #42. In my case, this fixed it:

yum install gcc72-c++

from ruby-unf_ext.

taf2 avatar taf2 commented on August 10, 2024

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.

taf2 avatar taf2 commented on August 10, 2024
[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.

taf2 avatar taf2 commented on August 10, 2024
[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.

taf2 avatar taf2 commented on August 10, 2024

Not suggesting this is the correct workaround but should do the trick for anyone else that runs into this

calltracking@cda90d5

from ruby-unf_ext.

trusche avatar trusche commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.