Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Stackman integration: race in "make -j"  #298

@akruis

Description

@akruis

There is a race condition in the build process, if you compile Stackless using make -j or variants.
It is caused by the rule

$(SLP_STACKMAN_OBJS): $(SLP_STACKMAN_LIB)
	cp $(SLP_STACKMAN_LIB) Stackless/platf/libstackman.a
	cd Stackless/platf && $(AR) x libstackman.a && rm libstackman.a

This rule runs once for every file in $(SLP_STACKMAN_OBJS). The race is between cp and rm. The fix is trivial.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions