[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #20033] parallel (-j2) make with $(eval) construct segfaults
From: |
anonymous |
Subject: |
[bug #20033] parallel (-j2) make with $(eval) construct segfaults |
Date: |
Fri, 01 Jun 2007 19:52:34 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 |
Follow-up Comment #1, bug #20033 (project make):
Hi, its me again. Find below a trivial makefile to recreate this. run 'make
setup && make -j2' to get a segfault.
Cheers,
Rasmus
A := $(wildcard *.a)
.PHONY: all
all: $(A:.a=.b)
.PHONY: clean
clean:
rm -f $(A)
.PHONY: setup
setup:
@touch 1.a 2.a 3.a 4.a 5.a 6.a
define d1
@echo lala $(1)
@sleep 1
endef
define d2
@echo tyty $(1)
@sleep 1
endef
%.b : %.a
$(eval CHECKSUM := $(word 1,$(shell cat $^ | sha1sum))) $(if
$(wildcard $(CACHEDIR)/$(CHECKSUM)),\
$(call d1,$(CHECKSUM)),\
$(call d2,$(CHECKSUM)))
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20033>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/