| Message |
 |
Date: 2010-09-28 20:24
Sender: Jason Roelofs
That's messed up. System install Ruby has
Config::CONFIG["arch"] as "universal-darwin10.0".
I missed this as I've been working with RVM for a while now and
completely didn't think to test system OSX Ruby.
I'll open a ticket on the github project page
( http://github.com/jameskilton/rice/issues ) and get a patch in. |
Date: 2010-09-28 19:59
Sender: Danny Staple
I now see "Invalid arch name : universal" on Snow
Leopard.
$ ruby --version
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10]
$ gem install rice
Building native extensions. This could take a while...
ERROR: Error installing rice:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb --build-flags
checking for a BSD-compatible install... /opt/local/bin/ginstall
-c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... none
checking for ranlib... ranlib
checking build system type... i386-apple-darwin10.4.0
checking host system type... i386-apple-darwin10.4.0
checking for ruby.h... yes
checking for node.h... yes
checking for ruby/node.h... yes
checking for version.h... yes
checking for env.h... yes
checking host system type... (cached) i386-apple-darwin10.4.0
checking for doxygen... /opt/local/bin/doxygen
checking for perl... /opt/local/bin/perl
checking for dot... /opt/local/bin/dot
configure: creating ./config.status
config.status: creating Makefile
config.status: creating rice/Makefile
config.status: creating test/Makefile
config.status: creating sample/Makefile
config.status: creating ruby/Makefile
config.status: creating ruby/lib/Makefile
config.status: creating test/ext/Makefile
config.status: creating ruby/lib/mkmf-rice.rb
config.status: creating rice/detail/ruby_version_code.hpp
config.status: creating rice/config.hpp
config.status: executing depfiles commands
make
Making all in rice
make all-am
g++ -DHAVE_CONFIG_H -I. -I/System/Library/Frameworks/Ruby.framew
ork/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -arch
universal -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common
-pipe -fno-common -fno-common
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/universal-darwin10.0 -c -o Class.o Class.cpp
g++-4.2: Invalid arch name : universal
make[2]: *** [Class.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
Gem files will remain installed
in /Library/Ruby/Gems/1.8/gems/rice-1.4.0 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/rice-1.4.0/gem_make
.out
|
Date: 2009-08-24 21:15
Sender: Brandon Mechtley
In addition to the fix above, as in http://www.iteray.com/archives/133
for libxml, you can do the following to install the gem:
ARCHFLAGS='-arch i386' gem install rice -- --build-flags
or
ARCHFLAGS='-arch ppc' gem install rice -- --build-flags
|
Date: 2009-07-11 02:18
Sender: Brandon Mechtley
This still appears to be a problem. (ruby 1.8.6 (2008-08-11 patchlevel
287) [universal-darwin9.0])
The fix above seems to work, but this is still an issue when
installing using rubygems rather than manually. |
Date: 2008-05-25 23:55
Sender: Paul Brannan
I don't see an easy way around this problem. The -M options
are put in by automake, and the multiple arch options are required
in order to support universal binaries. Perhaps there is a way
to tell automake to use a different style of dependency generation
on OSX. |
Date: 2008-05-05 17:49
Sender: Jason Roelofs
What I've found is that Ruby 1.8.6 p114 works just fine, but
the build-in OS X 10.4 Ruby is still p111. I went ahead and installed
ruby and rubygems from port to get the most up-to-date version
and it works there.
It would probably be a good idea to have Rice support p111, so
I'll leave this ticket open. |