From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 94403389616A; Tue, 26 May 2020 08:28:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94403389616A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590481701; bh=VgtAcKMNYI2pw/0YRwhRXX6/3tAtuOIqDbuRH0Z4OYU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CS1S7fp9Lr7r79oD3nhdq0itQrb1Rs0kar56SS7pEhjae0UQiwH6RCmYgXe3NNlLV 3bwPrY/9V9mQgK8CTcxojBIRHoeVwtXf0vFu+bw+4qWE+wGMVRzV6hWCD5qK9VDeWZ WpzCvgYt53LtfyCOcTG27kbRmlmGXw4Q2Grvh7mM= From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/95316] Offload compilation fails when not all offload compilers are installed that were configured Date: Tue, 26 May 2020 08:28:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: openacc, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: tschwinge at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed bug_status cc cf_reconfirmed_on short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2020 08:28:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95316 Thomas Schwinge changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC| |jakub at gcc dot gnu.org, | |tschwinge at gcc dot gnu.o= rg Last reconfirmed| |2020-05-26 Summary|[10 Regression] binary |Offload compilation fails |built with -fopenacc fails |when not all offload |to run when not all offload |compilers are installed |compilers are installed |that were configured |that were configured | --- Comment #1 from Thomas Schwinge --- So the report is not "binary built with -fopenacc fails to run when [...]" = but rather "compilation with -fopenacc fails when [...]"? And, same for '-fope= nmp' for OpenMP 'target' offloading? So I'm changing the Summary to: "Offload compilation fails when [...]". (Please adjust if I've misunderstood.) I don't think this is a regression: wouldn't you've gotten the same behavior already before GCC 10 added GCN offloading, for example, when you had built= GCC with '--enable-offload-targets=3Dnvptx-none' but then didn't have the nvptx offloading compiler installed? I'm thus removing the "regression" tag.=20 (Please put it back if I've misunderstood.) I agree that the current driver (?) behavior is not ideal. I suppose the default offload targets configuration (unless overridden by '-foffload') sh= ould be made so that if an offload compiler is not present, it is silently skipp= ed.=20 That is, without printing a warning (as has been suggested), as that would produce a lot of noise. If an offload target has been explicitly requested= via '-foffload=3D[target]', then that should result in a hard error, of course,= if the respective offload compiler is not available.=