Opened 13 years ago
Closed 12 years ago
#32877 closed defect (fixed)
sane-backends: build takes forever
Reported by: | dylanarena@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | aguynamedryan+sane@…, neverpanic (Clemens Lang), mowerm@… | |
Port: | sane-backends |
Description (last modified by neverpanic (Clemens Lang))
I have a brand-new MacBook Pro running 10.7.2. I wanted to install GIMP, so I installed MacPorts from the AppStore and then called "sudo port install gimp" from Terminal. I saw a huge list of dependencies, which MacPorts diligently chipped away at for hours. But it seemed to have hung up at the following point in the process:
---> Fetching archive for sane-backends ---> Attempting to fetch sane-backends-1.0.22_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/sane-backends ---> Fetching sane-backends ---> Attempting to fetch sane-backends-1.0.22.tar.gz from http://distfiles.macports.org/sane-backends ---> Verifying checksum(s) for sane-backends ---> Extracting sane-backends ---> Applying patches to sane-backends ---> Configuring sane-backends ---> Building sane-backends
It had been a few hours, so I hit control-C and then called "sudo port install gimp" again. Happily, this time the list of dependencies was very short:
---> Dependencies to be installed: xsane sane-backends
So I left the computer to run overnight. But when I returned to my computer this morning I saw that it had been hanging at the following line for at least ten hours:
---> Computing dependencies for gimp ---> Dependencies to be installed: xsane sane-backends ---> Building sane-backends
Can anyone help me diagnose the problem?
Thanks very much for your time, Dylan
Attachments (4)
Change History (13)
comment:1 follow-up: 2 Changed 13 years ago by neverpanic (Clemens Lang)
Cc: | aguynamedryan+sane@… cal@… added |
---|---|
Description: | modified (diff) |
Port: | sane-backends added |
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | "sudo port install gimp" hangs forever on "Building sane-backends" → sane-backends: build takes forever |
---|
Replying to cal@…:
Can you attach the logfile pointed to by
port log sane-backends
?
port log sane-backends
prints the contents of the logfile. If you want the location of the logfile, use port logfile sane-backends
.
Changed 13 years ago by albanx99@…
Attachment: | sane-backends.log added |
---|
comment:3 Changed 13 years ago by albanx99@…
I can confirm this. My logfile is attached.
Same deal: port install gimp ... Building sane-backends takes forever.
Changed 13 years ago by mowerm@…
Attachment: | sane-backends-mowerm.log added |
---|
comment:4 Changed 13 years ago by mowerm@…
Same problem for me. Log attached, seems that build gets hung at
:info:build libtool: link: Waiting for /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_sane-backends/sane-backends/work/sane-backends-1.0.22/backend/../lib/.libs/liblib.a.lock to be removed
Changed 13 years ago by aguynamedryan+macports@…
Attachment: | sane-backends_1.0.22_2.diff added |
---|
proposed patch
comment:6 Changed 13 years ago by aguynamedryan+macports@…
Bummer. The only thing I can think of is that maybe there's a deadlock situation arising from building in parallel.
Some googling reveals that libtool might be upset since the phrase "Waiting for $lockfile to be removed" appears here and right below it suggests not doing a parallel build.
I've removed parallel building from the Portfile.
I couldn't recreate the problem on my end, so I can't verify my proposed patch.
comment:7 Changed 13 years ago by mowerm@…
Concerning your patch, when I removed the line for "use_parallel_build", I still ened up at "Waiting for $lockfile to be removed". When I changed the line to
use_parallel_build no
the build succeeded, and gimp was subsequently installed.
Changed 13 years ago by aguynamedryan+macports@…
Attachment: | sane-backends_1.0.22_2.2.diff added |
---|
propose patch base on comment:7
comment:8 Changed 13 years ago by aguynamedryan+macports@…
Is there anything else I need to do to get the patch committed and this ticket closed? Thanks!
comment:9 Changed 12 years ago by neverpanic (Clemens Lang)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Sorry for the delay, r94676. A revision bump was not needed, because the list of installed files didn't change and it you were hit by this bug you can't have a sucessfully installed sane-backends port and thus don't need a rebuild.
Please remember to use WikiFormatting for shell output, set the port field and Cc the maintainer.
Can you attach the logfile pointed to by
port log sane-backends
? Also, do you see extensive memory usage while the process runs and does everything get very slow?