Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#44662 closed defect (fixed)

mpv @0.5.0: You manually enabled the feature 'cocoa', but the autodetection check failed.

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Ionic (Mihai Moldovan)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: mpv

Description

On the Snow Leopard buildslave mpv fails to configure:

Checking for Cocoa                                                        : no 
You manually enabled the feature 'cocoa', but the autodetection check failed.
Command failed:  cd "/opt/local/var/macports/build/_opt_mports_dports_multimedia_mpv/mpv/work/mpv-0.5.0" && /opt/local/bin/python2.7 ./waf configure --prefix=/opt/local --prefix=/opt/local --nocache --enable-manpage-build --enable-libass --enable-coreaudio --enable-cocoa --enable-corevideo --disable-pdf-build --enable-macosx-bundle --disable-debug-build --disable-libsmbclient --disable-lirc --enable-dvdread --enable-dvdnav --disable-cdda --disable-enca --enable-mpg123 --disable-pulse --disable-portaudio --disable-jack --disable-openal --enable-gl-cocoa --disable-x11 --disable-xss --disable-xext --disable-xv --disable-gl-x11 --disable-xinerama --disable-xf86vm --disable-xf86xk --disable-caca --disable-jpeg --disable-tv --enable-vda-hwaccel --enable-vda-gl --enable-lua --lua=52 --enable-libass-osd 

Attachments (3)

main.log (117.0 KB) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.
config.log (121.5 KB) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.
mpv2.diff (768 bytes) - added by Ionic (Mihai Moldovan) 10 years ago.
Maybe-fix for SL issue.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 10 years ago by Ionic (Mihai Moldovan)

I suppose there is no way to check the logs, as the bot cleans the workdir after failure?

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Correct, and the buildslaves' filesystems are not accessible to us in any case. We would have to try to build it ourselves on a Snow Leopard machine. Which I've done, and I'm attaching the main.log and config.log from that. The reason why the cocoa test fails seems to be:

.../mpv-0.5.0/osdep/macosx_compat.h:44:18: error: missing binary operator before token "("

Line 44 of macosx_compat.h is:

#if __has_feature(objc_bool)

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: config.log added

comment:3 Changed 10 years ago by Ionic (Mihai Moldovan)

More like

/Volumes/Data/macports/snowleopard/var/macports/build/_Volumes_Data_macports_dports_multimedia_mpv/mpv/work/mpv-0.5.0/osdep/macosx_compat.h:44:5: warning: "__has_feature" is not defined

__has_feature is only available in clang.

Seems like I have to blacklist *gcc* and prefer clang-3.4 (any other clang may do as well, but if no clang is available, prefer 3.4 for now.)

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: mpv2.diff added

Maybe-fix for SL issue.

comment:4 Changed 10 years ago by Ionic (Mihai Moldovan)

If possible, please apply this before #45302 to see whether the SL build bot finishes successfully.

Last edited 10 years ago by Ionic (Mihai Moldovan) (previous) (diff)

comment:5 Changed 10 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

comment:6 Changed 10 years ago by Ionic (Mihai Moldovan)

Just using clang is not enough. The cocoa interface will only work 10.6 if ARCLite is available within Xcode. Unfortunately, ARCLite is only available in Xcode 4.2, which was a paid update at that time and can even retrospectively only be downloaded by paid OS X developers ($99/a.) We can neither put this burden on the buildbots, nor 10.6 users.

The latest, freely-available Xcode version for 10.6 is 3.2.6, which does not support ARCLite.

Two options now:

  • disable the cocoa output on 10.6 and force the x11 output (does this really make sense?)
  • completely disable mpv on 10.6 and below.
Note: See TracTickets for help on using tickets.