develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #118987] ext/SDBM_File: parallel build fails (make -j)

Thread Previous
Anton V . Yuzhaninov
July 23, 2013 18:25
[perl #118987] ext/SDBM_File: parallel build fails (make -j)
Message ID:
# New Ticket Created by  Anton V. Yuzhaninov 
# Please include the string:  [perl #118987]
# in the subject line of all future correspondence about this issue. 
# <URL: >


perl 5.14.4 fails to build under FreeBSD when make jobs is used (make -j).

Example build log:
(grep by libsdbm)

Bug located in ext/SDBM_File/Makefile

This Makefile has two conflicting targets, that do the same thing (make all in 
sdbm subdir):

subdirs ::
         $(NOECHO) cd sdbm && $(MAKE) $(USEMAKEFILE) $(FIRST_MAKEFILE) all 


$(MYEXTLIB): sdbm/Makefile
         cd sdbm && $(MAKE) all

First target created by MakeMaker because of existence ./sdbm/Makefile.PL

Second target is explicitly added in Makefile.PL (in MY::postamble).

With 'make -j N' this two targets can be run in parallel, causing build failure.

It sees to be, that one of this targets should be removed to fix parallel build.

Build failure can be repeated with 5.14.4 and 5.16.3, but 
ext/SDBM_File/Makefile.PL in
the latest version is same.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About