public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/94282] New: [amdgcn] ld: error: undefined symbol: __gxx_personality_v0
@ 2020-03-23 14:09 tschwinge at gcc dot gnu.org
  2020-03-26 14:14 ` [Bug target/94282] " burnus at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2020-03-23 14:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94282
           Summary: [amdgcn] ld: error: undefined symbol:
                    __gxx_personality_v0
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: openacc, openmp
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tschwinge at gcc dot gnu.org
                CC: ams at gcc dot gnu.org, jules at gcc dot gnu.org
  Target Milestone: ---
            Target: amdgcn

This is with GCC commit b73f69020f08208d2d969fcf8879bd294a6e3596 sources, with
commit b12fb08bd95d7dbb9fd6af120ee0b4c658a3deb1, and commit
65858e1869be4a54f8e0e2073a4aa99b15471273 cherry-picked, and PR94248 fixed with
Jakub's 'reg_overlap_mentioned_p' patch.

Relative to a GCC nvptx offloading configuration, when adding amdgcn
offloading, I see the following regression with already XFAILed
'libgomp.c++/../libgomp.c-c++-common/function-not-offloaded.c':

    ld: error: undefined symbol: foo()
    >>> referenced by /tmp/ccNzknBD.o:(main._omp_fn.0)
    >>> referenced by /tmp/ccNzknBD.o:(main._omp_fn.0)

    ld: error: undefined symbol: __gxx_personality_v0
    >>> referenced by /tmp/ccNzknBD.o:(.data+0x13)
    collect2: error: ld returned 1 exit status
    mkoffload: fatal error:
[...]/build-gcc/./gcc/x86_64-pc-linux-gnu-accel-amdgcn-amdhsa-gcc returned 1
exit status

The first error is expected (thus the XFAIL); the second error is not expected,
appears for the 'libgomp.c++' variant only.

This is somewhat related to PR92713.

Assuming that's not yet done, can something similar be done as done for nvptx,
where we force-disable all C++ exceptions code/tables generation, see PR86660
GCC trunk r263265, and then GCC trunk r263287?

Same for 'libgomp.oacc-*' (with all "execution test" etc. FAILs ignored as
"[n/a]"; "libgomp: device type gcn not supported" due to running on unsuitable
hardware):

    FAIL: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/routine-1.c
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0  (test
for excess errors)
    UNRESOLVED: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/routine-1.c
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0 
compilation failed to produce executable
    PASS: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/routine-1.c
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2  (test
for excess errors)
    [n/a]: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/routine-1.c
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2 
execution test

    FAIL: libgomp.oacc-c++/pr71959.C -DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0
-foffload=amdgcn-amdhsa  -O0  (test for excess errors)
    UNRESOLVED: libgomp.oacc-c++/pr71959.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0  compilation failed to produce
executable
    PASS: libgomp.oacc-c++/pr71959.C -DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0
-foffload=amdgcn-amdhsa  -O2  (test for excess errors)
    [n/a]: libgomp.oacc-c++/pr71959.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2  execution test

    FAIL: libgomp.oacc-c++/routine-1-auto.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0  (test for excess errors)
    UNRESOLVED: libgomp.oacc-c++/routine-1-auto.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0  compilation failed to produce
executable
    PASS: libgomp.oacc-c++/routine-1-auto.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2  (test for excess errors)
    [n/a]: libgomp.oacc-c++/routine-1-auto.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2  execution test

    FAIL: libgomp.oacc-c++/routine-1-template-auto.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0  (test for excess errors)
    UNRESOLVED: libgomp.oacc-c++/routine-1-template-auto.C
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0 
compilation failed to produce executable
    PASS: libgomp.oacc-c++/routine-1-template-auto.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2  (test for excess errors)
    [n/a]: libgomp.oacc-c++/routine-1-template-auto.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2  execution test

    FAIL: libgomp.oacc-c++/routine-1-template-trailing-return-type.C
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0  (test
for excess errors)
    UNRESOLVED: libgomp.oacc-c++/routine-1-template-trailing-return-type.C
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0 
compilation failed to produce executable
    PASS: libgomp.oacc-c++/routine-1-template-trailing-return-type.C
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2  (test
for excess errors)
    [n/a]: libgomp.oacc-c++/routine-1-template-trailing-return-type.C
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2 
execution test

    FAIL: libgomp.oacc-c++/routine-1-template.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0  (test for excess errors)
    UNRESOLVED: libgomp.oacc-c++/routine-1-template.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0  compilation failed to produce
executable
    PASS: libgomp.oacc-c++/routine-1-template.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2  (test for excess errors)
    [n/a]: libgomp.oacc-c++/routine-1-template.C -DACC_DEVICE_TYPE_gcn=1
-DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2  execution test

    FAIL: libgomp.oacc-c++/routine-1-trailing-return-type.C
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0  (test
for excess errors)
    UNRESOLVED: libgomp.oacc-c++/routine-1-trailing-return-type.C
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0 
compilation failed to produce executable
    PASS: libgomp.oacc-c++/routine-1-trailing-return-type.C
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2  (test
for excess errors)
    [n/a]: libgomp.oacc-c++/routine-1-trailing-return-type.C
-DACC_DEVICE_TYPE_gcn=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O2 
execution test

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

end of thread, other threads:[~2020-05-22 11:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 14:09 [Bug target/94282] New: [amdgcn] ld: error: undefined symbol: __gxx_personality_v0 tschwinge at gcc dot gnu.org
2020-03-26 14:14 ` [Bug target/94282] " burnus at gcc dot gnu.org
2020-03-26 17:53 ` pinskia at gcc dot gnu.org
2020-03-26 17:58 ` ams at gcc dot gnu.org
2020-04-22 16:54 ` tschwinge at gcc dot gnu.org
2020-04-23  8:49 ` burnus at gcc dot gnu.org
2020-04-23 13:54 ` ams at gcc dot gnu.org
2020-04-29  7:58 ` cvs-commit at gcc dot gnu.org
2020-05-05  9:40 ` burnus at gcc dot gnu.org
2020-05-22 11:50 ` tschwinge at gcc dot gnu.org

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