[MacPorts] #38501: cmake build fails (was: I am trying to install wine on mac and this is what I keep getting. Any suggestions?)

MacPorts noreply at macports.org
Fri Mar 22 19:59:42 PDT 2013


#38501: cmake build fails
---------------------------+--------------------------------
  Reporter:  braden_jon@…  |      Owner:  macports-tickets@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.1.3
Resolution:                |   Keywords:
      Port:  cmake         |
---------------------------+--------------------------------
Changes (by ryandesign@…):

 * cc: braden_jon@… (removed)
 * cc: ryandesign@…, css@… (added)
 * port:   => cmake


Old description:

> echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$'\n'export
> MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile
> export PATH=/opt/local/bin:/opt/local/sbin:$PATH
> export MANPATH=/opt/local/man:$MANPATH
> Macintosh-3:~ jonbraden$ export PATH=/opt/local/bin:/opt/local/sbin:$PATH
> Macintosh-3:~ jonbraden$ export MANPATH=/opt/local/man:$MANPATH
> Macintosh-3:~ jonbraden$ if [ `sysctl -n hw.cpu64bit_capable` -eq 1 ] ;
> then echo "+universal" | sudo tee -a
> /opt/local/etc/macports/variants.conf; else echo "not 64bit capable"; fi
> +universal
> Macintosh-3:~ jonbraden$ sudo xcodebuild -license
> unknown option: -license
> Usage: xcodebuild [-project <projectname>] [-activetarget] [-alltargets]
> [-target <targetname>]... [-parallelizeTargets] [-activeconfiguration]
> [-configuration <configurationname>] [-sdk <sdkfullpath>|<sdkname>]
> [<buildsetting>=<value>]... [<buildaction>]...
>        xcodebuild [-version [-sdk [<sdkfullpath>|<sdkname>] [<item>] ]
>        xcodebuild [-showsdks]
>        xcodebuild [-find <binary> -sdk <sdkfullpath>|<sdkname>]
>        xcodebuild [-list]
> Macintosh-3:~ jonbraden$ sudo port install wine
> --->  Computing dependencies for wine
> --->  Dependencies to be installed: gstreamer010-gst-plugins-base gnome-
> vfs gconf gtk2 pango harfbuzz graphite2 cmake icu shared-mime-info xorg-
> libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-
> libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama
> xorg-xineramaproto xorg-libXrandr xorg-randrproto orbit2 libidl policykit
> eggdbus gnome-mime-data libtheora libvorbis libogg orc xorg-libice xorg-
> libsm lcms mesa makedepend tcl xorg-dri2proto xorg-glproto xorg-libXmu
> xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto
> Error: cmake cannot be installed for the configured universal_archs 'i386
> ppc' because it only supports the arch(s) 'i386 x86_64'.
> Error: Failed to install cmake
> Please see the log file for port cmake for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log
> Error: The following dependencies were not installed: gstreamer010-gst-
> plugins-base gnome-vfs gconf gtk2 pango harfbuzz graphite2 cmake icu
> shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes
> xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-
> libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
> orbit2 libidl policykit eggdbus gnome-mime-data libtheora libvorbis
> libogg orc xorg-libice xorg-libsm lcms mesa makedepend tcl xorg-dri2proto
> xorg-glproto xorg-libXmu xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto
> To report a bug, follow the instructions in the guide:
>     http://guide.macports.org/#project.tickets
> Error: Processing of port wine failed
> Macintosh-3:~ jonbraden$ install cmake
> usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
>                [-o owner] file1 file2
>        install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
>                [-o owner] file1 ... fileN directory
>        install -d [-v] [-g group] [-m mode] [-o owner] directory ...
> Macintosh-3:~ jonbraden$ sudo port install wine
> --->  Computing dependencies for wine
> --->  Dependencies to be installed: gstreamer010-gst-plugins-base gnome-
> vfs gconf gtk2 pango harfbuzz graphite2 cmake icu shared-mime-info xorg-
> libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-
> libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama
> xorg-xineramaproto xorg-libXrandr xorg-randrproto orbit2 libidl policykit
> eggdbus gnome-mime-data libtheora libvorbis libogg orc xorg-libice xorg-
> libsm lcms mesa makedepend tcl xorg-dri2proto xorg-glproto xorg-libXmu
> xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto
> Error: cmake cannot be installed for the configured universal_archs 'i386
> ppc' because it only supports the arch(s) 'i386 x86_64'.
> Error: Failed to install cmake
> Please see the log file for port cmake for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log
> Error: The following dependencies were not installed: gstreamer010-gst-
> plugins-base gnome-vfs gconf gtk2 pango harfbuzz graphite2 cmake icu
> shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes
> xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-
> libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
> orbit2 libidl policykit eggdbus gnome-mime-data libtheora libvorbis
> libogg orc xorg-libice xorg-libsm lcms mesa makedepend tcl xorg-dri2proto
> xorg-glproto xorg-libXmu xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto
> To report a bug, follow the instructions in the guide:
>     http://guide.macports.org/#project.tickets
> Error: Processing of port wine failed
> Macintosh-3:~ jonbraden$ install gstreamer
> usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
>                [-o owner] file1 file2
>        install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
>                [-o owner] file1 ... fileN directory
>        install -d [-v] [-g group] [-m mode] [-o owner] directory ...
> Macintosh-3:~ jonbraden$ install dependencies
> usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
>                [-o owner] file1 file2
>        install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
>                [-o owner] file1 ... fileN directory
>        install -d [-v] [-g group] [-m mode] [-o owner] directory ...
> Macintosh-3:~ jonbraden$

New description:

 {{{
 echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$'\n'export
 MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile
 export PATH=/opt/local/bin:/opt/local/sbin:$PATH
 export MANPATH=/opt/local/man:$MANPATH
 Macintosh-3:~ jonbraden$ export PATH=/opt/local/bin:/opt/local/sbin:$PATH
 Macintosh-3:~ jonbraden$ export MANPATH=/opt/local/man:$MANPATH
 Macintosh-3:~ jonbraden$ if [ `sysctl -n hw.cpu64bit_capable` -eq 1 ] ;
 then echo "+universal" | sudo tee -a
 /opt/local/etc/macports/variants.conf; else echo "not 64bit capable"; fi
 +universal
 Macintosh-3:~ jonbraden$ sudo xcodebuild -license
 unknown option: -license
 Usage: xcodebuild [-project <projectname>] [-activetarget] [-alltargets]
 [-target <targetname>]... [-parallelizeTargets] [-activeconfiguration]
 [-configuration <configurationname>] [-sdk <sdkfullpath>|<sdkname>]
 [<buildsetting>=<value>]... [<buildaction>]...
        xcodebuild [-version [-sdk [<sdkfullpath>|<sdkname>] [<item>] ]
        xcodebuild [-showsdks]
        xcodebuild [-find <binary> -sdk <sdkfullpath>|<sdkname>]
        xcodebuild [-list]
 Macintosh-3:~ jonbraden$ sudo port install wine
 --->  Computing dependencies for wine
 --->  Dependencies to be installed: gstreamer010-gst-plugins-base gnome-
 vfs gconf gtk2 pango harfbuzz graphite2 cmake icu shared-mime-info xorg-
 libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-
 libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama
 xorg-xineramaproto xorg-libXrandr xorg-randrproto orbit2 libidl policykit
 eggdbus gnome-mime-data libtheora libvorbis libogg orc xorg-libice xorg-
 libsm lcms mesa makedepend tcl xorg-dri2proto xorg-glproto xorg-libXmu
 xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto
 Error: cmake cannot be installed for the configured universal_archs 'i386
 ppc' because it only supports the arch(s) 'i386 x86_64'.
 Error: Failed to install cmake
 Please see the log file for port cmake for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log
 Error: The following dependencies were not installed: gstreamer010-gst-
 plugins-base gnome-vfs gconf gtk2 pango harfbuzz graphite2 cmake icu
 shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes
 xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-
 libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
 orbit2 libidl policykit eggdbus gnome-mime-data libtheora libvorbis libogg
 orc xorg-libice xorg-libsm lcms mesa makedepend tcl xorg-dri2proto xorg-
 glproto xorg-libXmu xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port wine failed
 Macintosh-3:~ jonbraden$ install cmake
 usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
                [-o owner] file1 file2
        install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
                [-o owner] file1 ... fileN directory
        install -d [-v] [-g group] [-m mode] [-o owner] directory ...
 Macintosh-3:~ jonbraden$ sudo port install wine
 --->  Computing dependencies for wine
 --->  Dependencies to be installed: gstreamer010-gst-plugins-base gnome-
 vfs gconf gtk2 pango harfbuzz graphite2 cmake icu shared-mime-info xorg-
 libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-
 libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama
 xorg-xineramaproto xorg-libXrandr xorg-randrproto orbit2 libidl policykit
 eggdbus gnome-mime-data libtheora libvorbis libogg orc xorg-libice xorg-
 libsm lcms mesa makedepend tcl xorg-dri2proto xorg-glproto xorg-libXmu
 xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto
 Error: cmake cannot be installed for the configured universal_archs 'i386
 ppc' because it only supports the arch(s) 'i386 x86_64'.
 Error: Failed to install cmake
 Please see the log file for port cmake for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log
 Error: The following dependencies were not installed: gstreamer010-gst-
 plugins-base gnome-vfs gconf gtk2 pango harfbuzz graphite2 cmake icu
 shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes
 xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-
 libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
 orbit2 libidl policykit eggdbus gnome-mime-data libtheora libvorbis libogg
 orc xorg-libice xorg-libsm lcms mesa makedepend tcl xorg-dri2proto xorg-
 glproto xorg-libXmu xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port wine failed
 Macintosh-3:~ jonbraden$ install gstreamer
 usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
                [-o owner] file1 file2
        install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
                [-o owner] file1 ... fileN directory
        install -d [-v] [-g group] [-m mode] [-o owner] directory ...
 Macintosh-3:~ jonbraden$ install dependencies
 usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
                [-o owner] file1 file2
        install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
                [-o owner] file1 ... fileN directory
        install -d [-v] [-g group] [-m mode] [-o owner] directory ...
 Macintosh-3:~ jonbraden$
 }}}

--

Comment:

 Please use WikiFormatting when writing in Trac. As reporter, you do not
 need to Cc yourself, but you should Cc the maintainers of the port in
 question, and you should put its name in the Port field. This is all
 mentioned in our ticket filing guidelines.

 In this case the port that failed is cmake. Above you were shown the
 location of the cmake main.log file which might have more details about
 why it failed; you should attach that file to this ticket. But it might
 just be this error which was displayed:
 {{{
 Error: cmake cannot be installed for the configured universal_archs 'i386
 ppc' because it only supports the arch(s) 'i386 x86_64'.
 }}}

 This suggests to me that you are on a 64-bit capable Mac running Snow
 Leopard or later, but for some reason in your macports.conf you have
 universal_archs set to i386 ppc. If that's correct, then please edit
 macports.conf and set universal_archs to i386 x86_64. The only reason this
 should be wrong is if you deliberately changed it, or you upgraded or
 migrated from Leopard or older to Snow Leopard or later and did not follow
 the [wiki:Migration migration instructions]; if the latter, please follow
 them now.

 Your transcript above also shows you trying to accept the Xcode license
 agreement, and this failing. The fact that this failed suggests perhaps
 you have an old version of Xcode installed and should update. Your
 transcript does not say what version of OS X you have but if you have 10.7
 Lion or 10.8 Mountain Lion please update to Xcode 4.6.1 from the Mac App
 Store or Apple Developer Connection. Then open Xcode app, go to
 Preferences, to Downloads, and install or update the command line tools.
 Then try again to accept the Xcode license agreement as you did before. Do
 it twice: once with `sudo`, once without. If on 10.6 Snow Leopard, use at
 least Xcode 3.2.6. In this case, there is no separate command line tools
 download or license agreement acceptance to do.

 The transcript also shows you adding "+universal" to variants.conf if your
 machine is 64-bit. I recall this step being mentioned in one of the
 tutorials out there about how to install wine, but this step has not been
 needed for several years now and you should not do it (unless you want for
 other reasons to always build universal software).

 Your transcript also shows you using the "install" command and receiving
 an error message. This is normal. To install a port, you would run "sudo
 port install ...", not just "install ...".

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


More information about the macports-tickets mailing list