conda / conda-build

Commands and tools for building conda packages
https://docs.conda.io/projects/conda-build/
Other
380 stars 421 forks source link

Failing to compile ffmpeg 2.8.6 with conda-build 1.21.0 and onward including 2.0.12 #1616

Closed 183amir closed 7 years ago

183amir commented 7 years ago

FFmpeg was being compiled with conda-build 1.20.3 before but it is not compiling with the newer versions anymore. I tried several different versions and none of them work after that release. I have no idea what is going wrong here.

$ conda install conda-build=1.20.3
$ conda build /recipes/dependencies/ffmpeg/
Removing old build environment
BUILD START: ffmpeg-2.8.6-0
Fetching package metadata .........

WARNING: conda-build appears to be out of date. You have version 1.20.3 but the
latest version is 2.0.12. Run

conda update -n root conda-build

to get the latest version.

Solving package specifications: ..........

The following NEW packages will be INSTALLED:

    libtool:    2.4.2-0         
    pkg-config: 0.28-1          
    x264:       20131217-0 local
    yasm:       1.3.0-0    local
    zlib:       1.2.8-3         

Linking packages ...
[      COMPLETE      ]|#################################################################################################################################| 100%
Source cache directory is: /opt/miniconda/conda-bld/src_cache
Found source in cache: ffmpeg-2.8.6.tar.gz
Extracting download
Package: ffmpeg-2.8.6-0
source tree in: /opt/miniconda/conda-bld/work/ffmpeg-2.8.6
++ pkg-config --cflags zlib
++ pkg-config --libs zlib
+ ./configure --prefix=/opt/miniconda/envs/_build --disable-doc --enable-shared --enable-static '--extra-cflags=-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC -I/opt/miniconda/envs/_build/include ' '--extra-cxxflags==-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC' '--extra-libs=-L/opt/miniconda/envs/_build/lib -lz ' --enable-pic --enable-gpl --enable-libx264
install prefix            /opt/miniconda/envs/_build
source path               .
C compiler                gcc
C library                 glibc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
yasm                      yes
MMX enabled               yes
MMXEXT enabled            yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
AVX enabled               yes
XOP enabled               yes
FMA3 enabled              yes
FMA4 enabled              yes
i686 features enabled     yes
CMOV is fast              yes
EBX available             yes
EBP available             yes
debug symbols             yes
strip symbols             yes
optimize for size         no
optimizations             yes
static                    yes
shared                    yes
postprocessing support    yes
new filter support        yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
SDL support               no
opencl enabled            no
texi2html enabled         no
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          no
makeinfo supports HTML    no

Enabled programs:
ffmpeg          ffprobe         ffserver

External libraries:
iconv           xlib            zlib
libx264

Enabled decoders:
aac         ayuv            frwu
aac_fixed       bethsoftvid     g2m
aac_latm        bfi         g723_1
aasc            bink            g729
ac3         binkaudio_dct       gif
ac3_fixed       binkaudio_rdft      gsm
adpcm_4xm       bintext         gsm_ms
adpcm_adx       bmp         h261
adpcm_afc       bmv_audio       h263
adpcm_ct        bmv_video       h263i
adpcm_dtk       brender_pix     h263p
adpcm_ea        c93         h264
adpcm_ea_maxis_xa   cavs            hap
adpcm_ea_r1     ccaption        hevc
adpcm_ea_r2     cdgraphics      hnm4_video
adpcm_ea_r3     cdxl            hq_hqa
adpcm_ea_xas        cinepak         hqx
adpcm_g722      cljr            huffyuv
adpcm_g726      cllc            iac
adpcm_g726le        comfortnoise        idcin
adpcm_ima_amv       cook            idf
adpcm_ima_apc       cpia            iff_byterun1
adpcm_ima_dk3       cscd            iff_ilbm
adpcm_ima_dk4       cyuv            imc
adpcm_ima_ea_eacs   dca         indeo2
adpcm_ima_ea_sead   dds         indeo3
adpcm_ima_iss       dfa         indeo4
adpcm_ima_oki       dirac           indeo5
adpcm_ima_qt        dnxhd           interplay_dpcm
adpcm_ima_rad       dpx         interplay_video
adpcm_ima_smjpeg    dsd_lsbf        jacosub
adpcm_ima_wav       dsd_lsbf_planar     jpeg2000
adpcm_ima_ws        dsd_msbf        jpegls
adpcm_ms        dsd_msbf_planar     jv
adpcm_sbpro_2       dsicinaudio     kgv1
adpcm_sbpro_3       dsicinvideo     kmvc
adpcm_sbpro_4       dss_sp          lagarith
adpcm_swf       dvbsub          loco
adpcm_thp       dvdsub          mace3
adpcm_thp_le        dvvideo         mace6
adpcm_vima      dxa         mdec
adpcm_xa        dxtory          metasound
adpcm_yamaha        eac3            microdvd
aic         eacmv           mimic
alac            eamad           mjpeg
alias_pix       eatgq           mjpegb
als         eatgv           mlp
amrnb           eatqi           mmvideo
amrwb           eightbps        motionpixels
amv         eightsvx_exp        movtext
anm         eightsvx_fib        mp1
ansi            escape124       mp1float
ape         escape130       mp2
apng            evrc            mp2float
ass         exr         mp3
asv1            ffv1            mp3adu
asv2            ffvhuff         mp3adufloat
atrac1          ffwavesynth     mp3float
atrac3          fic         mp3on4
atrac3p         flac            mp3on4float
aura            flashsv         mpc7
aura2           flashsv2        mpc8
avrn            flic            mpeg1video
avrp            flv         mpeg2video
avs         fourxm          mpeg4
avui            fraps           mpegvideo
mpl2            prores_lgpl     tscc2
msa1            ptx         tta
msmpeg4v1       qcelp           twinvq
msmpeg4v2       qdm2            txd
msmpeg4v3       qdraw           ulti
msrle           qpeg            utvideo
mss1            qtrle           v210
mss2            r10k            v210x
msvideo1        r210            v308
mszh            ra_144          v408
mts2            ra_288          v410
mvc1            ralf            vb
mvc2            rawvideo        vble
mxpeg           realtext        vc1
nellymoser      rl2         vc1image
nuv         roq         vcr1
on2avc          roq_dpcm        vima
opus            rpza            vmdaudio
paf_audio       rv10            vmdvideo
paf_video       rv20            vmnc
pam         rv30            vorbis
pbm         rv40            vp3
pcm_alaw        s302m           vp5
pcm_bluray      sami            vp6
pcm_dvd         sanm            vp6a
pcm_f32be       sgi         vp6f
pcm_f32le       sgirle          vp7
pcm_f64be       shorten         vp8
pcm_f64le       sipr            vp9
pcm_lxf         smackaud        vplayer
pcm_mulaw       smacker         vqa
pcm_s16be       smc         wavpack
pcm_s16be_planar    smvjpeg         webp
pcm_s16le       snow            webvtt
pcm_s16le_planar    sol_dpcm        wmalossless
pcm_s24be       sonic           wmapro
pcm_s24daud     sp5x            wmav1
pcm_s24le       srt         wmav2
pcm_s24le_planar    ssa         wmavoice
pcm_s32be       stl         wmv1
pcm_s32le       subrip          wmv2
pcm_s32le_planar    subviewer       wmv3
pcm_s8          subviewer1      wmv3image
pcm_s8_planar       sunrast         wnv1
pcm_u16be       svq1            ws_snd1
pcm_u16le       svq3            xan_dpcm
pcm_u24be       tak         xan_wc3
pcm_u24le       targa           xan_wc4
pcm_u32be       targa_y216      xbin
pcm_u32le       tdsc            xbm
pcm_u8          text            xface
pcm_zork        theora          xl
pcx         thp         xsub
pgm         tiertexseqvideo     xwd
pgmyuv          tiff            y41p
pgssub          tmv         yop
pictor          truehd          yuv4
pjs         truemotion1     zero12v
png         truemotion2     zerocodec
ppm         truespeech      zlib
prores          tscc            zmbv

