Summary: | ASTERISK-18751: parallel build fails when cleantest calls clean | ||||
Reporter: | Walter Doekes (wdoekes) | Labels: | |||
Date Opened: | 2011-10-24 15:24:26 | Date Closed: | 2012-01-17 13:52:01.000-0600 | ||
Priority: | Minor | Regression? | No | ||
Status: | Closed/Complete | Components: | Core/BuildSystem | ||
Versions: | SVN | Frequency of Occurrence | Constant | ||
Related Issues: |
| ||||
Environment: | Attachments: | ||||
Description: | Hi, when doing a parallel build, the cleantest target (which runs make clean) can be run simultaneously with the other rules. This causes files that have been built to get removed again, ultimately resulting in a failed build: I can reproduce it on and off by running the following statement: {noformat} $ echo crap > .lastclean && make -j4 -w all make: Entering directory `/home/walter/src/asterisk-1.8.x' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[1]: Entering directory `/home/walter/src/asterisk-1.8.x/menuselect' gcc -g -c -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c ... make[1]: Entering directory `/home/walter/src/asterisk-1.8.x' checking for gcc... gcc rm -f defaults.h rm -f include/asterisk/build.h rm -f main/version.c rm -f include/asterisk/version.h make[2]: Entering directory `/home/walter/src/asterisk-1.8.x/menuselect' rm -f menuselect cmenuselect gmenuselect nmenuselect menuselect.o strcompat.o menuselect_stub.o menuselect_curses.o make[3]: Entering directory `/home/walter/src/asterisk-1.8.x/menuselect/mxml' /bin/rm -f mxmldoc.o testmxml.o mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o libmxml.a mxmldoc testmxml mxml.xml ... gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a gcc-4.6.real: error: menuselect.o: No such file or directory gcc-4.6.real: error: strcompat.o: No such file or directory gcc-4.6.real: error: menuselect_stub.o: No such file or directory make[1]: *** [menuselect] Error 1 make[1]: Leaving directory `/home/walter/src/asterisk-1.8.x/menuselect' make: *** [menuselect/menuselect] Error 2 make: Leaving directory `/home/walter/src/asterisk-1.8.x' {noformat} See original report here: https://trac.macports.org/ticket/31497 Regards, Walter | ||||
Comments: |