https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85166
Bug ID: 85166 Summary: [ntptx, libgfortran] Libgomp fortran tests using stop in offloaded fns fail to compile Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- Atm for nvptx offloading we have lots of fortran tests (both openmp and openacc) fail like this: ... unresolved symbol _gfortran_stop_numeric FAIL: libgomp.fortran/examples-4/async_target-2.f90 -O0 (test for excess errors) UNRESOLVED: libgomp.fortran/examples-4/async_target-2.f90 -O0 compilation failed to produce executable ... Recently "[libgomp testsuite] Replace non-standard call abort by STOP n" was committed. In libgfortran/Makefile.in we have: ... @LIBGFOR_MINIMAL_FALSE@runtime/stop.c ... so the function _gfortran_stop_numeric contained in stop.c doesn't get build for LIBGFOR_MINIMAL. The LIBGFOR_MINIMAL setting is only active for nvptx: ... if test "x${target_cpu}" = xnvptx; then LIBGFOR_MINIMAL_TRUE= LIBGFOR_MINIMAL_FALSE='#' else LIBGFOR_MINIMAL_TRUE='#' LIBGFOR_MINIMAL_FALSE= fi ...