Opened 13 years ago

Closed 12 years ago

#33735 closed defect (fixed)

ffmpeg-devel (20120317_0): build failure

Reported by: Pesthauch666@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), nilstec_inc@…
Port: ffmpeg-devel

Description

I was trying to upgrade to the recent version (on 10.6.8 Snow Leopard), but it failed to built. I already did "tabula rasa" by uninstalling/cleaning the previous installation, but with no avail. ATM I switched back to the stable version of ffmpeg, which is compiling just fine, since I'm using ffmpeg almost daily. And BTW I encountered a similar problem (those weird characters found in source), while upgrading "mednafen" too.

Problems found in log file:

:info:build libswscale/x86/rgb2rgb_template.c: In function ‘rgb15tobgr24_MMX’:
:info:build libswscale/x86/rgb2rgb_template.c:814: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
:info:build libswscale/x86/rgb2rgb_template.c:811: error: ‘asm’ operand has impossible constraints
:info:build libswscale/x86/rgb2rgb_template.c:814: error: ‘asm’ operand has impossible constraints
:info:build libswscale/x86/rgb2rgb_template.c:879: error: ‘asm’ operand has impossible constraints
:info:build {standard input}:1411:non-relocatable subtraction expression, "_blue_15mask" minus "L00000000011$pb"
:info:build {standard input}:1411:symbol: "_blue_15mask" can't be undefined in a subtraction expression
:info:build {standard input}:1400:non-relocatable subtraction expression, "_green_15mask" minus "L00000000011$pb"
:info:build {standard input}:1400:symbol: "_green_15mask" can't be undefined in a subtraction expression
:info:build {standard input}:1399:non-relocatable subtraction expression, "_red_15mask" minus "L00000000011$pb"
:info:build {standard input}:1399:symbol: "_red_15mask" can't be undefined in a subtraction expression
:info:build {standard input}:1274:non-relocatable subtraction expression, "_blue_15mask" minus "L00000000010$pb"
:info:build {standard input}:1274:symbol: "_blue_15mask" can't be undefined in a subtraction expression
:info:build {standard input}:1263:non-relocatable subtraction expression, "_green_15mask" minus "L00000000010$pb"
:info:build {standard input}:1263:symbol: "_green_15mask" can't be undefined in a subtraction expression
:info:build {standard input}:1262:non-relocatable subtraction expression, "_red_15mask" minus "L00000000010$pb"
:info:build {standard input}:1262:symbol: "_red_15mask" can't be undefined in a subtraction expression
:info:build {standard input}:1137:non-relocatable subtraction expression, "_blue_16mask" minus "L00000000009$pb"
:info:build {standard input}:1137:symbol: "_blue_16mask" can't be undefined in a subtraction expression
:info:build {standard input}:1126:non-relocatable subtraction expression, "_green_16mask" minus "L00000000009$pb"
:info:build {standard input}:1126:symbol: "_green_16mask" can't be undefined in a subtraction expression
:info:build {standard input}:1125:non-relocatable subtraction expression, "_red_16mask" minus "L00000000009$pb"
:info:build {standard input}:1125:symbol: "_red_16mask" can't be undefined in a subtraction expression
:info:build {standard input}:1000:non-relocatable subtraction expression, "_blue_16mask" minus "L00000000008$pb"
:info:build {standard input}:1000:symbol: "_blue_16mask" can't be undefined in a subtraction expression
:info:build {standard input}:989:non-relocatable subtraction expression, "_green_16mask" minus "L00000000008$pb"
:info:build {standard input}:989:symbol: "_green_16mask" can't be undefined in a subtraction expression
:info:build {standard input}:988:non-relocatable subtraction expression, "_red_16mask" minus "L00000000008$pb"
:info:build {standard input}:988:symbol: "_red_16mask" can't be undefined in a subtraction expression
:info:build {standard input}:874:non-relocatable subtraction expression, "_blue_15mask" minus "L00000000007$pb"
:info:build {standard input}:874:symbol: "_blue_15mask" can't be undefined in a subtraction expression
:info:build {standard input}:863:non-relocatable subtraction expression, "_green_15mask" minus "L00000000007$pb"
:info:build {standard input}:863:symbol: "_green_15mask" can't be undefined in a subtraction expression
:info:build {standard input}:862:non-relocatable subtraction expression, "_red_15mask" minus "L00000000007$pb"
:info:build {standard input}:862:symbol: "_red_15mask" can't be undefined in a subtraction expression
:info:build {standard input}:759:non-relocatable subtraction expression, "_mul3215" minus "L00000000006$pb"
:info:build {standard input}:759:symbol: "_mul3215" can't be undefined in a subtraction expression
:info:build {standard input}:758:non-relocatable subtraction expression, "_mask3216br" minus "L00000000006$pb"
:info:build {standard input}:758:symbol: "_mask3216br" can't be undefined in a subtraction expression
:info:build {standard input}:757:non-relocatable subtraction expression, "_mask3215g" minus "L00000000006$pb"
:info:build {standard input}:757:symbol: "_mask3215g" can't be undefined in a subtraction expression
:info:build {standard input}:644:non-relocatable subtraction expression, "_blue_16mask" minus "L00000000005$pb"
:info:build {standard input}:644:symbol: "_blue_16mask" can't be undefined in a subtraction expression
:info:build {standard input}:633:non-relocatable subtraction expression, "_green_16mask" minus "L00000000005$pb"
:info:build {standard input}:633:symbol: "_green_16mask" can't be undefined in a subtraction expression
:info:build {standard input}:632:non-relocatable subtraction expression, "_red_16mask" minus "L00000000005$pb"
:info:build {standard input}:632:symbol: "_red_16mask" can't be undefined in a subtraction expression
:info:build {standard input}:529:non-relocatable subtraction expression, "_mul3216" minus "L00000000004$pb"
:info:build {standard input}:529:symbol: "_mul3216" can't be undefined in a subtraction expression
:info:build {standard input}:528:non-relocatable subtraction expression, "_mask3216br" minus "L00000000004$pb"
:info:build {standard input}:528:symbol: "_mask3216br" can't be undefined in a subtraction expression
:info:build {standard input}:527:non-relocatable subtraction expression, "_mask3216g" minus "L00000000004$pb"
:info:build {standard input}:527:symbol: "_mask3216g" can't be undefined in a subtraction expression
:info:build {standard input}:404:non-relocatable subtraction expression, "_mask15b" minus "L00000000003$pb"
:info:build {standard input}:404:symbol: "_mask15b" can't be undefined in a subtraction expression
:info:build {standard input}:402:non-relocatable subtraction expression, "_mask15rg" minus "L00000000003$pb"
:info:build {standard input}:402:symbol: "_mask15rg" can't be undefined in a subtraction expression
:info:build {standard input}:286:non-relocatable subtraction expression, "_mask15s" minus "L00000000002$pb"
:info:build {standard input}:286:symbol: "_mask15s" can't be undefined in a subtraction expression
:info:build {standard input}:61:non-relocatable subtraction expression, "_mask32a" minus "L00000000001$pb"
:info:build {standard input}:61:symbol: "_mask32a" can't be undefined in a subtraction expression
:info:build gmake: *** [libswscale/x86/rgb2rgb.o] Error 1
:info:build gmake: *** Waiting for unfinished jobs....
:info:build yasm -f macho  -DPIC -DPREFIX -I. -I./ -I./libavutil/x86/ -Pconfig.asm -I libswscale/x86/ -o libswscale/x86/scale.o libswscale/x86/scale.asm
:info:build gmake: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_ffmpeg-devel/ffmpeg-devel/work/ffmpeg-69174fa-i386'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_ffmpeg-devel/ffmpeg-devel/work/ffmpeg-69174fa-i386" && /opt/local/bin/gmake -j2 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:build Warning: the following items did not execute (for ffmpeg-devel): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for ffmpeg-devel is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_ffmpeg-devel/ffmpeg-devel/main.log

