From owner-freebsd-toolchain@freebsd.org Tue Oct 29 21:54:03 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C969165C1A for ; Tue, 29 Oct 2019 21:54:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 472lj700v9z46bt for ; Tue, 29 Oct 2019 21:54:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id F28A7165C19; Tue, 29 Oct 2019 21:54:02 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F248A165C17 for ; Tue, 29 Oct 2019 21:54:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 472lj668FNz46br for ; Tue, 29 Oct 2019 21:54:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B7F6356B for ; Tue, 29 Oct 2019 21:54:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x9TLs2oI032473 for ; Tue, 29 Oct 2019 21:54:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x9TLs2m1032472 for toolchain@FreeBSD.org; Tue, 29 Oct 2019 21:54:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 241550] Base Clang can't compile trivial CUDA programs: error: no matching function for call to '__isnan' Date: Tue, 29 Oct 2019 21:54:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 21:54:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241550 --- Comment #5 from Dimitry Andric --- (In reply to Dimitry Andric from comment #4) Hmm, and that obviously doesn't build: --- isnan.pico --- /home/dim/src/head/lib/libc/gen/isnan.c:50:1: error: redefinition of '__isn= an' __isnan(double d) ^ /home/dim/src/head/lib/msun/src/math.h:197:1: note: previous definition is = here __isnan(__const double __x) ^ /home/dim/src/head/lib/libc/gen/isnan.c:59:1: error: redefinition of '__isn= anf' __isnanf(float f) ^ /home/dim/src/head/lib/msun/src/math.h:204:1: note: previous definition is = here __isnanf(__const float __x) ^ 2 errors generated. I'm unsure what a good way is to work around it... Maybe it's best to just add wrapper __isnan() and __isnanf() to the CUDA specific headers, since they are only used in that particular case. But th= at would only work for our own copy of clang, not for the ports version. Or use some special hack to not define __isnan() and __isnanf() in math.h if libc's isnan.c is compiled. :) --=20 You are receiving this mail because: You are the assignee for the bug.=