Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#71467 - NVCC Segfaults when compiling OpenCV with Contrib

Attached to Project: Arch Linux
Opened by Alexander Mai (halfpotato) - Thursday, 08 July 2021, 01:19 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 08 July 2021, 19:40 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:
NVCC Segfaults when compiling OpenCV when using gcc-11.1 and g++-11.1.

Additional info:
* g++ and gcc 11.1

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Mar_21_19:15:46_PDT_2021
Cuda compilation tools, release 11.3, V11.3.58
Build cuda_11.3.r11.3/compiler.29745058_0

Steps to reproduce:
Download OpenCV 4.5.3 and OpenCV Contrib 4.5.3. (https://github.com/opencv/opencv/releases/tag/4.5.3, https://github.com/opencv/opencv_contrib/releases)
Execute:
```
export library=`python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))"`
export default_exec=`which python3.9`
export python_exec=`which python`
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-4.5.3/modules -D PYTHON_EXECUTABLE=$python_exec -D PYTHON_DEFAULT_EXECUTABLE=$default_exec -D PYTHON_INCLUDE_DIRS=$include_dir -D PYTHON3_LIBRARY=$library -D BUILD_EXAMPLES=ON ..
make
```
This task depends upon

Comment by loqs (loqs) - Thursday, 08 July 2021, 22:04 GMT
 FS#70919  gcc 11 is not currently usable as the CUDA host compiler.

Loading...