[MacPorts] #30809: gtk2 fails to build on lion
#30809: gtk2 fails to build on lion -------------------------------+-------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: gtk2 -------------------------------+-------------------------------------------- after sudo port sync sudo port selfupdate sudo port upgrade outdated gtk2 fails to build -- Ticket URL: <https://trac.macports.org/ticket/30809> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion -------------------------------+-------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: gtk2 -------------------------------+-------------------------------------------- Comment(by hofione@…): {{{ port info gtk2 gtk2 @2.24.5 (gnome, x11) Variants: no_x11, quartz, universal, [+]x11 Description: GTK+ is a highly usable, feature rich toolkit for creating graphical user interfaces which boasts cross platform compatibility and an easy to use API. GTK+ it is written in C, but has bindings to many other popular programming languages such as C++, Python and C# among others. Homepage: http://www.gtk.org/ Build Dependencies: pkgconfig, perl5 Library Dependencies: atk, pango, gdk-pixbuf2, xorg-libXi, xorg-libXrandr, xorg-libXcursor, xorg-libXinerama, xorg-libXdamage, xorg-libXcomposite, xorg-libXfixes Runtime Dependencies: shared-mime-info Platforms: darwin License: LGPL-2+ Maintainers: nomaintainer@macports.org }}} -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion -------------------------------+-------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: gtk2 -------------------------------+-------------------------------------------- Changes (by dports@…): * cc: hofione@… (removed) * cc: dports@… (added) Comment: This isn't a complete log; can you run a `sudo port clean gtk2` then retry upgrading, and post the resulting log if it fails? (and the ticket reporter is automatically cc'd, you don't need to cc yourself) -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion -------------------------------+-------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: gtk2 -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Old description:
after
sudo port sync sudo port selfupdate sudo port upgrade outdated
gtk2 fails to build
New description: after {{{ sudo port sync sudo port selfupdate sudo port upgrade outdated }}} gtk2 fails to build -- Comment: I see: {{{ libtool: link: `/opt/local/lib/libfreetype.la' is not a valid libtool archive }}} So, why isn't it a valid libtool archive? What's in it? What happens if you rebuild the freetype port? -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive -------------------------------+-------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: gtk2 -------------------------------+-------------------------------------------- Changes (by dports@…): * cc: jmr@… (added) Comment: jmr saw something similar today too, but with a different .la file. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive -------------------------------+-------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: gtk2 -------------------------------+-------------------------------------------- Comment(by ryandesign@…): I've fielded at least one instance of this before too, in which the .la file and several other files were the right size but composed entirely of null bytes: #30136 -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive -------------------------------+-------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: gtk2 -------------------------------+-------------------------------------------- Comment(by jmr@…): And today it built fine. I have no explanation. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive -------------------------------+-------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: gtk2 -------------------------------+-------------------------------------------- Comment(by hofione@…): Just like for me today Strange -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: worksforme | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => worksforme -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Changes (by dports@…): * status: closed => reopened * resolution: worksforme => Comment: I just hit this one myself, but I have no idea why. The .la files it's complaining about (two of them, this time) look perfectly fine, and the libtool command works when re-executed. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Comment(by ryandesign@…): If you are certain you are receiving the same error (`'foo.la' is not a valid libtool archive`), then can you please attach the libtool archive in question so I can take a look at it? I don't see how you could have gotten that message if retrying worked if and the libtool archive is fine. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Comment(by jmr@…): Same way I did, of course. Which is a complete mystery. I checked the .la file when the build failed and it was fine. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Comment(by dports@…): Sure, here are the libtool archives (I made a copy immediately after I saw the error, so they definitely haven't been modified in the interim). I don't have a build log handy, but the gtk build stopped when one libtool invocation errored out with `not a valid libtool archive` for both of these .la files, and the same command worked again when retried. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Comment(by ryandesign@…): Indeed. Your libXau.la is identical to mine, and your libpangocairo-1.0.la is practically identical (`-lbz2` occurs at a slightly different position in yours but that wouldn't matter). I can only conclude that Lion and/or its Xcode are strange. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * cc: Deil.Christoph@… (added) Comment: Same problem was mentioned in #30322, in which ImageMagick couldn't be built because of allegedly invalid libICE.la and libXt.la archives, but which are identical to the ones on my system. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Comment(by dports@…): Yes, I've noticed this when building gtk2 and ImageMagick. I haven't run into it for any other ports (though obviously that doesn't mean there aren't any). Still no idea what's going on, though. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Comment(by qhuys@…): So I had the same problem. The log file was: :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk2/gtk2/work/gtk+-2.24.6" && /usr/bin/make -j4 -w all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) So being new and naive, I cd'd into /opt/local.../work/gtk+-2.24.6 and simply typed: {{{ make -j4 -w all }}} which ran happily without errors. Then, I ran {{{ sudo port install gtk2 }}} again, and this time it happily continued. Mind you... I'm not sure whether I might have broken something? -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Comment(by macports@…): I tried running the command: {{{ sudo port upgrade outdated }}} again. Same error. Then I ran the command '''again''', and it worked! I think we might be seeing a Makefile dependency issue, where "-j" is causing one process to start linking before another process has finished creating the link archive. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Comment(by ryandesign@…): But if it's saying /opt/local/lib/libfreetype.la is not a valid archive... that file has already been successfully built and installed by the freetype port. You're past that and on to another port. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: worksforme | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Changes (by jmr@…): * status: reopened => closed * resolution: => worksforme Comment: I haven't seen this with any gtk2 update since. If someone else has, feel free to reopen. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:22> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive --------------------------------+------------------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: worksforme | Keywords: lion Port: gtk2 | --------------------------------+------------------------------------------- Comment(by ryandesign@…): Has duplicate #36078. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:23> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive -------------------------+-------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: worksforme | Keywords: lion Port: gtk2 | -------------------------+-------------------------------- Comment (by ryandesign@…): Has duplicate #38130. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:24> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30809: gtk2 fails to build on lion: `/opt/local/lib/libfreetype.la' is not a valid libtool archive -------------------------+-------------------------------- Reporter: hofione@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: worksforme | Keywords: lion Port: gtk2 | -------------------------+-------------------------------- Comment (by ionic@…): FYI: I just did. But it does really look like a race condition... Probably too complex to fix, when re-running the upgrade works fine. -- Ticket URL: <https://trac.macports.org/ticket/30809#comment:26> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts