#21856 closed defect (fixed)
rb-cocoa build fails
Reported by: | jwhowse4 | Owned by: | kimuraw (kimura wataru) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.1 |
Keywords: | Cc: | ||
Port: | rb-cocoa |
Description
On an Intel Mac running Leopard 10.5.8 with Xcode 3.1.4 my rb-cocoa upgrade from 1.0.0_0 fails with the following error. Any ideas?
Touch /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-1.0.0/framework/build/Default/RubyCocoa.framework cd /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-1.0.0/framework /usr/bin/touch -c /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-1.0.0/framework/build/Default/RubyCocoa.framework ** BUILD SUCCEEDED ** strip -x build/Default/RubyCocoa.framework/Versions/Current/RubyCocoa <--- framework ---> lib ---> lib/osx <--- lib/osx <--- lib ---> ext ---> ext/rubycocoa make /usr/bin/gcc-4.0 -I. -I/opt/macports/lib/ruby/1.8/i686-darwin9 -I/opt/macports/lib/ruby/1.8/i686-darwin9 -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-1.0.0/ext/rubycocoa -I/opt/macports/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -F../../framework/build/Default -fno-common -g -fobjc-exceptions -Wall -DRB_ID=ID -I/usr/include/libxml2 -DHAS_LIBXML2 -I/usr/include/ffi -DMACOSX -arch -c rubycocoa.m gcc-4.0: Invalid arch name : -c make: *** [rubycocoa.o] Error 1 setup failed 'system make' failed try 'ruby install.rb --help' for usage
Change History (5)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to kimuraw@… |
---|---|
Port: | rb-cocoa added |
comment:2 Changed 15 years ago by jwhowse4
comment:3 Changed 15 years ago by kimuraw (kimura wataru)
Resolution: | → fixed |
---|---|
Status: | new → closed |
this problem is a bug of RubyCocoa configuration script.
build fails when -arch is not given for ruby or $build_arch is not specified in macports.conf. I fixed this bug at r58818.
comment:4 Changed 15 years ago by jmroot (Joshua Root)
Setting build_arch to blank in macports.conf is user error. It is commented out by default, and therefore has a default value appropriate to the hardware and OS version.
comment:5 Changed 15 years ago by jwhowse4
The variable build_arch is not specified at all in macports.conf on my machine. It is not set to blank.
Note: See
TracTickets for help on using
tickets.
Revision 2 builds and installs properly for me. Thanks for the fix. James