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.1 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: Re: Compilation on Solaris/SmartOS Date: Wed, 28 Aug 2013 10:16:37 +0100 Message-ID: References: <20130827194052.GA22109@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: ger.gmane.org 1377681433 18804 80.91.229.3 (28 Aug 2013 09:17:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Aug 2013 09:17:13 +0000 (UTC) To: raindrops@librelist.org Original-X-From: raindrops@librelist.org Wed Aug 28 11:17:17 2013 Return-path: Envelope-to: gclrrg-raindrops@m.gmane.org 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:116 Archived-At: Received: from zedshaw2.xen.prgmr.com ([71.19.156.177]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VEbsK-0000lC-Iz for gclrrg-raindrops@m.gmane.org; Wed, 28 Aug 2013 11:17:16 +0200 Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id B974274E20 for ; Wed, 28 Aug 2013 09:25:41 +0000 (UTC) Content-Transfer-Encoding: 7bit X-Content-Filtered-By: PublicInbox::Filter 0.0.1 > > 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? > > How does Ruby 2.0.0 / trunk build? That also uses __sync_* and I can't > find -march=native anywhere. > Ruby 2 appears to build & run fine... I'm not sure what I'd need to execute to ensure I run a __sync_* instruction, but messed around with threads & mutexes without problems. Interestingly, when I build raindrops with my regular ruby 1.9.3 install, the generated makefile includes "ARCH_FLAG = -m32", but when I build raindrops with ruby 2 / trunk, I get "ARCH_FLAGS = -march=i486". When built with that flag, Raindrops works fine.