Enabled encoders:
a64multi        jpegls          ppm
a64multi5       libx264         prores
aac         libx264rgb      prores_aw
ac3         ljpeg           prores_ks
ac3_fixed       mjpeg           qtrle
adpcm_adx       movtext         r10k
adpcm_g722      mp2         r210
adpcm_g726      mp2fixed        ra_144
adpcm_ima_qt        mpeg1video      rawvideo
adpcm_ima_wav       mpeg2video      roq
adpcm_ms        mpeg4           roq_dpcm
adpcm_swf       msmpeg4v2       rv10
adpcm_yamaha        msmpeg4v3       rv20
alac            msvideo1        s302m
alias_pix       nellymoser      sgi
amv         pam         snow
apng            pbm         sonic
ass         pcm_alaw        sonic_ls
asv1            pcm_f32be       srt
asv2            pcm_f32le       ssa
avrp            pcm_f64be       subrip
avui            pcm_f64le       sunrast
ayuv            pcm_mulaw       svq1
bmp         pcm_s16be       targa
cinepak         pcm_s16be_planar    tiff
cljr            pcm_s16le       tta
comfortnoise        pcm_s16le_planar    utvideo
dca         pcm_s24be       v210
dnxhd           pcm_s24daud     v308
dpx         pcm_s24le       v408
dvbsub          pcm_s24le_planar    v410
dvdsub          pcm_s32be       vorbis
dvvideo         pcm_s32le       wavpack
eac3            pcm_s32le_planar    webvtt
ffv1            pcm_s8          wmav1
ffvhuff         pcm_s8_planar       wmav2
flac            pcm_u16be       wmv1
flashsv         pcm_u16le       wmv2
flashsv2        pcm_u24be       xbm
flv         pcm_u24le       xface
g723_1          pcm_u32be       xsub
gif         pcm_u32le       xwd
h261            pcm_u8          y41p
h263            pcx         yuv4
h263p           pgm         zlib
huffyuv         pgmyuv          zmbv
jpeg2000        png

Enabled hwaccels:

Enabled parsers:
aac         dvdsub          mpegvideo
aac_latm        flac            opus
ac3         g729            png
adx         gsm         pnm
bmp         h261            rv30
cavsvideo       h263            rv40
cook            h264            tak
dca         hevc            vc1
dirac           mjpeg           vorbis
dnxhd           mlp         vp3
dpx         mpeg4video      vp8
dvbsub          mpegaudio       vp9
dvd_nav

