From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS47066 71.19.144.0/20 X-Spam-Status: No, score=-1.0 required=3.0 tests=AWL,BAYES_00, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Jonathan del Strother Newsgroups: gmane.comp.lang.ruby.raindrops.general Subject: Compilation on Solaris/SmartOS Date: Tue, 27 Aug 2013 12:02:39 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: ger.gmane.org 1377601390 23681 80.91.229.3 (27 Aug 2013 11:03:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Aug 2013 11:03:10 +0000 (UTC) To: raindrops@librelist.org Original-X-From: raindrops@librelist.org Tue Aug 27 13:03:13 2013 Return-path: Envelope-to: gclrrg-raindrops@m.gmane.org In-Reply-To: List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: raindrops@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.raindrops.general:114 Archived-At: Received: from zedshaw2.xen.prgmr.com ([71.19.156.177]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VEH3I-0002pY-36 for gclrrg-raindrops@m.gmane.org; Tue, 27 Aug 2013 13:03:12 +0200 Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id 142CB74E42 for ; Tue, 27 Aug 2013 11:11:34 +0000 (UTC) Content-Transfer-Encoding: 7bit X-Content-Filtered-By: PublicInbox::Filter 0.0.1 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?