With CUDA 10.2 installed on the system, the compiler issues a warning about unknown CUDA version. The warning message makes the LIBOMP_HAVE_VERSION_SCRIPT_FLAG test returns false. As a result, building libomp fails.
/opt/rh/devtoolset-8/root/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../bin/ld: ../../../../lib/libomp.so: version node not found for symbol omp_get_num_places_@@VERSION /opt/rh/devtoolset-8/root/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../bin/ld: failed to set dynamic section sizes: Bad value
This patch is to make the libomp_check_linker_flag function called in the LIBOMP_HAVE_VERSION_SCRIPT_FLAG test more tolerable with the warning message.