raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / 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

Hi,
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"
end

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
thoughts?


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

end of thread, other threads:[~2013-08-29  9:59 UTC | newest]

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

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/raindrops.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).