Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608140 - =media-libs/opencv-3.1.0-r7[cuda] fails to build with FEATURES=ccache
Summary: =media-libs/opencv-3.1.0-r7[cuda] fails to build with FEATURES=ccache
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-03 17:04 UTC by Daniel M. Weeks
Modified: 2017-02-11 12:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel M. Weeks 2017-02-03 17:04:00 UTC
opencv[cuda] fails when FEATURES includes ccache. It succeeded with FEATURES=-ccache.

-- Generating dependency file: /tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0_build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o.NVCC-depend
/opt/cuda/bin/nvcc -M -D__CUDACC__ /tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0/modules/core/src/cuda/gpu_mat.cu -o /tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0_build/modul
es/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o.NVCC-depend -ccbin /usr/bin/ccache -m64 -D__OPENCV_BUILD=1 -Xcompiler ,\"-O2\",\"-pipe\",\"-msse\",\"-msse2\",\"-msse
3\",\"-mmmx\",\"-mpopcnt\",\"-mcx16\",\"-mfxsr\",\"-msahf\",\"-fsigned-char\",\"-W\",\"-Wall\",\"-Werror=return-type\",\"-Werror=non-virtual-dtor\",\"-Werror=address\",\"-Werror=sequence-point\",\"-
Wformat\",\"-Werror=format-security\",\"-Wmissing-declarations\",\"-Winit-self\",\"-Wpointer-arith\",\"-Wno-narrowing\",\"-fdiagnostics-show-option\",\"-Wno-long-long\",\"-pthread\",\"-fomit-frame-p
ointer\",\"-msse\",\"-msse2\",\"-mno-avx\",\"-msse3\",\"-mno-ssse3\",\"-mno-sse4.1\",\"-mno-sse4.2\",\"-ffunction-sections\",\"-fvisibility=hidden\",\"-fopenmp\",\"-Wno-undef\",\"-Wno-enum-compare\"
,\"-Wno-unused-function\",\"-Wno-shadow\",\"-Wno-unused-but-set-variable\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_20,code=sm_21 -gencode arch=compute_30,code=sm_30 -gencode arch=c
ompute_35,code=sm_35 -gencode arch=compute_30,code=compute_30 -Xcompiler -DCVAPI_EXPORTS -Xcompiler -fPIC -DNVCC -I/opt/cuda/include -I/tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0_build -I/usr/include/eigen3 -I/tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0/modules/core/include -I/tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0/modules/core/src -I/tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0_build/modules/core -I/tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0/modules/cudev/include -I/usr/include -I/opt/cuda/include
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/usr/bin/ccache: invalid option -- 'E'
Usage:
    ccache [options]
    ccache compiler [compiler options]
    compiler [compiler options]          (via symbolic link)

Options:
    -c, --cleanup         delete old files and recalculate size counters
                          (normally not needed as this is done automatically)
    -C, --clear           clear the cache completely (except configuration)
    -F, --max-files=N     set maximum number of files in cache to N (use 0 for
                          no limit)
    -M, --max-size=SIZE   set maximum size of cache to SIZE (use 0 for no
                          limit); available suffixes: k, M, G, T (decimal) and
                          Ki, Mi, Gi, Ti (binary); default suffix: G
    -o, --set-config=K=V  set configuration key K to value V
    -p, --print-config    print current configuration options
    -s, --show-stats      show statistics summary
    -z, --zero-stats      zero statistics counters

    -h, --help            print this help text
    -V, --version         print version and copyright information

See also <https://ccache.samba.org>.
CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:208 (message):
  Error generating
  /tmp/portage/media-libs/opencv-3.1.0-r7/work/opencv-3.1.0_build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o


make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:65: modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1

Reproducible: Always
Comment 1 Jonathan Scruggs (RETIRED) gentoo-dev 2017-02-11 10:24:09 UTC
This looks like something to do with CUDA. Does it work if you compile without it? If so, then the only thing that can be done is to restrict cache use. Not much we can do about it then.
Comment 2 Amy Liffey gentoo-dev 2017-02-11 12:20:58 UTC
Please use FEATURES=-ccache. 

If you want us to do something about it please provide full build.log and emerge --info and reopen bug.

Thank you