#1017: macgem intall error ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: macgem ----------------------------+----------------------------------------------- Comment(by lsansonetti@…): Thanks for the quick patch! I merged it into my local repository and verified that the bug disappeared, and that YAML specs still pass as before. Please commit :) Now, installing the gsl gem fails with a different error: {{{ $ sudo /usr/local/bin/macgem install gsl Building native extensions. This could take a while... ERROR: Error installing gsl: ERROR: Failed to build gem native extension. /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/bin/macruby extconf.rb checking for sys/types.h... yes checking for u_int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for u_int32_t... yes creating narray_config.h creating Makefile make Makefile:176: warning: overriding commands for target `/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/Gems/1.9.2/gems/narray-0.5.9.7/.' Makefile:174: warning: ignoring old commands for target `/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/Gems/1.9.2/gems/narray-0.5.9.7/.' /usr/bin/gcc -I. -I/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/include/ruby-1.9.2 /universal-darwin11.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/include/ruby-1.9.2/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/include/ruby-1.9.2 -I. -DHAVE_SYS_TYPES_H -DHAVE_U_INT8_T -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_U_INT32_T -fno-common -arch i386 -arch x86_64 -fexceptions -fno- common -pipe -O3 -g -Wall -arch i386 -arch x86_64 -o narray.o -c narray.c narray.c: In function ‘na_mark_obj’: narray.c:84: warning: implicit declaration of function ‘rb_gc_mark’ narray.c: In function ‘na_check_class_narray’: narray.c:170: warning: implicit declaration of function ‘RCLASS’ narray.c:170: error: invalid type argument of ‘->’ narray.c:170: error: invalid type argument of ‘->’ narray.c:172: warning: implicit declaration of function ‘class_getSuperclass’ narray.c:172: error: ‘Class’ undeclared (first use in this function) narray.c:172: error: (Each undeclared identifier is reported only once narray.c:172: error: for each function it appears in.) narray.c:172: error: expected ‘)’ before ‘v’ narray.c: In function ‘na_mark_obj’: narray.c:84: warning: implicit declaration of function ‘rb_gc_mark’ narray.c: In function ‘na_check_class_narray’: narray.c:170: warning: implicit declaration of function ‘RCLASS’ narray.c:170: error: invalid type argument of ‘->’ narray.c:170: error: invalid type argument of ‘->’ narray.c:172: warning: implicit declaration of function ‘class_getSuperclass’ narray.c:172: error: ‘Class’ undeclared (first use in this function) narray.c:172: error: (Each undeclared identifier is reported only once narray.c:172: error: for each function it appears in.) narray.c:172: error: expected ‘)’ before ‘v’ lipo: can't open input file: /var/tmp//ccfnTl6u.out (No such file or directory) make: *** [narray.o] Error 1 Gem files will remain installed in /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/Gems/1.9.2/gems/narray-0.5.9.7 for inspection. Results logged to /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/Gems/1.9.2/gems/narray-0.5.9.7/src/gem_make.out }}} I remember people reporting that narray won't compile with MacRuby. I believe the extension uses too much APIs that we don't support (like the RCLASS macro to access fields). -- Ticket URL: <http://www.macruby.org/trac/ticket/1017#comment:5> MacRuby <http://macruby.org/>