4re / vapoursynth-portage

Unofficial portage tree with all VapourSynth related ebuilds
25 stars 11 forks source link

Can't build vapoursynth-l-smash-works with latest ffmpeg #63

Closed Kagami closed 6 years ago

Kagami commented 7 years ago

Just built https://github.com/FFmpeg/FFmpeg/commit/acf70639fb534a4ae9b1e4c76153f0faa0bda190 vapoursynth-l-smash-works-9999 throws this error:

video_output.c: In function 'get_vs_output_pixel_format':
video_output.c:263:13: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
         if( strcasecmp( format_name, format_table[i].format_name ) == 0 )
             ^~~~~~~~~~
video_output.c: In function 'vs_check_dr_available':
video_output.c:571:38: error: 'CODEC_CAP_DR1' undeclared (first use in this function)
     if( !(ctx->codec->capabilities & CODEC_CAP_DR1) )
                                      ^~~~~~~~~~~~~
video_output.c:571:38: note: each undeclared identifier is reported only once for each function it appears in
make: *** [GNUmakefile:27: video_output.o] Error 1
make: *** Waiting for unfinished jobs....
../common/libavsmash.c: In function 'queue_extradata':
../common/libavsmash.c:542:65: error: 'FF_INPUT_BUFFER_PADDING_SIZE' undeclared (first use in this function)
         uint8_t *temp = (uint8_t *)av_mallocz( extradata_size + FF_INPUT_BUFFER_PADDING_SIZE );
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/libavsmash.c:542:65: note: each undeclared identifier is reported only once for each function it appears in
../common/libavsmash.c: In function 'get_sample':
../common/libavsmash.c:766:44: error: 'FF_INPUT_BUFFER_PADDING_SIZE' undeclared (first use in this function)
     memset( pkt->data + sample->length, 0, FF_INPUT_BUFFER_PADDING_SIZE );
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/libavsmash.c: In function 'libavsmash_flush_buffers':
../common/libavsmash.c:810:6: warning: 'refcounted_frames' is deprecated [-Wdeprecated-declarations]
      || open_decoder( &ctx, codecpar, codec, config->ctx->thread_count, config->ctx->refcounted_frames ) < 0 )
      ^~
In file included from /usr/include/libavformat/avformat.h:319:0,
                 from ../common/libavsmash.c:33:
/usr/include/libavcodec/avcodec.h:2306:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
../common/libavsmash.c: In function 'update_configuration':
../common/libavsmash.c:860:5: warning: 'refcounted_frames' is deprecated [-Wdeprecated-declarations]
     const int          refcounted_frames = config->ctx->refcounted_frames;
     ^~~~~
In file included from /usr/include/libavformat/avformat.h:319:0,
                 from ../common/libavsmash.c:33:
/usr/include/libavcodec/avcodec.h:2306:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
../common/libavsmash.c: In function 'initialize_decoder_configuration':
../common/libavsmash.c:1027:71: error: 'FF_INPUT_BUFFER_PADDING_SIZE' undeclared (first use in this function)
     config->input_buffer = (uint8_t *)av_mallocz( input_buffer_size + FF_INPUT_BUFFER_PADDING_SIZE );
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [GNUmakefile:27: ../common/libavsmash.o] Error 1
../common/lwlibav_dec.c: In function 'lwlibav_flush_buffers':
../common/lwlibav_dec.c:52:5: warning: 'refcounted_frames' is deprecated [-Wdeprecated-declarations]
     if( open_decoder( &ctx, codecpar, codec, dhp->ctx->thread_count, dhp->ctx->refcounted_frames ) < 0 )
     ^~
In file included from /usr/include/libavformat/avformat.h:319:0,
                 from ../common/lwlibav_dec.c:29:
/usr/include/libavcodec/avcodec.h:2306:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
../common/lwlibav_dec.c: In function 'lwlibav_update_configuration':
../common/lwlibav_dec.c:90:5: warning: 'refcounted_frames' is deprecated [-Wdeprecated-declarations]
     const int          refcounted_frames = dhp->ctx->refcounted_frames;
     ^~~~~
In file included from /usr/include/libavformat/avformat.h:319:0,
                 from ../common/lwlibav_dec.c:29:
/usr/include/libavcodec/avcodec.h:2306:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
../common/lwlibav_dec.c:112:77: error: 'FF_INPUT_BUFFER_PADDING_SIZE' undeclared (first use in this function)
         codecpar->extradata = (uint8_t *)av_malloc( entry->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE );
                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/lwlibav_dec.c:112:77: note: each undeclared identifier is reported only once for each function it appears in
make: *** [GNUmakefile:27: ../common/lwlibav_dec.o] Error 1
 * ERROR: media-plugins/vapoursynth-l-smash-works-9999::vapoursynth failed (compile phase):
Kagami commented 7 years ago

Also error for vapoursynth-d2vsource. Not sure if this a separate bug.

4re commented 7 years ago

emerge ffmpeg --info? Everything builds fine here. :/

Kagami commented 7 years ago

I tried with few previous ffmpeg commits and seems like it's not related to latest ffmpeg, just I can't build on my system anymore for some reason.

Portage 2.3.8 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-6.4.0, glibc-2.23-r4, 4.11.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.11.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3820_CPU_@_3.60GHz-with-gentoo-2.4.1
KiB Mem:    32894108 total,  26149664 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 24 Oct 2017 00:45:01 +0000
Head commit of repository gentoo: abec7c3e3c1183f54e8b84947f346e4f4331f75a
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

vapoursynth
    location: /var/lib/layman/vapoursynth
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/build/"
USE="X acl alsa amd64 berkdb bzip2 cli cracklib crypt cuda cxx dri fontconfig fortran gdbm gif iconv int64 ipv6 jpeg modules multilib ncurses nptl opencl opengl openmp pam pcre png readline seccomp session ssl svg tcpd tiff truetype unicode vdpau xattr xcb xv zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 aes" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-video/ffmpeg-9999::gentoo was built with the following:
USE="X alsa bzip2 encode fontconfig gpl hardcoded-tables iconv libass mp3 network nvenc opengl openssl opus postproc sdl svg threads truetype vdpau vorbis vpx webp x264 x265 xcb zimg zlib (-altivec) -amr -amrenc -bluray -bs2b -cdio -celt -chromaprint -chromium -cpudetection -debug -doc -fdk -flite -frei0r -fribidi -gcrypt -gme -gmp -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libcaca -libilbc -librtmp -libsoxr -libv4l -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -openal -openh264 -oss -pic -pulseaudio -rubberband -samba -snappy -speex -ssh -static-libs -test -theora -twolame -v4l -vaapi -wavpack -xvid -zeromq -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -avx2 -fma3 -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher"
CFLAGS="-march=native -O2 -pipe -I/opt/cuda/include -I/opt/cuda/include -I/opt/cuda/include -I/opt/cuda/include -I/opt/cuda/include -I/opt/cuda/include -I/opt/cuda/include"
4re commented 7 years ago

I see, live ebuild for ffmpeg, that's the problem. Plugins failing to compile due to constants no longer there should be fixed upstream.

You can downgrade to ffmpeg-3.4 in the meanwhile.

And yes, vapoursynth-d2vsource may be related to this too.

4re commented 6 years ago

Just noticed upstream fixed it for both vapoursynth-l-smash-works and vapoursynth-d2vsource, closing this issue.