Enabled demuxers:
aa          g723_1          mpjpeg
aac         g729            mpl2
ac3         gif         mpsub
act         gsm         msnwc_tcp
adf         gxf         mtv
adp         h261            mv
adx         h263            mvi
aea         h264            mxf
afc         hevc            mxg
aiff            hls         nc
amr         hnm         nistsphere
anm         ico         nsv
apc         idcin           nut
ape         idf         nuv
apng            iff         ogg
aqtitle         ilbc            oma
asf         image2          paf
asf_o           image2_alias_pix    pcm_alaw
ass         image2_brender_pix  pcm_f32be
ast         image2pipe      pcm_f32le
au          image_bmp_pipe      pcm_f64be
avi         image_dds_pipe      pcm_f64le
avr         image_dpx_pipe      pcm_mulaw
avs         image_exr_pipe      pcm_s16be
bethsoftvid     image_j2k_pipe      pcm_s16le
bfi         image_jpeg_pipe     pcm_s24be
bfstm           image_jpegls_pipe   pcm_s24le
bink            image_pictor_pipe   pcm_s32be
bintext         image_png_pipe      pcm_s32le
bit         image_qdraw_pipe    pcm_s8
bmv         image_sgi_pipe      pcm_u16be
boa         image_sunrast_pipe  pcm_u16le
brstm           image_tiff_pipe     pcm_u24be
c93         image_webp_pipe     pcm_u24le
caf         ingenient       pcm_u32be
cavsvideo       ipmovie         pcm_u32le
cdg         ircam           pcm_u8
cdxl            iss         pjs
cine            iv8         pmp
concat          ivf         pva
data            jacosub         pvf
daud            jv          qcp
dfa         latm            r3d
dirac           live_flv        rawvideo
dnxhd           lmlm4           realtext
dsf         loas            redspark
dsicin          lrc         rl2
dss         lvf         rm
dts         lxf         roq
dtshd           m4v         rpl
dv          matroska        rsd
dvbsub          mgsts           rso
dxa         microdvd        rtp
ea          mjpeg           rtsp
ea_cdata        mlp         sami
eac3            mlv         sap
epaf            mm          sbg
ffm         mmf         sdp
ffmetadata      mov         sdr2
filmstrip       mp3         segafilm
flac            mpc         shorten
flic            mpc8            siff
flv         mpegps          sln
fourxm          mpegts          smacker
frm         mpegtsraw       smjpeg
g722            mpegvideo       smush
sol         tmv         wav
sox         truehd          wc3
spdif           tta         webm_dash_manifest
srt         tty         webvtt
stl         txd         wsaud
str         vc1         wsvqa
subviewer       vc1t            wtv
subviewer1      vivo            wv
sup         vmd         xa
swf         vobsub          xbin
tak         voc         xmv
tedcaptions     vplayer         xwma
thp         vqf         yop
tiertexseq      w64         yuv4mpegpipe

Enabled muxers:
a64         ipod            pcm_s32be
ac3         ircam           pcm_s32le
adts            ismv            pcm_s8
adx         ivf         pcm_u16be
aiff            jacosub         pcm_u16le
amr         latm            pcm_u24be
apng            lrc         pcm_u24le
asf         m4v         pcm_u32be
asf_stream      matroska        pcm_u32le
ass         matroska_audio      pcm_u8
ast         md5         psp
au          microdvd        rawvideo
avi         mjpeg           rm
avm2            mkvtimestamp_v2     roq
bit         mlp         rso
caf         mmf         rtp
cavsvideo       mov         rtp_mpegts
crc         mp2         rtsp
dash            mp3         sap
data            mp4         segment
daud            mpeg1system     singlejpeg
dirac           mpeg1vcd        smjpeg
dnxhd           mpeg1video      smoothstreaming
dts         mpeg2dvd        sox
dv          mpeg2svcd       spdif
eac3            mpeg2video      spx
f4v         mpeg2vob        srt
ffm         mpegts          stream_segment
ffmetadata      mpjpeg          swf
filmstrip       mxf         tee
flac            mxf_d10         tg2
flv         mxf_opatom      tgp
framecrc        null            truehd
framemd5        nut         uncodedframecrc
g722            oga         vc1
g723_1          ogg         vc1t
gif         oma         voc
gxf         opus            w64
h261            pcm_alaw        wav
h263            pcm_f32be       webm
h264            pcm_f32le       webm_chunk
hds         pcm_f64be       webm_dash_manifest
hevc            pcm_f64le       webp
hls         pcm_mulaw       webvtt
ico         pcm_s16be       wtv
ilbc            pcm_s16le       wv
image2          pcm_s24be       yuv4mpegpipe
image2pipe      pcm_s24le

Enabled protocols:
async           hls         rtmpt
cache           http            rtp
concat          httpproxy       srtp
crypto          icecast         subfile
data            md5         tcp
ffrtmphttp      mmsh            udp
file            mmst            udplite
ftp         pipe            unix
gopher          rtmp