Attachments (4)

main.log (2.0 MB) - added by Pesthauch666@… 13 years ago.
ffmpeg-devel 20120317_0 main.log
main.log.bz2 (51.5 KB) - added by Pesthauch666@… 13 years ago.
ffmpeg-devel 20120317_0: main.log
main.2.log (190.7 KB) - added by nilstec_inc@… 12 years ago.
output of sudo port install mediatomb
port_installed.log (24.5 KB) - added by nilstec_inc@… 12 years ago.
output of port installed

Change History (14)

Changed 13 years ago by Pesthauch666@…

Attachment: main.log added

ffmpeg-devel 20120317_0 main.log

Changed 13 years ago by Pesthauch666@…

Attachment: main.log.bz2 added

ffmpeg-devel 20120317_0: main.log

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to devans@…
Port: 20120317_0 removed

comment:2 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

What is the output of:

xcodebuild -version
/usr/bin/clang --version

comment:3 in reply to:  2 Changed 13 years ago by Pesthauch666@…

Replying to jeremyhu@…:

What is the output of:

xcodebuild -version
/usr/bin/clang --version

Since I'm still using Snow Leopard (never change a running system ;) - i switched from Leopard to Snow Leopard not until Lion came out) it's not the newest xcode version:

xcodebuild:

Xcode 3.2.6
Component versions: DevToolsCore-1809.0; DevToolsSupport-1806.0
BuildVersion: 10M2518

