Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 724468

Summary: sci-chemistry/gromacs-2019.5-r1: doesn't honor NVCCFLAGS
Product: Gentoo Linux Reporter: Pacho Ramos <pacho>
Component: Current packagesAssignee: Alexey Shvetsov <alexxy>
Status: RESOLVED WONTFIX    
Severity: normal CC: sci-chemistry
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pacho Ramos gentoo-dev 2020-05-21 16:43:23 UTC
I see that, even if gromacs ebuild calls cuda_sanitize, it still fails if I don't manually switch gcc version before:
-- Adding work-around for issue compiling CUDA code with glibc 2.23 string.h
-- Check for working NVCC/C++ compiler combination with nvcc '/opt/cuda/bin/nvcc'
-- Check for working NVCC/C compiler combination - broken
-- /opt/cuda/bin/nvcc standard output: ''
-- /opt/cuda/bin/nvcc standard error:  'In file included from /opt/cuda/bin/../targets/x86_64-linux/include/cuda_runtime.h:83,
                 from <command-line>:
/opt/cuda/bin/../targets/x86_64-linux/include/crt/host_config.h:138:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
  138 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
      |  ^~~~~
'
CMake Error at cmake/gmxManageNvccConfig.cmake:192 (message):
  NVCC/C++ compiler combination does not seem to be supported.  CUDA
  frequently does not support the latest versions of the host compiler, so
  you might want to try an earlier C++ compiler version and make sure your
  CUDA compiler and driver are as recent as possible.
Call Stack (most recent call first):
  cmake/gmxManageGPU.cmake:204 (include)
  CMakeLists.txt:590 (gmx_gpu_setup)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/sci-chemistry/gromacs-2019.5-r1/work/gromacs-2019.5_float/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/sci-chemistry/gromacs-2019.5-r1/work/gromacs-2019.5_float/CMakeFiles/CMakeError.log".

I have tried to export CUDA_NVCC_FLAGS="${NVCCFLAGS}" && export GMX_SET_CUDA_NVCC_FLAGS="${NVCCFLAGS}" but still fails :(

Thanks
Comment 1 Alexey Shvetsov archtester gentoo-dev 2020-07-10 10:34:51 UTC
It will not work as expected. Even if you specify it via cmake env you get issues with gcc/g++/nvcc abi. So its better to use right combination of nvcc/gcc