Enabled filters:
acrossfade      curves          mpdecimate
adelay          dcshift         mptestsrc
adrawgraph      dctdnoiz        negate
aecho           deband          noformat
aeval           decimate        noise
aevalsrc        deflate         null
afade           dejudder        nullsink
aformat         delogo          nullsrc
ainterleave     deshake         overlay
allpass         detelecine      owdenoise
allrgb          dilation        pad
allyuv          drawbox         palettegen
alphaextract        drawgraph       paletteuse
alphamerge      drawgrid        pan
amerge          dynaudnorm      perms
amix            earwax          perspective
amovie          ebur128         phase
anull           edgedetect      pixdesctest
anullsink       elbg            pp
anullsrc        eq          pp7
apad            equalizer       psnr
aperms          erosion         pullup
aphasemeter     extractplanes       qp
aphaser         fade            random
aresample       fftfilt         removegrain
areverse        field           removelogo
aselect         fieldmatch      repeatfields
asendcmd        fieldorder      replaygain
asetnsamples        find_rect       reverse
asetpts         flanger         rgbtestsrc
asetrate        format          rotate
asettb          fps         sab
ashowinfo       framepack       scale
asplit          framerate       scale2ref
astats          framestep       select
astreamsync     fspp            sendcmd
atadenoise      geq         separatefields
atempo          gradfun         setdar
atrim           haldclut        setfield
avectorscope        haldclutsrc     setpts
bandpass        hflip           setsar
bandreject      highpass        settb
bass            histeq          showcqt
bbox            histogram       showfreqs
biquad          hqdn3d          showinfo
blackdetect     hqx         showpalette
blackframe      hstack          showspectrum
blend           hue         showvolume
boxblur         idet            showwaves
cellauto        il          showwavespic
channelmap      inflate         shuffleplanes
channelsplit        interlace       sidechaincompress
chorus          interleave      signalstats
codecview       join            silencedetect
color           kerndeint       silenceremove
colorbalance        lenscorrection      sine
colorchannelmixer   life            smartblur
colorkey        lowpass         smptebars
colorlevels     lut         smptehdbars
colormatrix     lut3d           split
compand         lutrgb          spp
concat          lutyuv          ssim
copy            mandelbrot      stereo3d
cover_rect      mcdeint         super2xsai
crop            mergeplanes     swapuv
cropdetect      movie           tblend
telecine        trim            volumedetect
testsrc         unsharp         vstack
thumbnail       uspp            w3fdif
tile            vectorscope     waveform
tinterlace      vflip           xbr
transpose       vignette        yadif
treble          volume          zoompan

Enabled bsfs:
aac_adtstoasc       imx_dump_header     mpeg4_unpack_bframes
chomp           mjpeg2jpeg      noise
dump_extradata      mjpega_dump_header  remove_extradata
h264_mp4toannexb    mov2textsub     text2movsub
hevc_mp4toannexb    mp3_header_decompress

Enabled indevs:
dv1394          lavfi           v4l2
fbdev           oss

Enabled outdevs:
fbdev           oss         v4l2

License: GPL version 2 or later
Creating config.mak, config.h, and doc/config.texi...
+ make
CC  libavdevice/alldevices.o
CC  libavdevice/avdevice.o
CC  libavdevice/dv1394.o
In file included from /usr/include/fcntl.h:38:0,
                 from libavdevice/dv1394.c:24:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
CC  libavdevice/fbdev_common.o
In file included from /usr/include/fcntl.h:38:0,
                 from libavdevice/fbdev_common.c:24:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
CC  libavdevice/fbdev_dec.o
In file included from /usr/include/fcntl.h:38:0,
                 from libavdevice/fbdev_dec.c:31:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
CC  libavdevice/fbdev_enc.o
In file included from /usr/include/fcntl.h:38:0,
                 from libavdevice/fbdev_enc.c:22:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
CC  libavdevice/lavfi.o
In file included from ./libavformat/os_support.h:32:0,
                 from ./libavformat/internal.h:26,
                 from libavdevice/lavfi.c:42:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
CC  libavdevice/oss.o
In file included from /usr/include/fcntl.h:38:0,
                 from libavdevice/oss.c:35:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
CC  libavdevice/oss_dec.o
In file included from /usr/include/fcntl.h:38:0,
                 from libavdevice/oss_dec.c:35:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
CC  libavdevice/oss_enc.o
In file included from /usr/include/fcntl.h:38:0,
                 from libavdevice/oss_enc.c:33:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
CC  libavdevice/timefilter.o
CC  libavdevice/utils.o
CC  libavdevice/v4l2-common.o
In file included from ./libavformat/os_support.h:32:0,
                 from ./libavformat/internal.h:26,
                 from libavdevice/v4l2-common.h:24,
                 from libavdevice/v4l2-common.c:19:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
CC  libavdevice/v4l2.o
In file included from ./libavformat/os_support.h:32:0,
                 from ./libavformat/internal.h:26,
                 from libavdevice/v4l2-common.h:24,
                 from libavdevice/v4l2.c:33:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
CC  libavdevice/v4l2enc.o
In file included from ./libavformat/os_support.h:32:0,
                 from ./libavformat/internal.h:26,
                 from libavdevice/v4l2-common.h:24,
                 from libavdevice/v4l2enc.c:21:
/usr/local/lib/gcc/x86_64-redhat-linux-gnu/5.2.0/include-fixed/sys/stat.h:379:16: warning: inline function ‘mknod’ declared but never defined
 __inline__ int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
                ^
AR  libavdevice/libavdevice.a
CC  libavfilter/aeval.o
CC  libavfilter/af_adelay.o
CC  libavfilter/af_aecho.o
CC  libavfilter/af_afade.o
CC  libavfilter/af_aformat.o
CC  libavfilter/af_amerge.o
CC  libavfilter/af_amix.o
CC  libavfilter/af_anull.o
CC  libavfilter/af_apad.o
CC  libavfilter/af_aphaser.o
CC  libavfilter/af_aresample.o
CC  libavfilter/af_asetnsamples.o
CC  libavfilter/af_asetrate.o
CC  libavfilter/af_ashowinfo.o
CC  libavfilter/af_astats.o
CC  libavfilter/af_astreamsync.o
CC  libavfilter/af_atempo.o
CC  libavfilter/af_biquads.o
CC  libavfilter/af_channelmap.o
CC  libavfilter/af_channelsplit.o
CC  libavfilter/af_chorus.o
CC  libavfilter/af_compand.o
CC  libavfilter/af_dcshift.o
CC  libavfilter/af_dynaudnorm.o

