public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tobias.weinzierl at durham dot ac.uk" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96835] Constructor in offload template class Date: Mon, 05 Oct 2020 16:14:22 +0000 [thread overview] Message-ID: <bug-96835-4-hinhLLOz5v@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-96835-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96835 --- Comment #3 from Tobias Weinzierl <tobias.weinzierl at durham dot ac.uk> --- The full compilation error is + g++-10 -fopenmp -foffload=nvptx-none bug.cpp -o bug ptxas /tmp/cc1XobxJ.o, line 253; error : Illegal operand type to instruction 'ld' ptxas /tmp/cc1XobxJ.o, line 266; error : Label expected for argument 0 of instruction 'call' ptxas /tmp/cc1XobxJ.o, line 266; error : Function '_ZN6vectorILi4EEC1ERKi' not declared in this scope ptxas /tmp/cc1XobxJ.o, line 266; fatal : Call target not recognized ptxas fatal : Ptx assembly aborted due to errors nvptx-as: ptxas returned 255 exit status mkoffload: fatal error: x86_64-linux-gnu-accel-nvptx-none-gcc-10 returned 1 exit status compilation terminated. lto-wrapper: fatal error: /usr/lib/gcc/x86_64-linux-gnu/10//accel/nvptx-none/mkoffload returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status As long as the constructor is not used within the map region, the code translates fine.
next prev parent reply other threads:[~2020-10-05 16:14 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-08-28 9:40 [Bug target/96835] New: " tobias.weinzierl at durham dot ac.uk 2020-08-28 16:07 ` [Bug target/96835] " jakub at gcc dot gnu.org 2020-10-05 16:12 ` tobias.weinzierl at durham dot ac.uk 2020-10-05 16:14 ` tobias.weinzierl at durham dot ac.uk [this message] 2020-10-09 10:52 ` tobias.weinzierl at durham dot ac.uk 2020-11-09 12:02 ` redi at gcc dot gnu.org 2020-11-09 13:24 ` burnus at gcc dot gnu.org 2020-11-17 17:33 ` tobias.weinzierl at durham dot ac.uk 2020-11-17 17:35 ` tobias.weinzierl at durham dot ac.uk
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-96835-4-hinhLLOz5v@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).