From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D8F68385E006; Mon, 23 Mar 2020 14:09:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8F68385E006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584972577; bh=BYI93ygRhqrpPLJpZN3+6aRDYzdA7EjvpWJzrbZv3ZY=; h=From:To:Subject:Date:From; b=Yq9qarct1sWoF3NmL1Go/+S7GLMWGlYujvgynoHwLQyF0cZyUF6gjUPKyZiKjtZ6R 5qIGi4WOtPwOh12fqOrdIB599k2ZD4ebb5NhbCZAaIMlsrkPnixS6FTnhgJ2+sXxOb RWwx3oBfHcvh9G8IMdbi3RWkj5CuyXzhUyDIsQJQ= From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94282] New: [amdgcn] ld: error: undefined symbol: __gxx_personality_v0 Date: Mon, 23 Mar 2020 14:09:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: openacc, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: tschwinge at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 14:09:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94282 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, w= ith commit b12fb08bd95d7dbb9fd6af120ee0b4c658a3deb1, and commit 65858e1869be4a54f8e0e2073a4aa99b15471273 cherry-picked, and PR94248 fixed w= ith 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 expec= ted, 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 nvp= tx, where we force-disable all C++ exceptions code/tables generation, see PR866= 60 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 unsuita= ble hardware): FAIL: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/routine-1.c -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O0 (test for excess errors) UNRESOLVED: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/routine-1.c -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O0=20 compilation failed to produce executable PASS: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/routine-1.c -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O2 (test for excess errors) [n/a]: libgomp.oacc-c++/../libgomp.oacc-c-c++-common/routine-1.c -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O2=20 execution test FAIL: libgomp.oacc-c++/pr71959.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SH= ARED=3D0 -foffload=3Damdgcn-amdhsa -O0 (test for excess errors) UNRESOLVED: libgomp.oacc-c++/pr71959.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O0 compilation failed to = produce executable PASS: libgomp.oacc-c++/pr71959.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SH= ARED=3D0 -foffload=3Damdgcn-amdhsa -O2 (test for excess errors) [n/a]: libgomp.oacc-c++/pr71959.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O2 execution test FAIL: libgomp.oacc-c++/routine-1-auto.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O0 (test for excess error= s) UNRESOLVED: libgomp.oacc-c++/routine-1-auto.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O0 compilation failed to = produce executable PASS: libgomp.oacc-c++/routine-1-auto.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O2 (test for excess error= s) [n/a]: libgomp.oacc-c++/routine-1-auto.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O2 execution test FAIL: libgomp.oacc-c++/routine-1-template-auto.C -DACC_DEVICE_TYPE_gcn= =3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O0 (test for excess error= s) UNRESOLVED: libgomp.oacc-c++/routine-1-template-auto.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O0=20 compilation failed to produce executable PASS: libgomp.oacc-c++/routine-1-template-auto.C -DACC_DEVICE_TYPE_gcn= =3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O2 (test for excess error= s) [n/a]: libgomp.oacc-c++/routine-1-template-auto.C -DACC_DEVICE_TYPE_gcn= =3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O2 execution test FAIL: libgomp.oacc-c++/routine-1-template-trailing-return-type.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O0 (test for excess errors) UNRESOLVED: libgomp.oacc-c++/routine-1-template-trailing-return-type.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O0=20 compilation failed to produce executable PASS: libgomp.oacc-c++/routine-1-template-trailing-return-type.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O2 (test for excess errors) [n/a]: libgomp.oacc-c++/routine-1-template-trailing-return-type.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O2=20 execution test FAIL: libgomp.oacc-c++/routine-1-template.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O0 (test for excess error= s) UNRESOLVED: libgomp.oacc-c++/routine-1-template.C -DACC_DEVICE_TYPE_gcn= =3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O0 compilation failed to = produce executable PASS: libgomp.oacc-c++/routine-1-template.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O2 (test for excess error= s) [n/a]: libgomp.oacc-c++/routine-1-template.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -O2 execution test FAIL: libgomp.oacc-c++/routine-1-trailing-return-type.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O0 (test for excess errors) UNRESOLVED: libgomp.oacc-c++/routine-1-trailing-return-type.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O0=20 compilation failed to produce executable PASS: libgomp.oacc-c++/routine-1-trailing-return-type.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O2 (test for excess errors) [n/a]: libgomp.oacc-c++/routine-1-trailing-return-type.C -DACC_DEVICE_TYPE_gcn=3D1 -DACC_MEM_SHARED=3D0 -foffload=3Damdgcn-amdhsa -= O2=20 execution test=