....

$ conda install conda-build=1.21.0
$ conda build /recipes/dependencies/ffmpeg/
Removing old build environment
BUILD START: ffmpeg-2.8.6-0
Fetching package metadata .........

WARNING: conda-build appears to be out of date. You have version 1.21.0 but the
latest version is 2.0.12. Run

conda update -n root conda-build

to get the latest version.

Solving package specifications: ..........

The following NEW packages will be INSTALLED:

    libtool:    2.4.2-0         
    pkg-config: 0.28-1          
    x264:       20131217-0 local
    yasm:       1.3.0-0    local
    zlib:       1.2.8-3         

Linking packages ...
[      COMPLETE      ]|#################################################################################################################################| 100%
Source cache directory is: /opt/miniconda/conda-bld/src_cache
Found source in cache: ffmpeg-2.8.6.tar.gz
Extracting download
Package: ffmpeg-2.8.6-0
source tree in: /opt/miniconda/conda-bld/work/ffmpeg-2.8.6
++ pkg-config --cflags zlib
++ pkg-config --libs zlib
+ ./configure --prefix=/opt/miniconda/envs/_build --disable-doc --enable-shared --enable-static '--extra-cflags=-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC -I/opt/miniconda/envs/_build/include ' '--extra-cxxflags==-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC' '--extra-libs=-L/opt/miniconda/envs/_build/lib -lz ' --enable-pic --enable-gpl --enable-libx264
install prefix            /opt/miniconda/envs/_build
source path               .
C compiler                gcc
C library                 glibc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
yasm                      yes
MMX enabled               yes
MMXEXT enabled            yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
AVX enabled               yes
XOP enabled               yes
FMA3 enabled              yes
FMA4 enabled              yes
i686 features enabled     yes
CMOV is fast              yes
EBX available             yes
EBP available             yes
debug symbols             yes
strip symbols             yes
optimize for size         no
optimizations             yes
static                    yes
shared                    yes
postprocessing support    yes
new filter support        yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
SDL support               no
opencl enabled            no
texi2html enabled         no
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          no
makeinfo supports HTML    no

Enabled programs:
ffmpeg          ffprobe         ffserver

External libraries:
iconv           xlib            zlib
libx264

Enabled decoders:
aac         ayuv            frwu
aac_fixed       bethsoftvid     g2m
aac_latm        bfi         g723_1
aasc            bink            g729
ac3         binkaudio_dct       gif
ac3_fixed       binkaudio_rdft      gsm
adpcm_4xm       bintext         gsm_ms
adpcm_adx       bmp         h261
adpcm_afc       bmv_audio       h263
adpcm_ct        bmv_video       h263i
adpcm_dtk       brender_pix     h263p
adpcm_ea        c93         h264
adpcm_ea_maxis_xa   cavs            hap
adpcm_ea_r1     ccaption        hevc
adpcm_ea_r2     cdgraphics      hnm4_video
adpcm_ea_r3     cdxl            hq_hqa
adpcm_ea_xas        cinepak         hqx
adpcm_g722      cljr            huffyuv
adpcm_g726      cllc            iac
adpcm_g726le        comfortnoise        idcin
adpcm_ima_amv       cook            idf
adpcm_ima_apc       cpia            iff_byterun1
adpcm_ima_dk3       cscd            iff_ilbm
adpcm_ima_dk4       cyuv            imc
adpcm_ima_ea_eacs   dca         indeo2
adpcm_ima_ea_sead   dds         indeo3
adpcm_ima_iss       dfa         indeo4
adpcm_ima_oki       dirac           indeo5
adpcm_ima_qt        dnxhd           interplay_dpcm
adpcm_ima_rad       dpx         interplay_video
adpcm_ima_smjpeg    dsd_lsbf        jacosub
adpcm_ima_wav       dsd_lsbf_planar     jpeg2000
adpcm_ima_ws        dsd_msbf        jpegls
adpcm_ms        dsd_msbf_planar     jv
adpcm_sbpro_2       dsicinaudio     kgv1
adpcm_sbpro_3       dsicinvideo     kmvc
adpcm_sbpro_4       dss_sp          lagarith
adpcm_swf       dvbsub          loco
adpcm_thp       dvdsub          mace3
adpcm_thp_le        dvvideo         mace6
adpcm_vima      dxa         mdec
adpcm_xa        dxtory          metasound
adpcm_yamaha        eac3            microdvd
aic         eacmv           mimic
alac            eamad           mjpeg
alias_pix       eatgq           mjpegb
als         eatgv           mlp
amrnb           eatqi           mmvideo
amrwb           eightbps        motionpixels
amv         eightsvx_exp        movtext
anm         eightsvx_fib        mp1
ansi            escape124       mp1float
ape         escape130       mp2
apng            evrc            mp2float
ass         exr         mp3
asv1            ffv1            mp3adu
asv2            ffvhuff         mp3adufloat
atrac1          ffwavesynth     mp3float
atrac3          fic         mp3on4
atrac3p         flac            mp3on4float
aura            flashsv         mpc7
aura2           flashsv2        mpc8
avrn            flic            mpeg1video
avrp            flv         mpeg2video
avs         fourxm          mpeg4
avui            fraps           mpegvideo
mpl2            prores_lgpl     tscc2
msa1            ptx         tta
msmpeg4v1       qcelp           twinvq
msmpeg4v2       qdm2            txd
msmpeg4v3       qdraw           ulti
msrle           qpeg            utvideo
mss1            qtrle           v210
mss2            r10k            v210x
msvideo1        r210            v308
mszh            ra_144          v408
mts2            ra_288          v410
mvc1            ralf            vb
mvc2            rawvideo        vble
mxpeg           realtext        vc1
nellymoser      rl2         vc1image
nuv         roq         vcr1
on2avc          roq_dpcm        vima
opus            rpza            vmdaudio
paf_audio       rv10            vmdvideo
paf_video       rv20            vmnc
pam         rv30            vorbis
pbm         rv40            vp3
pcm_alaw        s302m           vp5
pcm_bluray      sami            vp6
pcm_dvd         sanm            vp6a
pcm_f32be       sgi         vp6f
pcm_f32le       sgirle          vp7
pcm_f64be       shorten         vp8
pcm_f64le       sipr            vp9
pcm_lxf         smackaud        vplayer
pcm_mulaw       smacker         vqa
pcm_s16be       smc         wavpack
pcm_s16be_planar    smvjpeg         webp
pcm_s16le       snow            webvtt
pcm_s16le_planar    sol_dpcm        wmalossless
pcm_s24be       sonic           wmapro
pcm_s24daud     sp5x            wmav1
pcm_s24le       srt         wmav2
pcm_s24le_planar    ssa         wmavoice
pcm_s32be       stl         wmv1
pcm_s32le       subrip          wmv2
pcm_s32le_planar    subviewer       wmv3
pcm_s8          subviewer1      wmv3image
pcm_s8_planar       sunrast         wnv1
pcm_u16be       svq1            ws_snd1
pcm_u16le       svq3            xan_dpcm
pcm_u24be       tak         xan_wc3
pcm_u24le       targa           xan_wc4
pcm_u32be       targa_y216      xbin
pcm_u32le       tdsc            xbm
pcm_u8          text            xface
pcm_zork        theora          xl
pcx         thp         xsub
pgm         tiertexseqvideo     xwd
pgmyuv          tiff            y41p
pgssub          tmv         yop
pictor          truehd          yuv4
pjs         truemotion1     zero12v
png         truemotion2     zerocodec
ppm         truespeech      zlib
prores          tscc            zmbv

