1. Breakfast Quay
  2. Untitled project
  3. RubberBand
  4. Issues

Issues

Issue #19 new

Race condition in Makefile breaks parallel builds

Coacher
created an issue

Hello.

rubberband's Makefile defines 'all' target as

all: bin lib $(PROGRAM_TARGET) $(STATIC_TARGET) $(DYNAMIC_TARGET) $(VAMP_TARGET) $(LADSPA_TARGET)

where 'bin' and 'lib' targets are defined as

bin: $(MKDIR) $@ lib: $(MKDIR) $@

This leads to occasional build failures with enabled parallelism because some make targets call CXX with '-o' option that points to these 'bin' and 'lib' directories, e.g. PROGRAM_TARGET and DYNAMIC_TARGET. Build fails when these directories aren't there yet.

Forcing make to use one job solves the problem. Downstream bugreport: https://bugs.gentoo.org/show_bug.cgi?id=590500

Please fix.

Comments (0)

  1. Log in to comment