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

install error on MacOS10.13.1 #424

Closed
jiazhh0325 opened this issue Jan 3, 2018 · 3 comments
Closed

install error on MacOS10.13.1 #424

jiazhh0325 opened this issue Jan 3, 2018 · 3 comments

Comments

@jiazhh0325
Copy link

jiazhh0325 commented Jan 3, 2018

chaohuijias-MacBook-Pro:Ruby chaohui$ sudo gem install gosu
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing gosu:
	ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.3.0/gems/gosu-0.13.1/ext/gosu
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180104-37419-pzyc9q.rb extconf.rb
The Gosu gem requires some libraries to be installed system-wide.
See the following site for a list:
https://github.com/gosu/gosu/wiki/Getting-Started-on-OS-X
creating Makefile

current directory: /Library/Ruby/Gems/2.3.0/gems/gosu-0.13.1/ext/gosu
make "DESTDIR=" clean

current directory: /Library/Ruby/Gems/2.3.0/gems/gosu-0.13.1/ext/gosu
make "DESTDIR="
compiling ../../src/stb_vorbis.c
compiling ../../src/RubyGosu.cxx
In file included from ../../src/RubyGosu.cxx:880:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17/ruby/config.h:368:31: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
#define RUBY_ARCH "universal-"RUBY_PLATFORM_OS
                              ^
                               
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17/ruby/config.h:369:35: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
#define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
                                  ^
                                   
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17/ruby/config.h:369:55: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
#define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
                                                      ^
                                                       
../../src/RubyGosu.cxx:2880:9: warning: 'finite' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations]
    if (SWIG_Float_Overflow_Check(v)) {
        ^
../../src/RubyGosu.cxx:2868:73: note: expanded from macro 'SWIG_Float_Overflow_Check'
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
                                                                        ^
../../src/RubyGosu.cxx:2840:29: note: expanded from macro 'SWIG_isfinite'
#  define SWIG_isfinite(X) (isfinite(X))
                            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/missing.h:180:24: note: expanded from macro 'isfinite'
#   define isfinite(x) finite(x)
                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/math.h:757:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
../../src/RubyGosu.cxx:5691:35: warning: 'draw_rot' is deprecated [-Wdeprecated-declarations]
      ((Gosu::Font const *)arg1)->draw_rot((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
                                  ^
../../Gosu/Font.hpp:73:9: note: 'draw_rot' has been explicitly marked deprecated here
        GOSU_DEPRECATED
        ^
../../Gosu/Platform.hpp:69:42: note: expanded from macro 'GOSU_DEPRECATED'
#  define GOSU_DEPRECATED __attribute__((__deprecated__))
                                         ^
2 warnings and 3 errors generated.
make: *** [RubyGosu.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/gosu-0.13.1 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/gosu-0.13.1/gem_make.out

  
@jlnr
Copy link
Member

jlnr commented Jan 8, 2018

That's a new one. I've started using Ruby from homebrew a while ago, so I hadn't tested Gosu with High Sierra's built-in Ruby installation. I'll play around with it and see if I can get it fixed.

@jlnr
Copy link
Member

jlnr commented Jan 14, 2018

Fixed by disabling a warning(?!) as seen in this other issue: brianmario/charlock_holmes#122

@jlnr jlnr closed this as completed in d50e439 Jan 14, 2018
jlnr added a commit that referenced this issue Jan 14, 2018
Fix #424 by silencing reserved UDL warning
@jlnr
Copy link
Member

jlnr commented Jan 16, 2018

I have released Gosu 0.13.2 to address this issue. Thanks for reporting this pretty embarrassing showstopper! 😰

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

2 participants