https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104146
Bug ID: 104146 Summary: FAIL: libgomp.c/../libgomp.c-c++-common/pr96390.c execution test Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- I. I'm running into execution fails in libgomp testing with nvptx accelerator: ... XPASS: libgomp.c/../libgomp.c-c++-common/pr96390.c (test for excess errors) FAIL: libgomp.c/../libgomp.c-c++-common/pr96390.c execution test XPASS: libgomp.c++/../libgomp.c-c++-common/pr96390.c (test for excess errors) FAIL: libgomp.c++/../libgomp.c-c++-common/pr96390.c execution test XPASS: libgomp.c++/pr96390.C (test for excess errors) FAIL: libgomp.c++/pr96390.C execution test ... In more detail: ... libgomp: Link error log ptxas application ptx input, line 89; error : Call to 'baz' requires call prototype ptxas application ptx input, line 89; error : Unknown symbol 'baz' ptxas fatal : Ptx assembly aborted due to errors libgomp: cuLinkAddData (ptx_code) error: a PTX JIT compilation failed libgomp: Cannot map target functions or variables (expected 1, have 4294967295) FAIL: libgomp.c/../libgomp.c-c++-common/pr96390.c execution test ... The test-case contains: ... /* { dg-require-alias "" } */ /* { dg-xfail-if "PR 97102/PR 97106 - .alias not (yet) supported for nvptx" { offload_target_nvptx } } */ ... The test-case expects a compilation failure, which doesn't happen because ptxas is not in the path, so the assembler skips verification, and we run into the execution failure instead. II. With this: ... $ ( export PATH=/home/vries/cuda/11.4.3/bin:$PATH; ./test.sh ) ... I get instead: ... XFAIL: libgomp.c/../libgomp.c-c++-common/pr96390.c (test for excess errors) UNRESOLVED: libgomp.c/../libgomp.c-c++-common/pr96390.c compilation failed to produce executable ... In more detail: ... XFAIL: libgomp.c/../libgomp.c-c++-common/pr96390.c (test for excess errors) Excess errors: ptxas /tmp/ccGQGD1l.o, line 90; error : Call to 'baz' requires call prototype ptxas /tmp/ccGQGD1l.o, line 90; error : Unknown symbol 'baz' ptxas fatal : Ptx assembly aborted due to errors nvptx-as: ptxas returned 255 exit status mkoffload: fatal error: /home/vries/oacc/trunk/install/offload-nvptx-none/bin//x86_64-pc-linux-gnu-accel-nvptx-none-gcc returned 1 exit status compilation terminated. lto-wrapper: fatal error: /home/vries/oacc/trunk/install/offload-nvptx-none/lib/gcc/x86_64-pc-linux-gnu/12.0.0//accel/nvptx-none/mkoffload returned 1 exit status compilation terminated. /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: error: lto-wrapper failed UNRESOLVED: libgomp.c/../libgomp.c-c++-common/pr96390.c compilation failed to produce executable...