[FFmpeg-trac] #7782(build system:new): Enabling the option --enable-cuda-nvcc results in a build failure.
FFmpeg
trac at avcodec.org
Sun Mar 10 02:54:04 EET 2019
#7782: Enabling the option --enable-cuda-nvcc results in a build failure.
-------------------------------------+-------------------------------------
Reporter: Brainiarc7 | Type: defect
Status: new | Priority: normal
Component: build | Version: git-
system | master
Keywords: cuda,nvcc | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
'''Summary of the bug:'''
Building FFmpeg with the {{{--enable-cuda-nvcc}}} option results in a
build failure.
'''How to reproduce:'''
FFmpeg was configured as such:
{{{
cd ~/ffmpeg_sources
git clone https://github.com/FFmpeg/FFmpeg -b master
cd FFmpeg
PATH="$HOME/bin:$PATH"
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig:/opt/intel/mediasdk/lib/pkgconfig"
./configure \
--pkg-config-flags="--static" \
--prefix="$HOME/bin" \
--bindir="$HOME/bin" \
--extra-cflags="-I$HOME/bin/include" \
--extra-ldflags="-L$HOME/bin/lib" \
--enable-cuda-nvcc \
--enable-cuvid \
--enable-libnpp \
--extra-cflags="-I/usr/local/cuda/include/" \
--extra-ldflags=-L/usr/local/cuda/lib64/ \
--enable-nvenc \
--extra-cflags="-I/opt/intel/mediasdk/include" \
--extra-ldflags="-L/opt/intel/mediasdk/lib" \
--extra-ldflags="-L/opt/intel/mediasdk/plugins" \
--enable-libmfx \
--enable-libass \
--enable-vaapi \
--disable-debug \
--enable-libvorbis \
--enable-libvpx \
--enable-libdrm \
--enable-opencl \
--enable-gpl \
--cpu=native \
--enable-opengl \
--enable-libfdk-aac \
--enable-libx265 \
--enable-openssl \
--extra-libs="-lpthread -lm" \
--enable-nonfree
PATH="$HOME/bin:$PATH" make -j$(nproc)
make -j$(nproc) install
hash -r
}}}
The build fails at:
{{{
NVCC libavfilter/vf_thumbnail_cuda.ptx
In file included from libavfilter/vf_thumbnail_cuda.c:25:0:
libavfilter/vf_thumbnail_cuda.c: In function ‘filter_frame’:
libavfilter/vf_thumbnail_cuda.c:266:18: error: ‘CudaFunctions {aka struct
CudaFunctions}’ has no member named ‘cuMemsetD8Async’; did you mean
‘cuMemcpy2DAsync’?
CHECK_CU(cu->cuMemsetD8Async(s->data, 0, HIST_SIZE * sizeof(int),
s->cu_stream));
^
./libavutil/cuda_check.h:62:114: note: in definition of macro
‘FF_CUDA_CHECK_DL’
#define FF_CUDA_CHECK_DL(avclass, cudl, x) ff_cuda_check(avclass,
cudl->cuGetErrorName, cudl->cuGetErrorString, (x), #x)
^
libavfilter/vf_thumbnail_cuda.c:266:5: note: in expansion of macro
‘CHECK_CU’
CHECK_CU(cu->cuMemsetD8Async(s->data, 0, HIST_SIZE * sizeof(int),
s->cu_stream));
^~~~~~~~
CC libavfilter/vf_tile.o
ffbuild/common.mak:60: recipe for target 'libavfilter/vf_thumbnail_cuda.o'
failed
make: *** [libavfilter/vf_thumbnail_cuda.o] Error 1
make: *** Waiting for unfinished jobs....
}}}
The build log is attached below.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7782>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list