From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: using GSL with cblas via FFI Date: Thu, 31 Mar 2011 17:18:24 +0200 Message-ID: References: <87y643aqns.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1301584722 27728 80.91.229.12 (31 Mar 2011 15:18:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2011 15:18:42 +0000 (UTC) Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , guile-user@gnu.org To: Johan Hidding Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Mar 31 17:18:33 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5Jdn-00041v-SH for guile-user@m.gmane.org; Thu, 31 Mar 2011 17:18:32 +0200 Original-Received: from localhost ([127.0.0.1]:40797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5Jdl-0007j4-6u for guile-user@m.gmane.org; Thu, 31 Mar 2011 11:18:29 -0400 Original-Received: from [140.186.70.92] (port=35528 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5JdV-0007ir-Ql for guile-user@gnu.org; Thu, 31 Mar 2011 11:18:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5JdU-0006OI-9p for guile-user@gnu.org; Thu, 31 Mar 2011 11:18:13 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:40922 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5JdU-0006O9-7N; Thu, 31 Mar 2011 11:18:12 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 4E0BF33CA; Thu, 31 Mar 2011 11:20:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=1PB6uhPvqxpaugW508qDMmh/Fzg=; b=JrZl7I pd+xYK6Fpih+Y1dZQ587pAkuRpZsS41+3FbGvZuR2gJ07agQqZaxd4LbzEn70s0K Ap0DUeV3VPpEGsYNLe4eABdzSvlITTWnczSHKDjqdxPfPlUMnycymFYQSQIBTuqf vpaIKRR+7EQoJ31cjf2pZW7MrbpIjb7l3RItE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=tn57uWrhhBddzDATxuaG0hKS7uZMeZBO OmcgBPgiuJ0UrLYeUXmzJfon6tlDKN7ary3I8JknEilghoiMNwSCi4EP7ezVPIIY /RtqT1kcGFiTuyB+J8JQmkavBLutw/iocdo/4wFm3w8v4dTIFDyD5HTd5d2cywxV gEcXLAdylCE= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 16D2233C6; Thu, 31 Mar 2011 11:19:58 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 4208733C5; Thu, 31 Mar 2011 11:19:54 -0400 (EDT) In-Reply-To: (Johan Hidding's message of "Sat, 26 Mar 2011 10:53:52 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 56CF6A5A-5BAA-11E0-8A79-E8AB60295C12-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8565 Archived-At: On Sat 26 Mar 2011 10:53, Johan Hidding writes: > Hello Ludo', > I had a chat with Mark Weaver on IRC; he could reproduce the error. > The output shows basic GSL working, but GSL+CBLAS failing. I found a > way to -combine the static versions into a single shared library using > a trick I found on StackOverflow: > >> gcc -shared -o c.so -Wl,--whole-archive libgsl.a libgslcblas.a -Wl,--no-whole-archive > > Then the code works fine. A C program using GSL is normally compiled > using -lgsl -lgslcblas, as the CBLAS functionality is optional. Does that mean that gslcblas should be opened with RTDL_GLOBAL or something? Andy -- http://wingolog.org/