#55896 closed defect (fixed)
lz4 @1.8.1.2_0: ar: liblz4.a: Resource temporarily unavailable
Reported by: | kencu (Ken) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | lz4 |
Description
<https://build.macports.org/builders/ports-10.5_ppc_legacy-builder/builds/55269>
This build fails on the buildbot, but builds without trouble on my 10.5 PPC machine at home.
ar: liblz4.a: Resource temporarily unavailable make[1]: *** [liblz4.a] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_archivers_lz4/lz4/work/lz4-1.8.1.2/lib' make: *** [liblz4.a] Error 2
Change History (9)
comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign added |
---|---|
Summary: | lz4-1.8.1.2_0: ar: liblz4.a: Resource temporarily unavailable → lz4 @1.8.1.2_0: ar: liblz4.a: Resource temporarily unavailable |
comment:3 Changed 7 years ago by kencu (Ken)
I must have some missing dep installed. It builds on Tiger PPC too.
I tried disabling cctools, but it still builds. Maybe I have a newer bash installed.... will check.
comment:4 follow-up: 7 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign removed |
---|---|
Keywords: | leopard tiger added; powerpc removed |
Owner: | set to ryandesign |
Status: | new → accepted |
It has now built successfully on the buildbot. The portfile hasn't changed and it has no dependencies.
I believe it's a parallel build problem. The log says:
compiling static library compiling static library lz4.c:220: warning: ‘LZ4_write32’ defined but not used lz4.c:253: warning: ‘LZ4_readLE16’ defined but not used lz4hc.c:125: warning: ‘LZ4HC_countBack’ defined but not used lz4.c:220: warning: ‘LZ4_write32’ defined but not used lz4.c:253: warning: ‘LZ4_readLE16’ defined but not used lz4hc.c:125: warning: ‘LZ4HC_countBack’ defined but not used ar: liblz4.a: Resource temporarily unavailable make[1]: *** [liblz4.a] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_archivers_lz4/lz4/work/lz4-1.8.1.2/lib' make: *** [liblz4.a] Error 2 make: *** Waiting for unfinished jobs....
Note that the line compiling static library
, and the three warnings resulting from compiling it, appear twice each. Two processes are trying to write the same library at the same time; one of them is prevented from doing so.
I should have read the Google search results more carefully when I searched last week. The first hit for a search for ar "Resource temporarily unavailable"
was a duplicate of #27247, which discusses the same error being the result of a parallel build problem on Leopard and earlier.
comment:5 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:6 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
I did see the problem once on a newer Mac running Sierra. I filed an upstream bug report.
comment:7 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | leopard tiger removed |
---|
Replying to ryandesign:
Two processes are trying to write the same library at the same time; one of them is prevented from doing so.
Actually they probably both succeed, but a third process, started after the first static library compilation finished, is trying to use the library at the exact moment that the second static library compilation is overwriting it.
comment:8 Changed 7 years ago by raimue (Rainer Müller)
lz4 failed again on the buildbot due to a parallel build issue: https://build.macports.org/builders/ports-10.6_x86_64_legacy-builder/builds/59550
I found a post that someone solved "Resource temporarily unavailable" by restarting their computer. I restarted the 10.5-ppc-legacy worker, but it has not restarted. I'll have to powercycle it and see if that helps.