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

Build error #13

Open
vlamy opened this issue May 18, 2016 · 0 comments
Open

Build error #13

vlamy opened this issue May 18, 2016 · 0 comments

Comments

@vlamy
Copy link
Contributor

vlamy commented May 18, 2016

Hey ! I can't build the app with bundler. Any lead to make the build work ?

Ruby version

➜  tm4b git:(master) rvm list

rvm rubies

=> ruby-1.9.3-p551 [ x86_64 ]
   ruby-2.1.5 [ x86_64 ]
   ruby-2.2.0 [ x86_64 ]
 * ruby-2.2.1 [ x86_64 ]
   ruby-2.2.2 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

Bundle install

➜  tm4b git:(master) bundle
Fetching gem metadata from http://rubygems.org/
Fetching version metadata from http://rubygems.org/
Fetching dependency metadata from http://rubygems.org/
Resolving dependencies.....
Installing rake 11.1.2
Installing i18n 0.7.0
Installing json 1.8.3 with native extensions
Installing minitest 5.9.0
Installing thread_safe 0.3.5
Installing coderay 1.1.1
Installing diff-lcs 1.1.3
Installing fakeweb 1.3.0
Installing ffi 1.9.10 with native extensions
Installing formatador 0.2.5
Installing rb-appscript 0.6.1 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
....
creating Makefile
.....
make: *** [rbae.o] Error 1
make failed, exit code 2

Gem files will remain installed in /Users/wmalvault/.rvm/gems/ruby-1.9.3-p551/gems/rb-appscript-0.6.1 for inspection.
Results logged to /Users/wmalvault/.rvm/gems/ruby-1.9.3-p551/extensions/x86_64-darwin-15/1.9.1/rb-appscript-0.6.1/gem_make.out
Installing rb-fsevent 0.9.7
Installing ruby_dep 1.3.1

Gem::InstallError: ruby_dep requires Ruby version >= 2.0.0, ~> 2.0.
Installing lumberjack 1.0.10
Installing nenv 0.3.0
Installing shellany 0.0.1
Installing method_source 0.8.2
Installing slop 3.6.0
Installing thor 0.19.1
Installing rspec-core 2.6.4
Installing rspec-mocks 2.6.0
Using bundler 1.12.4
Installing tzinfo 1.2.2
Installing rspec-expectations 2.6.0
Installing rb-inotify 0.9.7
An error occurred while installing rb-appscript (0.6.1), and Bundler cannot continue.
Make sure that `gem install rb-appscript -v '0.6.1'` succeeds before bundling.

Install of gem rb-appscript -v '0.6.1'

➜  tm4b git:(master) gem install rb-appscript -v '0.6.1'
Building native extensions.  This could take a while...
ERROR:  Error installing rb-appscript:
        ERROR: Failed to build gem native extension.

    /Users/wmalvault/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -r ./siteconf20160518-35096-lvcejh.rb extconf.rb
extconf.rb:44: Use RbConfig instead of obsolete and deprecated Config.
create /Users/wmalvault/.rvm/gems/ruby-1.9.3-p551/gems/rb-appscript-0.6.1/src/osx_ruby.h ...
create /Users/wmalvault/.rvm/gems/ruby-1.9.3-p551/gems/rb-appscript-0.6.1/src/osx_intern.h ...
creating Makefile

make  clean

make
compiling src/rbae.c
In file included from /usr/include/Availability.h:168:0,
                 from /usr/include/string.h:63,
                 from src/osx_ruby.h:48,
                 from src/rbae.c:12:
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfoDeprecated.h:1242:34: error: expected ',' or '}' before '__attribute__'
   kLSHandlerOptionsDefault       __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_4, __MAC_10_11, __IPHONE_4_0, __IPHONE_9_0, "Creator codes are deprecated on OS X.") = 0,
                                  ^
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSOpenDeprecated.h:27:33: error: expected ',' or '}' before '__attribute__'
   kLSLaunchStartClassic         __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_11, __IPHONE_NA, __IPHONE_NA, "The Classic environment is no longer supported.") = 0x00020000, /* Does nothing.*/
                                 ^
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:18:0,
                 from /System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h:9,
                 from /System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:11,
                 from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24,
                 from src/rbae.c:13:
/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h:53:1: error: initializer element is not constant
 static const CGFontIndex kCGGlyphMax = kCGFontIndexMax;
 ^
src/rbae.c: In function 'rbDescTypeToString':
src/rbae.c:103:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  *(DescType*)s = CFSwapInt32HostToBig(descType);
  ^
src/rbae.c: In function 'rbAE_AEDesc_newAppleEvent':
src/rbae.c:197:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  AEDesc returnIDDesc;
  ^
src/rbae.c: In function 'rbAE_findApplication':
src/rbae.c:493:2: warning: 'LSFindApplicationForInfo' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfoDeprecated.h:785) [-Wdeprecated-declarations]
  err = LSFindApplicationForInfo(inCreator,
  ^
src/rbae.c:501:2: warning: 'FSRefMakePath' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4086) [-Wdeprecated-declarations]
  err = FSRefMakePath(&outAppRef, path, PATH_MAX);
  ^
src/rbae.c: In function 'rbAE_psnForApplicationPath':
src/rbae.c:514:2: warning: 'FSPathMakeRef' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4115) [-Wdeprecated-declarations]
  err = FSPathMakeRef((UInt8 *)StringValuePtr(path), &appRef, NULL);
  ^
src/rbae.c:521:3: warning: 'FSCompareFSRefs' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:1850) [-Wdeprecated-declarations]
   if (FSCompareFSRefs(&appRef, &foundRef) == noErr)
   ^
src/rbae.c: In function 'rbAE_launchApplication':
src/rbae.c:546:2: warning: 'FSPathMakeRef' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4115) [-Wdeprecated-declarations]
  err = FSPathMakeRef((UInt8 *)StringValuePtr(path), &appRef, NULL);
  ^
src/rbae.c:548:2: warning: 'LSApplicationParameters' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSOpenDeprecated.h:138) [-Wdeprecated-declarations]
  LSApplicationParameters appParams = {0,
  ^
src/rbae.c:548:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
src/rbae.c:553:2: warning: 'LSOpenApplication' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSOpenDeprecated.h:180) [-Wdeprecated-declarations]
  err = LSOpenApplication(&appParams, &psn);
  ^
src/rbae.c: In function 'rbAE_OSACopyScriptingDefinition':
src/rbae.c:709:2: warning: 'FSPathMakeRef' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4115) [-Wdeprecated-declarations]
  err = FSPathMakeRef((UInt8 *)StringValuePtr(path), &fsRef, NULL);
  ^
make: *** [rbae.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/wmalvault/.rvm/gems/ruby-1.9.3-p551/gems/rb-appscript-0.6.1 for inspection.
Results logged to /Users/wmalvault/.rvm/gems/ruby-1.9.3-p551/extensions/x86_64-darwin-15/1.9.1/rb-appscript-0.6.1/gem_make.out
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

1 participant