https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81729
Bug ID: 81729 Summary: [nvptx] Invalid initial value expression Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- A number of test-cases fails with 'nvptx-run: cuLinkAddData failed: no kernel image is available for execution on the device (CUDA_ERROR_NO_BINARY_FOR_GPU, 209)': ... $ grep -A1 CUDA_ERROR_NO_BINARY_FOR_GPU build-gcc/gcc/testsuite/gcc/gcc.log | grep ^FAIL: FAIL: gcc.c-torture/execute/921110-1.c -O0 execution test FAIL: gcc.c-torture/execute/921110-1.c -O1 execution test FAIL: gcc.c-torture/execute/921110-1.c -O2 execution test FAIL: gcc.c-torture/execute/921110-1.c -O3 -g execution test FAIL: gcc.c-torture/execute/921110-1.c -Os execution test FAIL: gcc.c-torture/execute/930608-1.c -O0 execution test FAIL: gcc.c-torture/execute/930608-1.c -O1 execution test FAIL: gcc.c-torture/execute/930608-1.c -O2 execution test FAIL: gcc.c-torture/execute/930608-1.c -O3 -g execution test FAIL: gcc.c-torture/execute/930608-1.c -Os execution test FAIL: gcc.c-torture/execute/bcp-1.c -O0 execution test FAIL: gcc.c-torture/execute/bcp-1.c -O1 execution test FAIL: gcc.c-torture/execute/bcp-1.c -O2 execution test FAIL: gcc.c-torture/execute/bcp-1.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test FAIL: gcc.c-torture/execute/bcp-1.c -O3 -g execution test FAIL: gcc.c-torture/execute/bcp-1.c -Os execution test FAIL: gcc.c-torture/execute/struct-ret-1.c -O0 execution test FAIL: gcc.c-torture/execute/struct-ret-1.c -O1 execution test FAIL: gcc.c-torture/execute/struct-ret-1.c -O2 execution test FAIL: gcc.c-torture/execute/struct-ret-1.c -O3 -g execution test FAIL: gcc.c-torture/execute/struct-ret-1.c -Os execution test FAIL: gcc.c-torture/execute/ieee/fp-cmp-5.c execution, -O0 FAIL: gcc.c-torture/execute/ieee/fp-cmp-5.c execution, -O1 FAIL: gcc.c-torture/execute/ieee/fp-cmp-5.c execution, -O2 FAIL: gcc.c-torture/execute/ieee/fp-cmp-5.c execution, -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions FAIL: gcc.c-torture/execute/ieee/fp-cmp-5.c execution, -O3 -g FAIL: gcc.c-torture/execute/ieee/fp-cmp-5.c execution, -Os FAIL: gcc.c-torture/execute/ieee/fp-cmp-5.c execution, -Og -g FAIL: gcc.c-torture/execute/ieee/fp-cmp-8.c execution, -O0 FAIL: gcc.c-torture/execute/ieee/fp-cmp-8.c execution, -O1 FAIL: gcc.c-torture/execute/ieee/fp-cmp-8.c execution, -O2 FAIL: gcc.c-torture/execute/ieee/fp-cmp-8.c execution, -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions FAIL: gcc.c-torture/execute/ieee/fp-cmp-8.c execution, -O3 -g FAIL: gcc.c-torture/execute/ieee/fp-cmp-8.c execution, -Os FAIL: gcc.c-torture/execute/ieee/fp-cmp-8.c execution, -Og -g FAIL: gcc.c-torture/execute/ieee/fp-cmp-8f.c execution, -O0 FAIL: gcc.c-torture/execute/ieee/fp-cmp-8f.c execution, -O1 FAIL: gcc.c-torture/execute/ieee/fp-cmp-8f.c execution, -O2 FAIL: gcc.c-torture/execute/ieee/fp-cmp-8f.c execution, -O3 -g FAIL: gcc.c-torture/execute/ieee/fp-cmp-8f.c execution, -Os FAIL: gcc.c-torture/execute/ieee/fp-cmp-8f.c execution, -Og -g FAIL: gcc.c-torture/execute/ieee/fp-cmp-8l.c execution, -O0 FAIL: gcc.c-torture/execute/ieee/fp-cmp-8l.c execution, -O1 FAIL: gcc.c-torture/execute/ieee/fp-cmp-8l.c execution, -O2 FAIL: gcc.c-torture/execute/ieee/fp-cmp-8l.c execution, -O3 -g FAIL: gcc.c-torture/execute/ieee/fp-cmp-8l.c execution, -Os FAIL: gcc.c-torture/execute/ieee/fp-cmp-8l.c execution, -Og -g FAIL: gcc.c-torture/execute/ieee/pr38016.c execution, -O0 FAIL: gcc.c-torture/execute/ieee/pr38016.c execution, -O1 FAIL: gcc.c-torture/execute/ieee/pr38016.c execution, -O2 FAIL: gcc.c-torture/execute/ieee/pr38016.c execution, -O3 -g FAIL: gcc.c-torture/execute/ieee/pr38016.c execution, -Os FAIL: gcc.c-torture/execute/ieee/pr38016.c execution, -Og -g FAIL: gcc.dg/c11-noreturn-2.c execution test FAIL: gcc.dg/ipa/iinline-3.c execution test FAIL: gcc.dg/torture/pr43879_1.c -O0 execution test FAIL: gcc.dg/torture/pr43879_1.c -O1 execution test FAIL: gcc.dg/torture/pr43879_1.c -O2 execution test FAIL: gcc.dg/torture/pr43879_1.c -O3 -g execution test FAIL: gcc.dg/torture/pr43879_1.c -Os execution test FAIL: gcc.dg/torture/pr55305.c -O0 execution test FAIL: gcc.dg/torture/pr55305.c -O1 execution test FAIL: gcc.dg/torture/pr55305.c -O2 execution test FAIL: gcc.dg/torture/pr55305.c -O3 -g execution test FAIL: gcc.dg/torture/pr55305.c -Os execution test FAIL: gcc.dg/tree-ssa/20040326-2.c execution test ... Looking in more detail at the first, it seems we're generating an Invalid initial value expression: ... PASS: gcc.c-torture/execute/921110-1.c -O0 (test for excess errors) spawn nvptx-none-run ./921110-1.exe^M ptxas application ptx input, line 14; fatal : Invalid initial value expression^M ptxas fatal : Ptx assembly aborted due to errors^M nvptx-run: cuLinkAddData failed: no kernel image is available for execution on the device (CUDA_ERROR_NO_BINARY_FOR_GPU, 209)^M FAIL: gcc.c-torture/execute/921110-1.c -O0 execution test ...