RubyCocoa aka. rb-cocoa fails to build

Florian Ebeling florian.ebeling at gmail.com
Thu Mar 27 15:33:12 PDT 2008


sudo port -dv install rb-cocoa

here is the output:

--->  Configuring rb-cocoa
DEBUG: Executing org.macports.configure (rb-cocoa)
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Environment: CFLAGS='-O2' CPPFLAGS='-I/opt/local/include'
CXXFLAGS='-O2' CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0'
F90FLAGS='-O2' LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2'
OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install' OBJCFLAGS='-O2'
FFLAGS='-O2' CC='/usr/bin/gcc-4.0'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0"
&& /opt/local/bin/ruby -rvendor-specific install.rb config
--install-prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/destroot/opt/local
--install-root=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/destroot'
install.rb: entering config phase...
create ext/rubycocoa/extconf.rb
create framework/GeneratedConfig.xcconfig
create framework/src/objc/Version.h
create tests/Makefile
---> framework
create /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0/framework/src/objc/osx_ruby.h
...
create /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0/framework/src/objc/osx_intern.h
...
BSROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0/framework/bridge-support"
CFLAGS="" /opt/local/bin/ruby build.rb
Generating BridgeSupport metadata for: CoreFoundation ...
    Collect metadata (37.755779 seconds)
/opt/local/lib/ruby/1.8/rexml/text.rb:292:in `normalize': private
method `gsub' called for true:TrueClass (NoMethodError)
	from /opt/local/lib/ruby/1.8/rexml/element.rb:1082:in `[]='
	from /opt/local/lib/ruby/1.8/rexml/element.rb:586:in `add_attribute'
	from ./gen_bridge_metadata.rb:1435:in `generate_xml_document'
	from ./gen_bridge_metadata.rb:1419:in `each'
	from ./gen_bridge_metadata.rb:1419:in `generate_xml_document'
	from ./gen_bridge_metadata.rb:551:in `xml_document'
	from ./gen_bridge_metadata.rb:1511:in `generate_xml'
	from ./gen_bridge_metadata.rb:1511:in `open'
	from ./gen_bridge_metadata.rb:1511:in `generate_xml'
	from ./gen_bridge_metadata.rb:542:in `write'
	from build.rb:106
	from build.rb:50:in `measure'
	from build.rb:104
	from build.rb:62:in `each'
	from build.rb:62
config failed
hook /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0/framework/post-config.rb
failed:
'system BSROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0/framework/bridge-support"
CFLAGS="" /opt/local/bin/ruby build.rb' failed
try 'ruby install.rb --help' for usage
Error: Target org.macports.configure returned: configure failure:
shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0"
&& /opt/local/bin/ruby -rvendor-specific install.rb config
--install-prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/destroot/opt/local
--install-root=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/destroot
" returned error 1
Command output: create ext/rubycocoa/extconf.rb
create framework/GeneratedConfig.xcconfig
create framework/src/objc/Version.h
create tests/Makefile
---> framework
create /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0/framework/src/objc/osx_ruby.h
...
create /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0/framework/src/objc/osx_intern.h
...
BSROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0/framework/bridge-support"
CFLAGS="" /opt/local/bin/ruby build.rb
Generating BridgeSupport metadata for: CoreFoundation ...
    Collect metadata (37.755779 seconds)
/opt/local/lib/ruby/1.8/rexml/text.rb:292:in `normalize': private
method `gsub' called for true:TrueClass (NoMethodError)
	from /opt/local/lib/ruby/1.8/rexml/element.rb:1082:in `[]='
	from /opt/local/lib/ruby/1.8/rexml/element.rb:586:in `add_attribute'
	from ./gen_bridge_metadata.rb:1435:in `generate_xml_document'
	from ./gen_bridge_metadata.rb:1419:in `each'
	from ./gen_bridge_metadata.rb:1419:in `generate_xml_document'
	from ./gen_bridge_metadata.rb:551:in `xml_document'
	from ./gen_bridge_metadata.rb:1511:in `generate_xml'
	from ./gen_bridge_metadata.rb:1511:in `open'
	from ./gen_bridge_metadata.rb:1511:in `generate_xml'
	from ./gen_bridge_metadata.rb:542:in `write'
	from build.rb:106
	from build.rb:50:in `measure'
	from build.rb:104
	from build.rb:62:in `each'
	from build.rb:62
config failed
hook /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0/framework/post-config.rb
failed:
'system BSROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-cocoa/work/RubyCocoa-0.12.0/framework/bridge-support"
CFLAGS="" /opt/local/bin/ruby build.rb' failed
try 'ruby install.rb --help' for usage

Warning: the following items did not execute (for rb-cocoa):
org.macports.activate org.macports.configure org.macports.build
org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Does this work for others currently? (This is from OS X 10.5.2, Intel
Macbook duo core)

Florian

-- 
Florian Ebeling
florian.ebeling at gmail.com


More information about the macports-users mailing list