[MacPorts] #50697: VLC @2.2.2: build fails when using recently released ffmpeg-3.0

MacPorts noreply at macports.org
Mon May 23 14:10:30 PDT 2016


#50697: VLC @2.2.2: build fails when using recently released ffmpeg-3.0
----------------------------+-------------------------
  Reporter:  devans@…       |      Owner:  rjvbertin@…
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:
      Port:  VLC VLC-devel  |
----------------------------+-------------------------

Comment (by devans@…):

 Some progress but no cigar as yet!  Here's my experience trying to build
 on Yosemite (10.10.5) Xcode 7.2.1

 First to make things work at all I needed to make a few modifications
   * the ffmpeg-VLC subport needs
 {{{
 PortGroup               xcodeversion 1.0
 }}}
 up with the others at the top.
   * although the ffmpeg-VLC subport is now included in the main Portfile,
 patch-static_assert.diff was still missing from the files directory.  I
 grabbed a copy from your github repo and things started to work.


 The ffmpeg-VLC subport builds fine but I'm not too excited about
 installing it in the /opt/local tree.  IMO, it should be treated as a
 private library and not be visible outside of the VLC build environment.
 To do this, you need to build static libraries and install them with
 include files and pkg-config files in a convenient directory in the build
 tree.  (Could even be contrib, for instance).  Then you just need to
 adjust your configuration so the build will find it.  Don't see any need
 for any of these files to be visible after the build is complete.

 For an example of another port that does something very similar see gimp-
 gap-devel.

 VLC then configured properly but initially failed at post-configure due to
 the missing patch file.  After adding the file things proceeded.

 The build was looking good and I was getting my hopes up when the whole
 thing blew up with sandbox issues when building the macosx bits
 {{{
 cd ./extras/package/macosx; cp -R Resources README.MacOSX.rtf
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/extras/package/macosx/
 mkdir -p
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/extras/package/macosx/vlc.xcodeproj/
 sed -e
 s,../../../contrib,/opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/contrib,g
 ./extras/package/macosx/vlc.xcodeproj/project.pbxproj \
         >
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/extras/package/macosx/vlc.xcodeproj/project.pbxproj
 REVISION=`(git --git-dir=./.git describe --always || echo exported)` && \
             sed "s/#REVISION#/$REVISION/g"
 ./extras/package/macosx/Info.plist \
         > ./tmp/extras/package/macosx/Info.plist
 fatal: Not a git repository: './.git'
 xcrun plutil -convert binary1 ./tmp/extras/package/macosx/Info.plist
 cp -R ./extras/package/macosx/Resources ./tmp/extras/package/macosx/
 cd "."; cp AUTHORS COPYING THANKS
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/
 mkdir -p ./tmp/modules/audio_output
 mkdir -p ./tmp/modules/gui/macosx
 cd "./modules/gui/macosx/" && cp *.h *.m
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/modules/gui/macosx/
 cd ./tmp/extras/package/macosx && \
                 xcodebuild -target vlc SYMROOT=../../../build
 DSTROOT=../../../build
 Build settings from command line:
     DSTROOT = ../../../build
     SYMROOT = ../../../build

 Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in
 domain for uid: 502
 2016-05-23 13:32:25.947 xcodebuild[80538:116712] launchctl print returned
 an error code: 28928
 2016-05-23 13:32:25.948 xcodebuild[80538:116712] Failed to locate a valid
 instance of CoreSimulatorService in the bootstrap.  Adding it now.
 Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in
 domain for uid: 502
 2016-05-23 13:32:26.869 xcodebuild[80538:116712] launchctl print returned
 an error code: 28928
 2016-05-23 13:32:26.869 xcodebuild[80538:116712] *** Assertion failure in
 -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid],
 /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-201.3/CoreSimulator/SimServiceContext.m:451
 ** INTERNAL ERROR: Uncaught exception **
 Exception: Unable to lookup com.apple.CoreSimulator.CoreSimulatorService
 in the bootstrap.  This can happen if running with a sandbox profile.
 When running with a sandbox profile, make sure that
 com.apple.CoreSimulator.CoreSimulatorService.xpc is owned by root, not
 group writable, and not world writable.  See <rdar://problem/22142915>.
 Stack:
 === BUILD TARGET vlc OF PROJECT vlc WITH THE DEFAULT CONFIGURATION
 (Default) ===

 Check dependencies

 Write auxiliary files
 write-file
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/vlc.build/Default/vlc.build/VLC.hmap

 Create product structure
 /bin/mkdir -p
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/Default/VLC.bundle/Contents
 /bin/mkdir -p
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/Default/VLC.bundle/Contents/Resources

 CopyStringsFile
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/Default/VLC.bundle/Contents/Resources/English.lproj/InfoPlist.strings
 Resources/English.lproj/InfoPlist.strings
     cd
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/extras/package/macosx
     builtin-copyStrings --validate --inputencoding iso-8859-1
 --outputencoding UTF-16 --outdir
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/Default/VLC.bundle/Contents/Resources/English.lproj
 -- Resources/English.lproj/InfoPlist.strings

 CpResource Resources/dsa_pub.pem
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/Default/VLC.bundle/Contents/Resources/dsa_pub.pem
     cd
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/extras/package/macosx
     builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude
 .git -exclude .hg -resolve-src-symlinks
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/extras/package/macosx/Resources/dsa_pub.pem
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/Default/VLC.bundle/Contents/Resources

 CpResource Resources/mainwindow_dark/titlebar/yosemite/yosemite-window-
 minimize at 2x.png
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/Default/VLC.bundle/Contents/Resources
 /yosemite-window-minimize at 2x.png
     cd
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/extras/package/macosx
     builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude
 .git -exclude .hg -resolve-src-symlinks
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/extras/package/macosx/Resources/mainwindow_dark/titlebar/yosemite
 /yosemite-window-minimize at 2x.png
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/Default/VLC.bundle/Contents/Resources

 CompileXIB Resources/English.lproj/AddonManager.xib
     cd
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/extras/package/macosx
     export
 XCODE_DEVELOPER_USR_PATH=/Applications/Xcode-7.2/Xcode.app/Contents/Developer/usr/bin/..
     /Applications/Xcode-7.2/Xcode.app/Contents/Developer/usr/bin/ibtool
 --errors --warnings --notices --plugin
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/contrib/BGHUDAppKit.framework/Resources/BGHUDAppKitPlugin.ibplugin
 --module VLC --output-partial-info-plist
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/vlc.build/Default/vlc.build
 /AddonManager-PartialInfo.plist --auto-activate-custom-fonts --target-
 device mac --minimum-deployment-target 10.11 --output-format human-
 readable-text --compile
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/build/Default/VLC.bundle/Contents/Resources/English.lproj/AddonManager.nib
 /opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/tmp/extras/package/macosx/Resources/English.lproj/AddonManager.xib
   0  0x00007fff8970a024 __exceptionPreprocess (in CoreFoundation)
   1  0x00007fff8ca2676e objc_exception_throw (in libobjc.A.dylib)
   2  0x00007fff89709e1a +[NSException raise:format:arguments:] (in
 CoreFoundation)
   3  0x00007fff8d6d599b -[NSAssertionHandler
 handleFailureInMethod:object:file:lineNumber:description:] (in Foundation)
   4  0x000000011175f2e5 -[SimServiceContext
 reloadServiceIfMovedOrAbortIfWeAreInvalid] (in CoreSimulator)
   5  0x000000011175fc03 -[SimServiceContext connect] (in CoreSimulator)
   6  0x000000011175e8bc -[SimServiceContext initWithConnectionType:] (in
 CoreSimulator)
   7  0x000000011175e41a +[SimServiceContext simContextWithConnectionType:]
 (in CoreSimulator)
   8  0x000000011175e3cb __41+[SimServiceContext
 sharedServiceContext]_block_invoke (in CoreSimulator)
   9  0x00007fff8d5e3e73 _dispatch_client_callout (in libdispatch.dylib)
  10  0x00007fff8d5e3d86 dispatch_once_f (in libdispatch.dylib)
  11  0x000000011175e3a9 +[SimServiceContext sharedServiceContext] (in
 CoreSimulator)
  12  0x000000011177e41a +[SimDeviceSet setForSetPath:] (in CoreSimulator)
  13  0x000000011177e3b6 +[SimDeviceSet defaultSet] (in CoreSimulator)
  14  0x000000011509cfe0 __42-[DVTiPhoneSimulatorLocator
 startLocating]_block_invoke (in IDEiOSSupportCore)
  15  0x000000010b6b1a58 __DVTDispatchAsync_block_invoke (in DVTFoundation)
  16  0x00007fff8d5e7700 _dispatch_call_block_and_release (in
 libdispatch.dylib)
  17  0x00007fff8d5e3e73 _dispatch_client_callout (in libdispatch.dylib)
  18  0x00007fff8d5e6dc7 _dispatch_root_queue_drain (in libdispatch.dylib)
  19  0x00007fff8d5e6a1c _dispatch_worker_thread3 (in libdispatch.dylib)
  20  0x00007fff87451a9d _pthread_wqthread (in libsystem_pthread.dylib)
  21  0x00007fff8744f3dd start_wqthread (in libsystem_pthread.dylib)

 /bin/sh: line 1: 80538 Abort trap: 6           xcodebuild -target vlc
 SYMROOT=../../../build DSTROOT=../../../build
 make[2]: *** [VLC-tmp] Error 134
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3'
 Command failed:  cd
 "/opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3"
 && /usr/bin/make -j4 -w all
 DESTDIR=/opt/local/var/macports/build/_Users_devans_macports_dports_multimedia_VLC/VLC/work/vlc-2.2.3/dest_ignore
 V=1
 Exit code: 2
 }}}

 And that's as far as I got.

 As I mentioned on the various lists a while ago, I'm going on vacation for
 a month and so this is about as far as I can go with this for now.  I'm
 referring this to Jeremy Huddleston (jeremyhu) to pick up where I left
 off.  He's a good choice as he knows a good deal more about VLC than I do
 as he a previous maintainer of the port.  The static assert issue is one
 that he worked on before as well so he have more insight there as well.

 Shouldn't take too much more to whip this one into shape with ffmpeg as a
 private library.  Looks like you've done a lot of work.

 I'll post my updated copy of the patch relative to the current version and
 also the full build log for VLC.

-- 
Ticket URL: <https://trac.macports.org/ticket/50697#comment:36>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list