public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/63979] New: [openacc] undefined reference to main._omp_fn.x
@ 2014-11-19 20:03 vries at gcc dot gnu.org
  2014-11-19 20:05 ` [Bug other/63979] " vries at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2014-11-19 20:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63979

            Bug ID: 63979
           Summary: [openacc] undefined reference to main._omp_fn.x
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org

Created attachment 34041
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34041&action=edit
asyncwait-2.c

When compiling an openacc test-case with the gomp-4_0-branch, I run into:
...
$ ./lean-c/install/bin/gcc asyncwait-2.c -fopenacc -flto --param
lto-min-partition=900
/tmp/ccRhKrwN.ltrans0.ltrans.o:(__gnu_offload_funcs+0x0): undefined reference
to `main._omp_fn.20'
/tmp/ccRhKrwN.ltrans0.ltrans.o:(__gnu_offload_funcs+0x8): undefined reference
to `main._omp_fn.19'
/tmp/ccRhKrwN.ltrans1.ltrans.o: In function `main':
ccRhKrwN.ltrans1.o:(.text+0xe19): undefined reference to `cuStreamCreate'
collect2: error: ld returned 1 exit status
...

Note that I'm using patch
https://gcc.gnu.org/ml/gcc-patches/2014-11/msg00085.html on top of
gomp-4_0-branch, otherwise any openacc testcase will fail in lto when
processing openacc builtins.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-11-20 23:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-19 20:03 [Bug other/63979] New: [openacc] undefined reference to main._omp_fn.x vries at gcc dot gnu.org
2014-11-19 20:05 ` [Bug other/63979] " vries at gcc dot gnu.org
2014-11-20 11:09 ` iverbin at gmail dot com
2014-11-20 15:27 ` bernds at gcc dot gnu.org
2014-11-20 17:27 ` vries at gcc dot gnu.org
2014-11-20 17:34 ` iverbin at gmail dot com
2014-11-20 21:38 ` vries at gcc dot gnu.org
2014-11-20 21:39 ` vries at gcc dot gnu.org
2014-11-20 21:42 ` vries at gcc dot gnu.org
2014-11-20 23:39 ` iverbin at gmail dot com

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).