From owner-freebsd-current@FreeBSD.ORG Fri Nov 9 19:38:42 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 06DE6B4C for ; Fri, 9 Nov 2012 19:38:42 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id AE91D8FC12 for ; Fri, 9 Nov 2012 19:38:41 +0000 (UTC) Received: from [192.168.0.6] (spaceball.home.andric.com [192.168.0.6]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 716DC5C59; Fri, 9 Nov 2012 20:38:40 +0100 (CET) Message-ID: <509D5BC3.9020704@FreeBSD.org> Date: Fri, 09 Nov 2012 20:38:43 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Steve Kargl Subject: Re: clang and static linking? References: <20121108231349.GA79485@troutmask.apl.washington.edu> <509D4548.7030806@FreeBSD.org> <20121109182810.GA61338@troutmask.apl.washington.edu> In-Reply-To: <20121109182810.GA61338@troutmask.apl.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2012 19:38:42 -0000 On 2012-11-09 19:28, Steve Kargl wrote: > On Fri, Nov 09, 2012 at 07:02:48PM +0100, Dimitry Andric wrote: ... >> Can you please post a reduced testcase? I cannot reproduce this error >> on -current, however much I tried. My testcases attempted calling >> isnan() and isnanf(), then I tried statically linking with libc and >> libm, but it worked just fine... > > I'll see what I can do. sasmp is a fairly large OpenMPI program. Sorry, never mind that. I found a simple testcase: #include int main(int argc, char *argv[]) { return isnan((double)argc) + isnan((float)argc); } Building with -lm -static will trigger the link error. I'm investigating where the problem is.