[MacPorts] #38594: why are these error happening?
#38594: why are these error happening? ------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: ------------------------+-------------------------------- Over past week i have been trying to fix but with no luck these errors when installing ports. My xcode is installed and i have the command line tools. Im running Mountain Lion and was following: [http://www.davidbaumgold.com/tutorials/wine-mac/]. I put in: {{{ sudo port install wine }}} and get: {{{ Error: Port wine not found }}} after i did {{{ sudo port sync }}} and again did {{{ sudo port install wine }}} i get a really long log and it says {{{ Warning: xcodebuild exists but failed to execute Warning: Xcode does not appear to be installed; most ports will likely fail to build. }}} when in fact it is installed! Here is the rest of the log {{{ ---> Computing dependencies for wine ---> Dependencies to be installed: expat fontconfig freetype bzip2 zlib libiconv gstreamer010 bison gettext ncurses m4 xz flex glib2 libffi perl5 perl5.12 gdbm libxml2 gstreamer010-gst-plugins-base gnome-vfs desktop- file-utils popt gconf dbus-glib dbus gtk2 atk gobject-introspection cairo libpixman libpng lzo2 pkgconfig xorg-libXext xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto xorg- xextproto xorg-xcb-util xrender xorg-renderproto gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme pango Xft2 harfbuzz graphite2 cmake libidn icu shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg- libXi xorg-inputproto xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar- list-utils p5.12-xml-parser orbit2 libidl policykit gnome-doc-utils docbook-xml docbook-xml-4.1.2 docbook-xml-4.2 xmlcatmgr docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0 docbook-xsl iso-codes libxslt py27-libxml2 rarian gnome-mime-data libtheora libvorbis libogg orc xorg-libice xorg-libsm lcms mesa xorg-dri2proto xorg-glproto xorg-libXmu xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto ---> Fetching archive for expat ---> Attempting to fetch expat-2.1.0_0+universal.darwin_12.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/expat ---> Attempting to fetch expat-2.1.0_0+universal.darwin_12.i386-x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/sites/packages.macports.org/expat ---> Installing expat @2.1.0_0+universal Error: org.macports.install for port expat returned: couldn't execute "/usr/bin/tar": Bad CPU type in executable Error: Failed to install expat Please see the log file for port expat for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log Error: The following dependencies were not installed: expat fontconfig freetype bzip2 zlib libiconv gstreamer010 bison gettext ncurses m4 xz flex glib2 libffi perl5 perl5.12 gdbm libxml2 gstreamer010-gst-plugins-base gnome-vfs desktop-file-utils popt gconf dbus-glib dbus gtk2 atk gobject- introspection cairo libpixman libpng lzo2 pkgconfig xorg-libXext xorg- libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto xorg-xextproto xorg-xcb-util xrender xorg-renderproto gdk- pixbuf2 jasper jpeg tiff hicolor-icon-theme pango Xft2 harfbuzz graphite2 cmake libidn icu shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg- damageproto xorg-libXi xorg-inputproto xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser orbit2 libidl policykit gnome- doc-utils docbook-xml docbook-xml-4.1.2 docbook-xml-4.2 xmlcatmgr docbook- xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0 docbook-xsl iso- codes libxslt py27-libxml2 rarian gnome-mime-data libtheora libvorbis libogg orc xorg-libice xorg-libsm lcms mesa 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 }}} ---- Another problem: ---- also here is another error i get and it is about how my mac cannot extract tarballs: i put in: {{{ sudo port selfupdate }}} and get: {{{ ---> Updating MacPorts base sources using rsync Error: /opt/local/bin/port: port selfupdate failed: Failed to extract MacPorts sources from tarball! }}} i get the tarballs error a lot and do not know why. And another error is "Bad CPU type in executable", which is just as annoying. Please help me fix all of these errors so i can get macports working! -- Ticket URL: <https://trac.macports.org/ticket/38594> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): i have added my most recent main.log of: sudo port install wine -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by egall@…): It looks like the error is actually with expat, not wine. Try attaching the main.log for expat. Also the sources.conf file looks like you haven't changed it from the default so I don't know why you included that... -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by egall@…): Also you say Xcode is actually installed, have you accepted the license agreement and installed the Command-Line Tools and everything? What does `xcodebuild -version` return? -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): {{{ xcodebuild -version }}} {{{ Xcode 4.5.1 Build version 4G1004 }}} i have fixed the xcode error warnings so far but the rest of the errors remain -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): Replying to [comment:3 egall@…]:
Also you say Xcode is actually installed, have you accepted the license agreement and installed the Command-Line Tools and everything? What does `xcodebuild -version` return?
{{{ xcodebuild -version }}} {{{ Xcode 4.5.1 Build version 4G1004 }}} i have fixed the xcode error warnings so far but the rest of the errors remain -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): also about the Bad CPU Type error, even if i just type 'tar' into terminal i get this: {{{ imac:~ connnor2$ tar -bash: /usr/bin/tar: Bad CPU type in executable }}} -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by larryv@…): {{{ :debug:activate Using /usr/bin/bzip2 :info:activate sh: /usr/bin/tar: Bad CPU type in executable }}} Uhm. What is the output of {{{ $ file /usr/bin/{,bsd}tar }}} -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): {{{ /usr/bin/tar: Mach-O executable ppc /usr/bin/bsdtar: Mach-O 64-bit executable x86_64 }}} -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): Replying to [comment:7 larryv@…]:
{{{ :debug:activate Using /usr/bin/bzip2 :info:activate sh: /usr/bin/tar: Bad CPU type in executable }}} Uhm.
What is the output of {{{ $ file /usr/bin/{,bsd}tar }}}
{{{ /usr/bin/tar: Mach-O executable ppc /usr/bin/bsdtar: Mach-O 64-bit executable x86_64 }}} -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by egall@…): Replying to [comment:9 connortk@…]:
Replying to [comment:7 larryv@…]:
{{{ :debug:activate Using /usr/bin/bzip2 :info:activate sh: /usr/bin/tar: Bad CPU type in executable }}} Uhm.
What is the output of {{{ $ file /usr/bin/{,bsd}tar }}}
{{{ /usr/bin/tar: Mach-O executable ppc /usr/bin/bsdtar: Mach-O 64-bit executable x86_64 }}}
OK, I'm not sure how you managed to have a ppc-only version of `tar` on Mountain Lion, as the normal Mountain Lion `tar` is supposed to be x86_64. Make sure you have all the latest system updates and stuff installed, and once you've done this, if you're still running into this problem, try reinstalling your system from scratch. In any case, this isn't a MacPorts problem, it's a problem with your OS being hosed. -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:9 connortk@…]:
Output: {{{ /usr/bin/tar: Mach-O executable ppc /usr/bin/bsdtar: Mach-O 64-bit executable x86_64 }}}
How is this even possible? You’re on x86_64 Mountain Lion. {{{ :debug:main OS darwin/12.2.0 (Mac OS X 10.8) arch i386 }}} I’m pretty sure `tar` is part of the core OS, so this doesn’t make me feel too good about the state of the rest of your system. I recommend just straight-up reinstalling the OS. This shouldn’t touch anything other than system files, so you don’t have to worry about your personal stuff getting lost. -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): Replying to [comment:11 larryv@…]:
Replying to [comment:9 connortk@…]:
Output: {{{ /usr/bin/tar: Mach-O executable ppc /usr/bin/bsdtar: Mach-O 64-bit executable x86_64 }}}
How is this even possible? You’re on x86_64 Mountain Lion. {{{ :debug:main OS darwin/12.2.0 (Mac OS X 10.8) arch i386 }}} I’m pretty sure `tar` is part of the core OS, so this doesn’t make me feel too good about the state of the rest of your system. I recommend just straight-up reinstalling the OS. This shouldn’t touch anything other than system files, so you don’t have to worry about your personal stuff getting lost.
I just updated to most recent version and got the same result in terminal. Will do that. -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:12 connortk@…]:
I just updated to most recent version and got the same result in terminal. Will do that.
Be sure to back up first, of course. For reference, on my Mountain Lion system, `/usr/bin/tar` is a symlink to `bsdtar`. -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): Replying to [comment:13 larryv@…]:
Replying to [comment:12 connortk@…]:
I just updated to most recent version and got the same result in terminal. Will do that.
Be sure to back up first, of course.
For reference, on my Mountain Lion system, `/usr/bin/tar` is a symlink to `bsdtar`.
yes, I most defiantly backup tonight and reinstall. Thanks -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by egall@…): Replying to [comment:14 connortk@…]:
defiantly
http://www.d-e-f-i-n-i-t-e-l-y.com (sorry, it's a pet peeve) -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by ryandesign@…): Replying to [comment:5 connortk@…]:
{{{ Xcode 4.5.1 Build version 4G1004 }}}
After you reinstall OS X, consider also updating to Xcode 4.6.1 (you can do this in the Mac App Store). Make sure you also update the Xcode command line tools (you can do this in the Xcode application's Preferences window, in the Downloads section). -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): Replying to [comment:15 egall@…]:
Replying to [comment:14 connortk@…]:
defiantly
http://www.d-e-f-i-n-i-t-e-l-y.com
(sorry, it's a pet peeve)
i always spell that wrong! :( -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): Replying to [comment:16 ryandesign@…]:
Replying to [comment:5 connortk@…]:
{{{ Xcode 4.5.1 Build version 4G1004 }}}
After you reinstall OS X, consider also updating to Xcode 4.6.1 (you can do this in the Mac App Store). Make sure you also update the Xcode command line tools (you can do this in the Xcode application's Preferences window, in the Downloads section).
Will do. -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by connortk@…): i reinstalled and Wine was installing dependencies correctly until it started to instal cairo. I tried syncing but no luck. I have attached the log file of it. -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: why are these error happening? -------------------------+-------------------------------- Reporter: connortk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by egall@…): Relevant part of log: {{{ :info:build grep: /opt/local/lib/libexpat.la: No such file or directory :info:build sed: /opt/local/lib/libexpat.la: No such file or directory :info:build libtool: link: `/opt/local/lib/libexpat.la' is not a valid libtool archive :info:build make[3]: *** [libcairo.la] Error 1 :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.14-x86_64/src' :info:build make[2]: *** [all] Error 2 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.14-x86_64/src' :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_ports_graphics_cairo/cairo/work/cairo-1.12.14-x86_64' :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_ports_graphics_cairo/cairo/work/cairo-1.12.14-x86_64' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/cairo/work/cairo-1.12.14-x86_64" && /usr/bin/make -j4 -w all :info:build Exit code: 2 }}} Hm, that's strange, I didn't think the `.la`-file-killing patch was going to make it into MacPorts until 2.2... must be some other problem. Does `/opt/local/lib/libexpat.la` actually exist? What does `stat /opt/local/lib/libexpat.la` return for you? How about `port installed expat`? If that returns something, how about `port contents expat`? -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:20> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: cairo @1.12.14_0+universal+x11 build failure: /opt/local/lib/libexpat.la: No such file or directory -------------------------+-------------------------- Reporter: connortk@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: cairo | -------------------------+-------------------------- Changes (by jmr@…): * owner: macports-tickets@… => ryandesign@… * port: => cairo -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:21> MacPorts <http://www.macports.org/> Ports system for OS X
#38594: cairo @1.12.14_0+universal+x11 build failure: /opt/local/lib/libexpat.la: No such file or directory -------------------------+-------------------------- Reporter: connortk@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: cairo | -------------------------+-------------------------- Comment (by jmr@…): Given that expat failed to install as shown in the description, you should probably refresh it like so: {{{ sudo port -f uninstall expat sudo port clean --all expat sudo port install expat }}} -- Ticket URL: <https://trac.macports.org/ticket/38594#comment:22> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts