Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#53566 closed defect (fixed)

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

Reported by: mrkapqa Owned by: Ionic (Mihai Moldovan)
Priority: Normal Milestone:
Component: ports Version: 2.4.0
Keywords: snowleopard Cc:
Port: mpv

Description

Hello,

after building succesfully on a MacPro with Snow Leopard now i tried on a Macbook Pro 1.1 but could not succeed

using Macports 2.3.4 and neither with 2.4.0

did activate first python 2.7 and clang 3-4 (don't remember why, though)

please see text file attached.

thanks

Attachments (4)

desktop (340.1 KB) - added by mrkapqa 8 years ago.
config.log (141.5 KB) - added by mrkapqa 8 years ago.
fresh (264.1 KB) - added by mrkapqa 8 years ago.
log.log (194.2 KB) - added by mrkapqa 7 years ago.
new log

Download all attachments as: .zip

Change History (20)

Changed 8 years ago by mrkapqa

Attachment: desktop added

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

Keywords: snowleopard added; mpv snow leopard removed
Owner: set to Ionic
Status: newassigned

In the future, please Cc the port maintainers (port info --maintainers mpv), if any.

comment:2 Changed 8 years ago by Ionic (Mihai Moldovan)

Sorry, that's not helpful. I would assume that there's something in /usr/local that provokes this failure, but I have no idea. Can you please upload the file $(port work mpv)/mpv-0.22.0/build/config.log?

comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: mpv@snow leopard : fails to configurempv @0.22.0: You manually enabled the feature 'cocoa', but the autodetection check failed.

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

We could link #49860 and this report together, though I'm not sure it's really the same issue. The reporter there solved it by re-installing Xcode - but that was on an upgrade from 10.10 to 10.11. Probably not the same root cause for failures on 10.6 - more so because I depend upon clang-3.4 on older platforms.

Changed 8 years ago by mrkapqa

Attachment: config.log added

comment:5 Changed 8 years ago by mrkapqa

please see attached .log

i think it is because i manually did "sudo port activate python2.7" or "sudo port activate clang-3.4"?

sorry

comment:6 Changed 8 years ago by mrkapqa

did clean install with macports 2.3.4 and sudo port sync

sudo port install mpv +audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11

stops here

Attempting to fetch mpv-0.22.0.tar.gz from https://github.com/mpv-player/mpv/tarball/v0.22.0 ---> Attempting to fetch waf-1.8.12 from http://nue.de.distfiles.macports.org/mpv ---> Verifying checksums for mpv ---> Extracting mpv ---> Applying patches to mpv ---> Configuring mpv Error: org.macports.configure for port mpv returned: configure failure: command execution failed

do i need to upgrade python first so that it can handle waf-1.8.12?

Changed 8 years ago by mrkapqa

Attachment: fresh added

comment:7 Changed 8 years ago by Ionic (Mihai Moldovan)

No, it looks like the Object Subscripting fails. I've added support for this manually and made sure that clang-3.4 supports it. I see you're building on i386. Looks like Object Subscripting doesn't work on i386 at all.

From http://releases.llvm.org/3.4/tools/clang/docs/ObjectiveCLiterals.html:

An Objective-C subscript expression occurs when the base operand of the C subscript operator has an Objective-C object pointer type. Since this potentially collides with pointer arithmetic on the value, these expressions are only supported under the modern Objective-C runtime, which categorically forbids such arithmetic.

This "modern Objective-C runtime" is only available on x86_64 - as a compiler feature.

I'm afraid there isn't much I can do about that. I could probably patch mpv's source code to not use Object Subscripting at all, but that's probably a lot of work.

comment:8 Changed 8 years ago by mrkapqa

thank yo so much,

what i don't understand is why it did build then on the MacPro 4.1 with Xeon Processor - i am afraid but don't remember if i passed some option before you gave me

sudo port install mpv +audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11

but certainly it worked there and here on Macbook Pro 1.1 (T2600 DualCore Processor) not.

comment:9 Changed 8 years ago by Ionic (Mihai Moldovan)

Easy. Your T2600 is a 32bit-only processor, but your Xeon supports 64bit as well. mpv uses features that are only available on systems with a 64bit processor. I probably patch that around, but it would be a lot of work and difficult to actually do because I'd need to setup a 32bit-only MacPorts copy in my 10.6 VM. Meh.

comment:10 Changed 8 years ago by mrkapqa

then i would have to switch to linux in order to use mpv @ i386?

comment:11 Changed 8 years ago by Ionic (Mihai Moldovan)

Well... probably, if they support i386 even on Linux. I could try to hack mpv so that it doesn't use Object Subscripting, but it's a timer burner since a.) I could only do so on a grep-and-change basis b.) can't test such changes myself (as my 10.6 VM is perfectly capable of executing x86_64 binaries) c.) given it's a compiler feature that kicks in using "normal" array access semantics and rewriting source code internally, it's easy to miss places where this feature is used.

