[FFmpeg-trac] #7743(avfilter:new): [git master] Build error: ‘tcuGetErrorName’ undeclared (and others)

FFmpeg trac at avcodec.org
Mon Feb 18 02:17:15 EET 2019


#7743: [git master] Build error: ‘tcuGetErrorName’ undeclared (and others)
----------------------------------+--------------------------------------
             Reporter:  bermond   |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avfilter  |                  Version:  git-master
             Keywords:  cuda      |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 I'm getting the following error when trying to build ffmpeg git master:
 {{{
 CC      libavfilter/vf_scale_cuda.o
 In file included from libavfilter/vf_scale_cuda.c:31:
 ./libavutil/cuda_check.h: In function ‘ff_cuda_check’:
 ./libavutil/cuda_check.h:38:7: error: ‘tcuGetErrorName’ undeclared (first
 use in this function); did you mean ‘cuGetErrorName’?
      ((tcuGetErrorName *)cuGetErrorName_fn)(err, &err_name);
        ^~~~~~~~~~~~~~~
        cuGetErrorName
 ./libavutil/cuda_check.h:38:7: note: each undeclared identifier is
 reported only once for each function it appears in
 ./libavutil/cuda_check.h:38:24: error: expected expression before ‘)’
 token
      ((tcuGetErrorName *)cuGetErrorName_fn)(err, &err_name);
                         ^
 ./libavutil/cuda_check.h:39:7: error: ‘tcuGetErrorString’ undeclared
 (first use in this function); did you mean ‘cuGetErrorString’?
      ((tcuGetErrorString *)cuGetErrorString_fn)(err, &err_string);
        ^~~~~~~~~~~~~~~~~
        cuGetErrorString
 ./libavutil/cuda_check.h:39:26: error: expected expression before ‘)’
 token
      ((tcuGetErrorString *)cuGetErrorString_fn)(err, &err_string);
                           ^
 make: *** [ffbuild/common.mak:60: libavfilter/vf_scale_cuda.o] Error 1
 }}}

 * A git bisect shows that this is caused by commit
 [https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/15c6390139096b7e7634bf0f6aaab1cd8b3aa509
 15c6390].

 * Possibly related ticket: #7735.

 How to reproduce:
 {{{
 $ git clone https://git.ffmpeg.org/ffmpeg.git
 $ cd ffmpeg
 $ ./configure --prefix='/usr' --extra-cflags='-I/opt/cuda/include'
 --extra-ldflags='-L/opt/cuda/lib64' --enable-nonfree --enable-cuda-sdk
 $ make -j1
 }}}

 '''System Information:'''
 * '''OS:''' Arch Linux x86_64
 * '''ffmpeg:''' git master
 * '''Compiler:''' gcc 8.2.1
 * '''CUDA:''' 10.0.130

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7743>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list