Enabled encoders:
a64multi        jpegls          ppm
a64multi5       libx264         prores
aac         libx264rgb      prores_aw
ac3         ljpeg           prores_ks
ac3_fixed       mjpeg           qtrle
adpcm_adx       movtext         r10k
adpcm_g722      mp2         r210
adpcm_g726      mp2fixed        ra_144
adpcm_ima_qt        mpeg1video      rawvideo
adpcm_ima_wav       mpeg2video      roq
adpcm_ms        mpeg4           roq_dpcm
adpcm_swf       msmpeg4v2       rv10
adpcm_yamaha        msmpeg4v3       rv20
alac            msvideo1        s302m
alias_pix       nellymoser      sgi
amv         pam         snow
apng            pbm         sonic
ass         pcm_alaw        sonic_ls
asv1            pcm_f32be       srt
asv2            pcm_f32le       ssa
avrp            pcm_f64be       subrip
avui            pcm_f64le       sunrast
ayuv            pcm_mulaw       svq1
bmp         pcm_s16be       targa
cinepak         pcm_s16be_planar    tiff
cljr            pcm_s16le       tta
comfortnoise        pcm_s16le_planar    utvideo
dca         pcm_s24be       v210
dnxhd           pcm_s24daud     v308
dpx         pcm_s24le       v408
dvbsub          pcm_s24le_planar    v410
dvdsub          pcm_s32be       vorbis
dvvideo         pcm_s32le       wavpack
eac3            pcm_s32le_planar    webvtt
ffv1            pcm_s8          wmav1
ffvhuff         pcm_s8_planar       wmav2
flac            pcm_u16be       wmv1
flashsv         pcm_u16le       wmv2
flashsv2        pcm_u24be       xbm
flv         pcm_u24le       xface
g723_1          pcm_u32be       xsub
gif         pcm_u32le       xwd
h261            pcm_u8          y41p
h263            pcx         yuv4
h263p           pgm         zlib
huffyuv         pgmyuv          zmbv
jpeg2000        png

Enabled hwaccels:

Enabled parsers:
aac         dvdsub          mpegvideo
aac_latm        flac            opus
ac3         g729            png
adx         gsm         pnm
bmp         h261            rv30
cavsvideo       h263            rv40
cook            h264            tak
dca         hevc            vc1
dirac           mjpeg           vorbis
dnxhd           mlp         vp3
dpx         mpeg4video      vp8
dvbsub          mpegaudio       vp9
dvd_nav

