raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Jonathan del Strother <maillist@steelskies.com>
To: raindrops@librelist.org
Subject: Compilation on Solaris/SmartOS
Date: Tue, 27 Aug 2013 12:02:39 +0100	[thread overview]
Message-ID: <CAF5DW8+sGumpq55yamLFZL5h2jRnEEwoDunmQTVhToE=zcBDvw@mail.gmail.com> (raw)
In-Reply-To: <CAF5DW8+sGumpq55yamLFZL5h2jRnEEwoDunmQTVhToE=zcBDvw@mail.gmail.com>

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

       reply	other threads:[~2013-08-27 11:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-27 11:02 Jonathan del Strother [this message]
2013-08-27 19:40 ` Compilation on Solaris/SmartOS 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: http://yhbt.net/raindrops/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF5DW8+sGumpq55yamLFZL5h2jRnEEwoDunmQTVhToE=zcBDvw@mail.gmail.com' \
    --to=maillist@steelskies.com \
    --cc=raindrops@librelist.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).