Opened 13 years ago

Closed 13 years ago

#29122 closed defect (fixed)

lua @5.1.4 +universal parallel build failure

Reported by: ratberryjam@… Owned by: pmq@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: parallel universal Cc: ryandesign (Ryan Carsten Schmidt)
Port: lua

Description

I am trying to build lua, but I get errors. I have attached the log file, but I think this is the important part:

:info:build /usr/bin/gcc-4.2 -o lua -L. -L/opt/local/lib -arch x86_64 -fno-common -DLUA_USE_LINUX -lreadline -llua lua.c
:info:build /usr/bin/gcc-4.2 -o luac -L/opt/local/lib -arch x86_64 luac.o print.o liblua.dylib -lm -lreadline
:info:build i686-apple-darwin10-gcc-4.2.1: liblua.dylib: No such file or directory
:info:build make[2]: *** [luac] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[1]: *** [macosx] Error 2
:info:build make: *** [macosx] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_lua/work/lua-5.1.4" && /usr/bin/make -j5 macosx " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)

This seems very similar to #20196, but that ticket is closed, and I still have this problem. (Everything is up to date, I just installed macports today)

I am running 10.6.7 on a core i7.

Attachments (1)

lua-log.txt (12.4 KB) - added by ratberryjam@… 13 years ago.

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by ratberryjam@…

Attachment: lua-log.txt added

comment:1 Changed 13 years ago by ratberryjam@…

Cc: ratberryjam@… added

Cc Me!

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

Cc: ryandesign@… added; pmq@… ratberryjam@… removed
Keywords: parallel universal added
Owner: changed from macports-tickets@… to pmq@…
Summary: lua @5.1.4 +universal Build failurelua @5.1.4 +universal parallel build failure

I don't see any similarity to #20196.

I am able to reproduce the issue on an older MacBook Pro, when building in parallel with 3, 5, or 6 jobs, only when building universal. 1, 2, or 4 jobs are fine when building universal, as are any number of jobs when not building universal. Of course this may vary on other machines.

To work around the problem, reduce the number of parallel build jobs:

sudo port clean lua
sudo port install lua build.jobs=2

comment:3 Changed 13 years ago by ratberryjam@…

That worked on my machine as well (New MacBook Pro i7). Thank you.

I don't really know much about compiling, so I thought this was similar to the other tickets because there were a lot the same words in the error message. Thus, I am not all that surprised to find out that I am wrong.

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

Resolution: fixed
Status: newclosed

The simplest fix is to just disable parallel building entirely for lua, which I did in r77869, since the port only takes seconds to build anyway.

Note: See TracTickets for help on using tickets.