public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "doko at debian dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug other/95316] New: [10 Regression] binary built with -fopenacc fails to run when not all offload compilers are installed that were configured Date: Mon, 25 May 2020 15:56:41 +0000 [thread overview] Message-ID: <bug-95316-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95316 Bug ID: 95316 Summary: [10 Regression] binary built with -fopenacc fails to run when not all offload compilers are installed that were configured Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- This is usage regression; in gcc-9 building with gcc-9 -o mandel-accel mandel.c -Wall -O2 -fopenacc and running the mandel-accel binary works, if the nvptx offload compiler is installed. Building that with gcc-10 leads to: $ gcc-10 -o mandel-accel mandel.c -Wall -O3 -fopenacc lto-wrapper: fatal error: could not find accel/amdgcn-amdhsa/mkoffload in /usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/ (consider using ‘-B’) compilation terminated. /usr/bin/ld: error: lto-wrapper failed because gcc-10 was configured with more than one offload target. Installing all configured offload compilers works around it, or building for the offload targets explicitly (-foffload=nvptx-none). Expected behavior: Just print a warning when an offload compiler for a target cannot be found. Note: the packaged compilers for Debian/Ubuntu are gcc-10, gcc-10-offload-nvptx and gcc-10-offload-amdgcn. See https://launchpad.net/bugs/1878760
next reply other threads:[~2020-05-25 15:56 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-25 15:56 doko at debian dot org [this message] 2020-05-26 7:17 ` [Bug other/95316] " rguenth at gcc dot gnu.org 2020-05-26 8:28 ` [Bug other/95316] Offload compilation fails " tschwinge at gcc dot gnu.org 2020-05-26 12:42 ` doko at debian dot org 2020-07-23 6:51 ` rguenth at gcc dot gnu.org 2021-04-08 12:02 ` rguenth at gcc dot gnu.org 2022-06-28 10:40 ` jakub at gcc dot gnu.org 2023-07-07 8:53 ` rguenth at gcc dot gnu.org 2023-07-26 22:30 ` burnus@net-b.de
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-95316-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).