Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#14694 closed defect (fixed)

ffmpeg won't build with avfilter variant

Reported by: dershow Owned by: reiffert@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: ffmpeg avfilter Cc: acho@…, wms@…, brianjlandau@…
Port:

Description (last modified by wsiegrist@…)

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.

Attachments (1)

logfile.txt.bz2 (15.9 KB) - added by dershow 17 years ago.
verbose install error log

Download all attachments as: .zip

Change History (10)

comment:1 Changed 17 years ago by reiffert@…

Cc: reiffert@… removed
Owner: changed from macports-tickets@… to reiffert@…

Please do: port clean ffmpeg; port -d install ffmpeg +avfilter > logfile.txt 2>&1 and attach this file to this ticket. Please also learn how to paste such long content like you did. See WikiFormatting.

Changed 17 years ago by dershow

Attachment: logfile.txt.bz2 added

verbose install error log

comment:2 Changed 17 years ago by dershow

I attached the file, as you have asked (although I had to compress it to hit the size limit of the server). Sorry about the formatting of the original posting. It looks like there is no way for me to edit it now, so I will just keep it in mind for next time.

comment:3 Changed 17 years ago by wsiegrist@…

Description: modified (diff)

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.

comment:4 Changed 17 years ago by wsiegrist@…

Cc: wms@… added

comment:5 Changed 17 years ago by dershow

I have XCode 3.0 (gcc -v reports version 4.0.1). But I just looked around on the ADC Member site and I can't find XCode 3.1. Where can I find that?

comment:6 Changed 17 years ago by wsiegrist@…

XCode 3.1 comes with the iPhone SDK. Its beta software. I doubt that could be what the issue is though.

comment:7 Changed 17 years ago by jmroot (Joshua Root)

Cc: brianjlandau@… added
Milestone: Port Bugs

Cc reporter of duplicate #14824.

comment:8 Changed 17 years ago by reiffert@…

Resolution: fixed
Status: newclosed

Fixed in r35694.

comment:9 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.