clang:

Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn)
Target: x86_64-apple-darwin10
Thread model: posix

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Cc: jeremyhu@… added

Is this still a problem with 20120718?

comment:5 in reply to:  4 Changed 12 years ago by Pesthauch666@…

Replying to jmr@…:

Is this still a problem with 20120718?


I've just checked. I had to uninstall the stable ffmpeg I've been using since the problem occured. But it seems, that ffmpeg-devel now compiles just fine. Thanks a lot!

BUT:
I guess I have to reinstall the stable one again, because it looks like mediatomb another port I'm using, which depends on ffmpeg fails to built with ffmpeg-devel.

excerpt from the mediatomb main.log

...

:info:build ../src/metadata/ffmpeg_handler.cc: In function ‘void addFfmpegMetadataFields(zmm::Ref<CdsItem>, AVFormatContext*)’:
:info:build ../src/metadata/ffmpeg_handler.cc:92: error: ‘struct AVFormatContext’ has no member named ‘title’
:info:build ../src/metadata/ffmpeg_handler.cc:94: error: ‘struct AVFormatContext’ has no member named ‘title’
:info:build ../src/metadata/ffmpeg_handler.cc:96: error: ‘struct AVFormatContext’ has no member named ‘title’
:info:build ../src/metadata/ffmpeg_handler.cc:98: error: ‘struct AVFormatContext’ has no member named ‘author’
:info:build ../src/metadata/ffmpeg_handler.cc:100: error: ‘struct AVFormatContext’ has no member named ‘author’
:info:build ../src/metadata/ffmpeg_handler.cc:102: error: ‘struct AVFormatContext’ has no member named ‘author’
:info:build ../src/metadata/ffmpeg_handler.cc:104: error: ‘struct AVFormatContext’ has no member named ‘album’
:info:build ../src/metadata/ffmpeg_handler.cc:106: error: ‘struct AVFormatContext’ has no member named ‘album’
:info:build ../src/metadata/ffmpeg_handler.cc:108: error: ‘struct AVFormatContext’ has no member named ‘album’
:info:build ../src/metadata/ffmpeg_handler.cc:110: error: ‘struct AVFormatContext’ has no member named ‘year’
:info:build ../src/metadata/ffmpeg_handler.cc:112: error: ‘struct AVFormatContext’ has no member named ‘year’
:info:build ../src/metadata/ffmpeg_handler.cc:114: error: ‘struct AVFormatContext’ has no member named ‘year’
:info:build ../src/metadata/ffmpeg_handler.cc:116: error: ‘struct AVFormatContext’ has no member named ‘genre’
:info:build ../src/metadata/ffmpeg_handler.cc:118: error: ‘struct AVFormatContext’ has no member named ‘genre’
:info:build ../src/metadata/ffmpeg_handler.cc:120: error: ‘struct AVFormatContext’ has no member named ‘genre’
:info:build ../src/metadata/ffmpeg_handler.cc:122: error: ‘struct AVFormatContext’ has no member named ‘comment’
:info:build ../src/metadata/ffmpeg_handler.cc:124: error: ‘struct AVFormatContext’ has no member named ‘comment’
:info:build ../src/metadata/ffmpeg_handler.cc:126: error: ‘struct AVFormatContext’ has no member named ‘comment’
:info:build ../src/metadata/ffmpeg_handler.cc:128: error: ‘struct AVFormatContext’ has no member named ‘track’
:info:build ../src/metadata/ffmpeg_handler.cc:130: error: ‘struct AVFormatContext’ has no member named ‘track’
:info:build ../src/metadata/ffmpeg_handler.cc:132: error: ‘struct AVFormatContext’ has no member named ‘track’
:info:build ../src/metadata/ffmpeg_handler.cc: In function ‘void addFfmpegResourceFields(zmm::Ref<CdsItem>, AVFormatContext*, int*, int*)’:
:info:build ../src/metadata/ffmpeg_handler.cc:181: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope
:info:build ../src/metadata/ffmpeg_handler.cc:212: error: ‘CODEC_TYPE_AUDIO’ was not declared in this scope
:info:build ../src/metadata/ffmpeg_handler.cc: In member function ‘virtual void FfmpegHandler::fillMetadata(zmm::Ref<CdsItem>)’:
:info:build ../src/metadata/ffmpeg_handler.cc:264: error: ‘av_open_input_file’ was not declared in this scope
:info:build ../src/metadata/ffmpeg_handler.cc:268: warning: ‘av_find_stream_info’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1390)
:info:build ../src/metadata/ffmpeg_handler.cc:268: warning: ‘av_find_stream_info’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1390)
:info:build ../src/metadata/ffmpeg_handler.cc:270: warning: ‘av_close_input_file’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1566)
:info:build ../src/metadata/ffmpeg_handler.cc:270: warning: ‘av_close_input_file’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1566)
:info:build ../src/metadata/ffmpeg_handler.cc:279: warning: ‘av_close_input_file’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1566)
:info:build ../src/metadata/ffmpeg_handler.cc:279: warning: ‘av_close_input_file’ is deprecated (declared at /opt/local/include/libavformat/avformat.h:1566)
:info:build make[2]: *** [libmediatomb_a-ffmpeg_handler.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build mv -f .deps/libmediatomb_a-main.Tpo .deps/libmediatomb_a-main.Po
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_mediatomb/mediatomb/work/mediatomb-0.12.1/build'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_mediatomb/mediatomb/work/mediatomb-0.12.1'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_mediatomb/mediatomb/work/mediatomb-0.12.1'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_mediatomb/mediatomb/work/mediatomb-0.12.1" && /usr/bin/make -j2 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port mediatomb returned: command execution failed
:debug:build Error code: CHILDSTATUS 19763 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for mediatomb: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port mediatomb for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_mediatomb/mediatomb/main.log
Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Owner: changed from devans@… to jeremyhu@…
Status: newassigned

Ok, sounds like an issue where ffmpeg's build system is using ${prefix}/include instead of its own headers... I hate those kinds of bugs...

Changed 12 years ago by nilstec_inc@…

Attachment: main.2.log added

output of sudo port install mediatomb

Changed 12 years ago by nilstec_inc@…

Attachment: port_installed.log added

output of port installed

comment:7 Changed 12 years ago by nilstec_inc@…

I get the exact same error as was given by Pesthauch666@… in comment:5 when installing mediatomb. I'm not using ffmpeg-devel, but the standard version. I just did the update to mountain lion and recompiled all my ports with a fresh install. I'll supply the main.log of mediatomb and the output of port installed. This could be related to ticket:36771.

Last edited 12 years ago by nilstec_inc@… (previous) (diff)

comment:8 Changed 12 years ago by nilstec_inc@…

Cc: nilstec_inc@… added

Cc Me!

comment:9 in reply to:  6 ; Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

This ticket was about a build failure of the ffmpeg-devel port. Since according to comment:5 that problem has been solved, presumably by updating ffmpeg-devel to a newer version, this ticket should be closed.

The ticket for mediatomb's problem building with latest ffmpeg is #36771.

Replying to jeremyhu@…:

Ok, sounds like an issue where ffmpeg's build system is using ${prefix}/include instead of its own headers...

What makes you say that?

comment:10 in reply to:  9 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: assignedclosed

Replying to ryandesign@…:

This ticket was about a build failure of the ffmpeg-devel port. Since according to comment:5 that problem has been solved, presumably by updating ffmpeg-devel to a newer version, this ticket should be closed.

Closing.

The ticket for mediatomb's problem building with latest ffmpeg is #36771.

Replying to jeremyhu@…:

Ok, sounds like an issue where ffmpeg's build system is using ${prefix}/include instead of its own headers...

What makes you say that?

I misread the build failure in the previous comment as having been from ffmpeg, and usually if a port doesn't understand its own struct, it's possibly using the wrong headers... so please disregard.

Note: See TracTickets for help on using tickets.