Enabled demuxers:
aa          g723_1          mpjpeg
aac         g729            mpl2
ac3         gif         mpsub
act         gsm         msnwc_tcp
adf         gxf         mtv
adp         h261            mv
adx         h263            mvi
aea         h264            mxf
afc         hevc            mxg
aiff            hls         nc
amr         hnm         nistsphere
anm         ico         nsv
apc         idcin           nut
ape         idf         nuv
apng            iff         ogg
aqtitle         ilbc            oma
asf         image2          paf
asf_o           image2_alias_pix    pcm_alaw
ass         image2_brender_pix  pcm_f32be
ast         image2pipe      pcm_f32le
au          image_bmp_pipe      pcm_f64be
avi         image_dds_pipe      pcm_f64le
avr         image_dpx_pipe      pcm_mulaw
avs         image_exr_pipe      pcm_s16be
bethsoftvid     image_j2k_pipe      pcm_s16le
bfi         image_jpeg_pipe     pcm_s24be
bfstm           image_jpegls_pipe   pcm_s24le
bink            image_pictor_pipe   pcm_s32be
bintext         image_png_pipe      pcm_s32le
bit         image_qdraw_pipe    pcm_s8
bmv         image_sgi_pipe      pcm_u16be
boa         image_sunrast_pipe  pcm_u16le
brstm           image_tiff_pipe     pcm_u24be
c93         image_webp_pipe     pcm_u24le
caf         ingenient       pcm_u32be
cavsvideo       ipmovie         pcm_u32le
cdg         ircam           pcm_u8
cdxl            iss         pjs
cine            iv8         pmp
concat          ivf         pva
data            jacosub         pvf
daud            jv          qcp
dfa         latm            r3d
dirac           live_flv        rawvideo
dnxhd           lmlm4           realtext
dsf         loas            redspark
dsicin          lrc         rl2
dss         lvf         rm
dts         lxf         roq
dtshd           m4v         rpl
dv          matroska        rsd
dvbsub          mgsts           rso
dxa         microdvd        rtp
ea          mjpeg           rtsp
ea_cdata        mlp         sami
eac3            mlv         sap
epaf            mm          sbg
ffm         mmf         sdp
ffmetadata      mov         sdr2
filmstrip       mp3         segafilm
flac            mpc         shorten
flic            mpc8            siff
flv         mpegps          sln
fourxm          mpegts          smacker
frm         mpegtsraw       smjpeg
g722            mpegvideo       smush
sol         tmv         wav
sox         truehd          wc3
spdif           tta         webm_dash_manifest
srt         tty         webvtt
stl         txd         wsaud
str         vc1         wsvqa
subviewer       vc1t            wtv
subviewer1      vivo            wv
sup         vmd         xa
swf         vobsub          xbin
tak         voc         xmv
tedcaptions     vplayer         xwma
thp         vqf         yop
tiertexseq      w64         yuv4mpegpipe

Enabled muxers:
a64         ipod            pcm_s32be
ac3         ircam           pcm_s32le
adts            ismv            pcm_s8
adx         ivf         pcm_u16be
aiff            jacosub         pcm_u16le
amr         latm            pcm_u24be
apng            lrc         pcm_u24le
asf         m4v         pcm_u32be
asf_stream      matroska        pcm_u32le
ass         matroska_audio      pcm_u8
ast         md5         psp
au          microdvd        rawvideo
avi         mjpeg           rm
avm2            mkvtimestamp_v2     roq
bit         mlp         rso
caf         mmf         rtp
cavsvideo       mov         rtp_mpegts
crc         mp2         rtsp
dash            mp3         sap
data            mp4         segment
daud            mpeg1system     singlejpeg
dirac           mpeg1vcd        smjpeg
dnxhd           mpeg1video      smoothstreaming
dts         mpeg2dvd        sox
dv          mpeg2svcd       spdif
eac3            mpeg2video      spx
f4v         mpeg2vob        srt
ffm         mpegts          stream_segment
ffmetadata      mpjpeg          swf
filmstrip       mxf         tee
flac            mxf_d10         tg2
flv         mxf_opatom      tgp
framecrc        null            truehd
framemd5        nut         uncodedframecrc
g722            oga         vc1
g723_1          ogg         vc1t
gif         oma         voc
gxf         opus            w64
h261            pcm_alaw        wav
h263            pcm_f32be       webm
h264            pcm_f32le       webm_chunk
hds         pcm_f64be       webm_dash_manifest
hevc            pcm_f64le       webp
hls         pcm_mulaw       webvtt
ico         pcm_s16be       wtv
ilbc            pcm_s16le       wv
image2          pcm_s24be       yuv4mpegpipe
image2pipe      pcm_s24le

Enabled protocols:
async           hls         rtmpt
cache           http            rtp
concat          httpproxy       srtp
crypto          icecast         subfile
data            md5         tcp
ffrtmphttp      mmsh            udp
file            mmst            udplite
ftp         pipe            unix
gopher          rtmp

Enabled filters:
acrossfade      curves          mpdecimate
adelay          dcshift         mptestsrc
adrawgraph      dctdnoiz        negate
aecho           deband          noformat
aeval           decimate        noise
aevalsrc        deflate         null
afade           dejudder        nullsink
aformat         delogo          nullsrc
ainterleave     deshake         overlay
allpass         detelecine      owdenoise
allrgb          dilation        pad
allyuv          drawbox         palettegen
alphaextract        drawgraph       paletteuse
alphamerge      drawgrid        pan
amerge          dynaudnorm      perms
amix            earwax          perspective
amovie          ebur128         phase
anull           edgedetect      pixdesctest
anullsink       elbg            pp
anullsrc        eq          pp7
apad            equalizer       psnr
aperms          erosion         pullup
aphasemeter     extractplanes       qp
aphaser         fade            random
aresample       fftfilt         removegrain
areverse        field           removelogo
aselect         fieldmatch      repeatfields
asendcmd        fieldorder      replaygain
asetnsamples        find_rect       reverse
asetpts         flanger         rgbtestsrc
asetrate        format          rotate
asettb          fps         sab
ashowinfo       framepack       scale
asplit          framerate       scale2ref
astats          framestep       select
astreamsync     fspp            sendcmd
atadenoise      geq         separatefields
atempo          gradfun         setdar
atrim           haldclut        setfield
avectorscope        haldclutsrc     setpts
bandpass        hflip           setsar
bandreject      highpass        settb
bass            histeq          showcqt
bbox            histogram       showfreqs
biquad          hqdn3d          showinfo
blackdetect     hqx         showpalette
blackframe      hstack          showspectrum
blend           hue         showvolume
boxblur         idet            showwaves
cellauto        il          showwavespic
channelmap      inflate         shuffleplanes
channelsplit        interlace       sidechaincompress
chorus          interleave      signalstats
codecview       join            silencedetect
color           kerndeint       silenceremove
colorbalance        lenscorrection      sine
colorchannelmixer   life            smartblur
colorkey        lowpass         smptebars
colorlevels     lut         smptehdbars
colormatrix     lut3d           split
compand         lutrgb          spp
concat          lutyuv          ssim
copy            mandelbrot      stereo3d
cover_rect      mcdeint         super2xsai
crop            mergeplanes     swapuv
cropdetect      movie           tblend
telecine        trim            volumedetect
testsrc         unsharp         vstack
thumbnail       uspp            w3fdif
tile            vectorscope     waveform
tinterlace      vflip           xbr
transpose       vignette        yadif
treble          volume          zoompan

Enabled bsfs:
aac_adtstoasc       imx_dump_header     mpeg4_unpack_bframes
chomp           mjpeg2jpeg      noise
dump_extradata      mjpega_dump_header  remove_extradata
h264_mp4toannexb    mov2textsub     text2movsub
hevc_mp4toannexb    mp3_header_decompress

Enabled indevs:
dv1394          lavfi           v4l2
fbdev           oss

Enabled outdevs:
fbdev           oss         v4l2

License: GPL version 2 or later
Creating config.mak, config.h, and doc/config.texi...
+ make
touch .version
rm -f libavdevice/libavdevice.a
ar rcD libavdevice/libavdevice.a libavdevice/alldevices.o libavdevice/avdevice.o libavdevice/dv1394.o libavdevice/fbdev_common.o libavdevice/fbdev_dec.o libavdevice/fbdev_enc.o libavdevice/lavfi.o libavdevice/oss.o libavdevice/oss_dec.o libavdevice/oss_enc.o libavdevice/timefilter.o libavdevice/utils.o libavdevice/v4l2-common.o libavdevice/v4l2.o libavdevice/v4l2enc.o
ar: libavdevice/alldevices.o: No such file or directory
make: *** [libavdevice/libavdevice.a] Error 1
Command failed: /bin/bash -x -e /recipes/dependencies/ffmpeg/build.sh

The recipe of ffmpeg is from https://github.com/conda-forge/ffmpeg-feedstock

{% set version = "2.8.6" %}

package:
    name: ffmpeg
    version: {{ version }}

source:
    fn: ffmpeg-{{ version }}.tar.gz
    url: https://ffmpeg.org/releases/ffmpeg-{{ version }}.tar.gz
    md5: 7b9449795790c46331dae2c6e8e28f15

build:
    skip: true         # [win]
    number: 0

requirements:
    build:
        - pkg-config
        - libtool
        - yasm
        - gcc          # [osx]
        - x264
        - zlib 1.2.*
    run:
        - libgcc       # [osx]
        - x264
        - zlib 1.2.*

test:
    commands:
        - ffmpeg --help
        - ffmpeg -codecs | grep "DEVI.S zlib"  # [unix]

about:
    home: http://www.ffmpeg.org/
    license: GPL 2
    summary: Cross-platform solution to record, convert and stream audio and video.

extra:
    recipe-maintainers:
        - danielballan
        - jakirkham
        - 183amir
#!/bin/bash

./configure \
        --prefix="${PREFIX}" \
        --disable-doc \
        --enable-shared \
        --enable-static \
        --extra-cflags="-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC `pkg-config --cflags zlib`" \
        --extra-cxxflags=="-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC" \
        --extra-libs="`pkg-config --libs zlib`" \
        --enable-pic \
        --enable-gpl \
        --enable-libx264

make
make install

This issue is also reported here: https://github.com/conda-forge/ffmpeg-feedstock/issues/12

183amir commented 7 years ago

Ok I found what is wrong. The SUBDIR environment variable set here: https://github.com/conda/conda-build/blob/master/conda_build/environ.py#L243 affects the behavior of make. To fix it I am unsetting SUBDIR in the build.sh file:

SUBDIR_BAK=$SUBDIR
unset SUBDIR
./configure \
        --prefix="${PREFIX}" \
        --disable-doc \
        --enable-shared \
        --enable-static \
        --extra-cflags="-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC `pkg-config --cflags zlib`" \
        --extra-cxxflags=="-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC" \
        --extra-libs="`pkg-config --libs zlib`" \
        --enable-pic \
        --enable-gpl \
        --enable-libx264

make
make install
export SUBDIR=$SUBDIR_BAK

Is that ok? or is it going to change conda build's behavior? What would be the proper solution here? If this SUBDIR variable is used internally, isn't better to rename it to something more specific?

msarahan commented 7 years ago

Unsetting that is totally fine. It will only affect what happens in that shell script. Strange that they depend on that environment variable, but I think it's just an unfortunate coincidence.

I don't recall what subdir is used for in build.sh, if anything. We might be able to remove it as an environment variable.

183amir commented 7 years ago

It would be best if it was removed as an environment variable.

jakirkham commented 7 years ago

That or rename it. Looks like this was for the benefit of build scripts, right?

Edit: How about CONDA_SUBDIR or similar?

github-actions[bot] commented 2 years ago

Hi there, thank you for your contribution!

This issue has been automatically locked because it has not had recent activity after being closed.

Please open a new issue if needed.

Thanks!