[Bug target/94282] New: [amdgcn] ld: error: undefined symbol: __gxx_personality_v0
tschwinge at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 23 14:09:37 GMT 2020
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
More information about the Gcc-bugs
mailing list