As reported by richi on IRC, libgomp is not build by default for amdgcn – and as Jakub pointed out, that's setup in configure{,.ac}.
(It is disabled by default but enabled for POSIX systems, nvptx This patch adds it – OK for the trunk? Tobias PS: While amdgcn was added in GCC 9, offloading is only supported in GCC 10 – hence, there is no backporting needed. 2020-03-09 Tobias Burnus <tob...@codesourcery.com> * configure.ac: Build libgomp by default for amdgcn. * configure: Regenerate. diff --git a/configure b/configure index cde03b70052..f428bc498f0 100755 --- a/configure +++ b/configure @@ -3213,7 +3213,7 @@ if test x$enable_libgomp = x ; then ;; *-*-darwin* | *-*-aix*) ;; - nvptx*-*-*) + nvptx*-*-*|amdgcn*-*-*) ;; *) noconfigdirs="$noconfigdirs target-libgomp" diff --git a/configure.ac b/configure.ac index df2af18f9bd..56c881770b8 100644 --- a/configure.ac +++ b/configure.ac @@ -512,7 +512,7 @@ if test x$enable_libgomp = x ; then ;; *-*-darwin* | *-*-aix*) ;; - nvptx*-*-*) + nvptx*-*-*|amdgcn*-*-*) ;; *) noconfigdirs="$noconfigdirs target-libgomp" ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
2020-03-09 Tobias Burnus <tob...@codesourcery.com> * configure.ac: Build libgomp by default for amdgcn. * configure: Regenerate. diff --git a/configure b/configure index cde03b70052..f428bc498f0 100755 --- a/configure +++ b/configure @@ -3213,7 +3213,7 @@ if test x$enable_libgomp = x ; then ;; *-*-darwin* | *-*-aix*) ;; - nvptx*-*-*) + nvptx*-*-*|amdgcn*-*-*) ;; *) noconfigdirs="$noconfigdirs target-libgomp" diff --git a/configure.ac b/configure.ac index df2af18f9bd..56c881770b8 100644 --- a/configure.ac +++ b/configure.ac @@ -512,7 +512,7 @@ if test x$enable_libgomp = x ; then ;; *-*-darwin* | *-*-aix*) ;; - nvptx*-*-*) + nvptx*-*-*|amdgcn*-*-*) ;; *) noconfigdirs="$noconfigdirs target-libgomp"