raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
* Compilation on Solaris/SmartOS
@ 2013-08-27 11:02 Jonathan del Strother
  2013-08-27 19:40 ` Eric Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan del Strother @ 2013-08-27 11:02 UTC (permalink / raw)
  To: raindrops

I was having trouble using Raindrops on our i386 SmartOS servers.  The gem
would compile fine, but bomb out at runtime :

ruby -rraindrops -e "Raindrops.new(1).incr(0)"
ld.so.1: ruby: fatal: relocation error: file
/..../gems/raindrops-0.10.0/lib/raindrops_ext.so: symbol
__sync_add_and_fetch_4: referenced symbol not found

I was able to fix this with march=native - I added something like this to
extconf.rb -

if CONFIG["arch"]=~/solaris/
  $CPPFLAGS += " -march=native"

I'm not familiar enough with building the atomic libs to say whether it's
definitely the correct fix, but it seems to work, and the ruby-atomic gem
needed something similar :
https://github.com/headius/ruby-atomic/blob/master/ext/extconf.rb.   Any

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-27 11:02 Compilation on Solaris/SmartOS Jonathan del Strother
2013-08-27 19:40 ` Eric Wong
2013-08-28  9:16   ` Jonathan del Strother
2013-08-28 10:13     ` Eric Wong
2013-08-29  9:58       ` Jonathan del Strother

raindrops RubyGem user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://bogomips.org/raindrops-public
	git clone --mirror http://ou63pmih66umazou.onion/raindrops-public

Example config snippet for mirrors

Newsgroups are available over NNTP:

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git