Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#30407 closed defect (worksforme)

Failed to install gtk2

Reported by: fleason (Fred Leason) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: lion Cc: ryandesign (Ryan Carsten Schmidt)
Port: gtk2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Installed Lion
Installed Xcode and Java
Installed MacPorts-2.0.0-10.7-Lion.dmg

> sudo port upgrade outdated

get to

--->  Computing dependencies for gtk2
<snip>
--->  Building gtk2
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for gtk2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2/main.log

main.log attached. Last lines of main.log

<snip>
:info:build libtool: link: ( cd ".libs" && rm -f "libtesttext.la" && ln -s "../libtesttext.la" "libtesttext.la" )
:info:build libtool: link: ( cd ".libs" && rm -f "libtesttoplevel.la" && ln -s "../libtesttoplevel.la" "libtesttoplevel.la" )
:info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2/work/gtk+-2.24.4/modules/other/gail/tests'
:info:build make[4]: *** [all-recursive] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2/work/gtk+-2.24.4/modules/other/gail'
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2/work/gtk+-2.24.4/modules/other'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2/work/gtk+-2.24.4/modules'
: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_gnome_gtk2/gtk2/work/gtk+-2.24.4'
: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_gnome_gtk2/gtk2/work/gtk+-2.24.4'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2/work/gtk+-2.24.4" && /usr/bin/make -j8 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for gtk2): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for gtk2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2/main.log

Attachments (1)

main.log (1.5 MB) - added by fleason (Fred Leason) 13 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2/main.log

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by fleason (Fred Leason)

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2/main.log

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

The log says:

`/opt/local/lib/libiconv.la' is not a valid libtool archive

Why is it not a valid libtool archive? What's in it?

I recently went through several rounds of this problem with someone else in #30136. Perhaps reading that ticket would be instructive.

Try rebuilding libiconv:

sudo port -n upgrade --force libiconv

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:3 Changed 13 years ago by fleason (Fred Leason)

Rebuilding libiconv solved the problem.
After upgrading macports, everything is reinstalling

--->  Cleaning libiconv
--->  Unable to uninstall libiconv @1.13.1_0, the following ports depend on it:
<snip>
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating libiconv @1.13.1_0
--->  Unable to deactivate libiconv @1.13.1_0, the following ports depend on it:
<snip>
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Uninstalling libiconv @1.13.1_0
<snip>

There does not seem to be a way to enforce sequence so that prerequisites precede.

comment:4 in reply to:  3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed

Replying to fleason@…:

There does not seem to be a way to enforce sequence so that prerequisites precede.

I don't know what you mean. MacPorts does follow dependencies when needed. I can't explain why your libiconv was built incorrectly before but glad you got it built correctly now.

comment:5 Changed 13 years ago by bernhard.fuerst@…

fleason@... probably means the sequence of upgraded ports when all installed ports get upgraded. In my case the above mentioned problem occurred after upgrading from OS X 10.6 to 10.7. Nearly all installed ports where marked as outdated. port upgrade outdated broke at upgrading gtk2. Upgrading libiconv before gtk2 solved the problem.

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

gtk2 depends on atk depends on libiconv. MacPorts should have upgraded this in the right order for you. I don't know what it did not.

Note: See TracTickets for help on using tickets.