[MacPorts] #14694: ffmpeg won't build with avfilter variant

MacPorts trac at macosforge.org
Mon Mar 17 18:37:01 PDT 2008


#14694: ffmpeg won't build with avfilter variant
---------------------------------+------------------------------------------
  Reporter:  dersh at alum.mit.edu  |       Owner:  reiffert at macports.org
      Type:  defect              |      Status:  new                  
  Priority:  Normal              |   Milestone:                       
 Component:  ports               |     Version:  1.6.0                
Resolution:                      |    Keywords:  ffmpeg avfilter      
---------------------------------+------------------------------------------
Old description:

> I am trying to install ffmpeg with the new +avfilter variant, but it
> gives errors (and warnings) when I try to install.
> I have tried uninstall and re-install and different combinations of other
> variants, all with no luck.  If I don't do the avfilter variant then it
> does build and install fine.
>
> I am using an Intel machine (MacBook Pro) running 10.5.2.
>

> Here is my install and errors:
> >sudo port install ffmpeg +avfilter
> Error: Unable to process mirror sites for: , ignoring.
> Warning: No mirror sites on file for class
> --->  Fetching ffmpeg
> --->  Verifying checksum(s) for ffmpeg
> --->  Extracting ffmpeg
> --->  Applying patches to ffmpeg
> --->  Configuring ffmpeg
> --->  Building ffmpeg with target all
> Error: Target org.macports.build returned: shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
> && make all " returned error 2
> Command output: rgb2rgb.c:376: warning: cast discards qualifiers from
> pointer target type
> rgb2rgb.c: In function 'rgb15tobgr24':
> rgb2rgb.c:474: warning: cast discards qualifiers from pointer target type
> gcc -O2 -DHAVE_LRINTF -I/opt/local/include -no-cpp-precomp -pipe
> -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g
> -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization
> -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-
> strings -O3 -fno-math-errno
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavcodec
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavformat
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libswscale
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavdevice
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavfilter
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
> -DHAVE_AV_CONFIG_H  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil
> -O2 -DHAVE_LRINTF -I/opt/local/include -no-cpp-precomp -pipe
> -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g
> -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization
> -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-
> strings -O3 -fno-math-errno  -c -o swscale.o swscale.c
> In file included from swscale.c:913:
> swscale_template.c: In function 'hyscale_C':
> swscale_template.c:2541: warning: passing argument 4 of 'palToY_C' from
> incompatible pointer type
> swscale_template.c: In function 'hcscale_C':
> swscale_template.c:2757: warning: passing argument 6 of 'palToUV_C' from
> incompatible pointer type
> swscale.c: In function 'gray16swap':
> swscale.c:1863: warning: initialization from incompatible pointer type
> swscale.c:1864: warning: initialization from incompatible pointer type
> swscale.c: In function 'sws_getContext':
> swscale.c:2405: warning: initialization discards qualifiers from pointer
> target type
> swscale.c: In function 'sws_scale':
> swscale.c:2557: warning: assignment from incompatible pointer type
> swscale.c: In function 'sws_getCachedContext':
> swscale.c:2971: warning: assignment discards qualifiers from pointer
> target type
> gcc -O2 -DHAVE_LRINTF -I/opt/local/include -no-cpp-precomp -pipe
> -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g
> -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization
> -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-
> strings -O3 -fno-math-errno
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavcodec
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavformat
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libswscale
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavdevice
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavfilter
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
> -DHAVE_AV_CONFIG_H  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
> -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil
> -O2 -DHAVE_LRINTF -I/opt/local/include -no-cpp-precomp -pipe
> -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g
> -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization
> -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-
> strings -O3 -fno-math-errno  -c -o yuv2rgb.o yuv2rgb.c
> yuv2rgb.c:392: warning: 'yuv2rgb_c_8' defined but not used
> yuv2rgb.c:447: warning: 'yuv2rgb_c_4' defined but not used
> yuv2rgb.c:519: warning: 'yuv2rgb_c_4b' defined but not used
> rm -f libswscale.a
> ar rc libswscale.a rgb2rgb.o swscale.o yuv2rgb.o
> ranlib libswscale.a
> gcc -dynamiclib -Wl,-single_module
> -Wl,-install_name,/opt/local/lib/libswscale.dylib,-current_version,51.1.0,-compatibility_version,51.1.0
> -Wl,-read_only_relocs,suppress -Wl,-dynamic,-search_paths_first
> -L/opt/local/lib -rdynamic -o libswscale..dylib rgb2rgb.o swscale.o
> yuv2rgb.o
> -L"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil
> -lavutil -lz -lm -la52
> ld: absolute addressing (perhaps -mdynamic-no-pic) used in
> _rgb24tobgr24_MMX from rgb2rgb.o not allowed in slidable image
> collect2: ld returned 1 exit status
> make[1]: *** [libswscale..dylib] Error 1
> make: *** [lib] Error 2
>
> Error: Status 1 encountered during processing.

New description:

 I am trying to install ffmpeg with the new +avfilter variant, but it gives
 errors (and warnings) when I try to install.
 I have tried uninstall and re-install and different combinations of other
 variants, all with no luck.  If I don't do the avfilter variant then it
 does build and install fine.

 I am using an Intel machine (MacBook Pro) running 10.5.2.


 Here is my install and errors:
 {{{
 >sudo port install ffmpeg +avfilter
 Error: Unable to process mirror sites for: , ignoring.
 Warning: No mirror sites on file for class
 --->  Fetching ffmpeg
 --->  Verifying checksum(s) for ffmpeg
 --->  Extracting ffmpeg
 --->  Applying patches to ffmpeg
 --->  Configuring ffmpeg
 --->  Building ffmpeg with target all
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
 && make all " returned error 2
 Command output: rgb2rgb.c:376: warning: cast discards qualifiers from
 pointer target type
 rgb2rgb.c: In function 'rgb15tobgr24':
 rgb2rgb.c:474: warning: cast discards qualifiers from pointer target type
 gcc -O2 -DHAVE_LRINTF -I/opt/local/include -no-cpp-precomp -pipe
 -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g
 -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization
 -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-
 strings -O3 -fno-math-errno
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavcodec
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavformat
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libswscale
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavdevice
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavfilter
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
 -DHAVE_AV_CONFIG_H  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil
 -O2 -DHAVE_LRINTF -I/opt/local/include -no-cpp-precomp -pipe
 -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g
 -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization
 -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-
 strings -O3 -fno-math-errno  -c -o swscale.o swscale.c
 In file included from swscale.c:913:
 swscale_template.c: In function 'hyscale_C':
 swscale_template.c:2541: warning: passing argument 4 of 'palToY_C' from
 incompatible pointer type
 swscale_template.c: In function 'hcscale_C':
 swscale_template.c:2757: warning: passing argument 6 of 'palToUV_C' from
 incompatible pointer type
 swscale.c: In function 'gray16swap':
 swscale.c:1863: warning: initialization from incompatible pointer type
 swscale.c:1864: warning: initialization from incompatible pointer type
 swscale.c: In function 'sws_getContext':
 swscale.c:2405: warning: initialization discards qualifiers from pointer
 target type
 swscale.c: In function 'sws_scale':
 swscale.c:2557: warning: assignment from incompatible pointer type
 swscale.c: In function 'sws_getCachedContext':
 swscale.c:2971: warning: assignment discards qualifiers from pointer
 target type
 gcc -O2 -DHAVE_LRINTF -I/opt/local/include -no-cpp-precomp -pipe
 -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g
 -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization
 -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-
 strings -O3 -fno-math-errno
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavcodec
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavformat
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libswscale
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavdevice
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavfilter
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
 -DHAVE_AV_CONFIG_H  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"
 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil
 -O2 -DHAVE_LRINTF -I/opt/local/include -no-cpp-precomp -pipe
 -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -g
 -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization
 -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-
 strings -O3 -fno-math-errno  -c -o yuv2rgb.o yuv2rgb.c
 yuv2rgb.c:392: warning: 'yuv2rgb_c_8' defined but not used
 yuv2rgb.c:447: warning: 'yuv2rgb_c_4' defined but not used
 yuv2rgb.c:519: warning: 'yuv2rgb_c_4b' defined but not used
 rm -f libswscale.a
 ar rc libswscale.a rgb2rgb.o swscale.o yuv2rgb.o
 ranlib libswscale.a
 gcc -dynamiclib -Wl,-single_module
 -Wl,-install_name,/opt/local/lib/libswscale.dylib,-current_version,51.1.0,-compatibility_version,51.1.0
 -Wl,-read_only_relocs,suppress -Wl,-dynamic,-search_paths_first
 -L/opt/local/lib -rdynamic -o libswscale..dylib rgb2rgb.o swscale.o
 yuv2rgb.o
 -L"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/trunk"/libavutil
 -lavutil -lz -lm -la52
 ld: absolute addressing (perhaps -mdynamic-no-pic) used in
 _rgb24tobgr24_MMX from rgb2rgb.o not allowed in slidable image
 collect2: ld returned 1 exit status
 make[1]: *** [libswscale..dylib] Error 1
 make: *** [lib] Error 2

 Error: Status 1 encountered during processing.
 }}}

Comment (by wsiegrist at apple.com):

 I raised the attachment limit and wrapped your text in { { { } } } so its
 a little easier.

 Also, what version of XCode? I can build it with 10.5.2 and XCode 3.1.

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14694#comment:3>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list