comment:12 Changed 8 years ago by mrkapqa

Hello Mihai,

thank you very much / today i could install lubuntu i386 alongside snowleopard on the macbook pro 1.1 and i am very pleased with result | interestingly the sound via alsa is so much better than on osx really very surprising and i was able to install mpv using this guide here https://nyxi.eu/compiling-mpv-on-debian.html#compiling-mpv-on-debian now youtube-viewer also fully functional this is actually the first time that i found a laptop that has nice sound output via linux, after i was quite shocked how sound output was on the same machine in osx /when compared to my older powerbook g4 1,67 15inch.

comment:13 Changed 7 years ago by Mihai Moldovan <ionic@…>

Resolution: fixed
Status: assignedclosed

In 3e31e0099fa0d29bfe27c277eed85ca43a298845/macports-ports:

multimedia/mpv: also switch to pure X11 output when the build arch is not x86_64.

Fixes: #53566

comment:14 Changed 7 years ago by mrkapqa

i am again having this problem here on machine with lion 10.7.5

Cocoa : no :info:configure You manually enabled the feature 'cocoa', but the autodetection check failed. :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.26.0" && /opt/local/bin/python2.7 ./waf configure --prefix=/opt/local --enable-manpage-build --enable-libass --enable-coreaudio --enable-cocoa --enable-cplugins --enable-zlib --disable-html-build --disable-videotoolbox-hwaccel-old --disable-videotoolbox-hwaccel-new --disable-videotoolbox-gl --disable-cuda-hwaccel --disable-opensles --disable-egl-drm --disable-egl-angle-lib --disable-egl-angle-win32 --disable-audiounit --disable-ios-gl --disable-mali-fbdev --disable-direct3d --disable-android --disable-rpi --disable-dvbin --disable-pdf-build --disable-test --disable-clang-database --disable-debug-build --disable-libsmbclient --enable-dvdread --enable-dvdnav --enable-cdda --disable-vapoursynth --disable-vapoursynth-lazy --enable-libarchive --enable-rubberband --disable-pulse --disable-jack --disable-openal --enable-gl-cocoa --disable-x11 --disable-xv --disable-gl-x11 --disable-egl-x11 --disable-caca --disable-jpeg --disable-tv --enable-apple-remote --enable-gl --disable-zsh-comp --disable-javascript --disable-uchardet --enable-lua --lua=52fbsd --enable-libass-osd :info:configure Exit code: 1 :error:configure Failed to configure mpv: configure failure: command execution failed :debug:configure Error code: NONE :debug:configure Backtrace: configure failure: command execution failed :debug:configure while executing :debug:configure "$procedure $targetname" :error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/main.log for details.

comment:15 Changed 7 years ago by mrkapqa

please see attached log.

Last edited 7 years ago by mrkapqa (previous) (diff)

Changed 7 years ago by mrkapqa

Attachment: log.log added

new log

comment:16 Changed 7 years ago by mrkapqa

it is a machine 2011 with radeon hd 6630m

Note: See TracTickets for help on using tickets.