Makefile parallel build race condition

Bug #1515370 reported by Adi Ratiu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
i8kutils
Fix Released
Medium
vitorafsr

Bug Description

(see attached patch)

Fix a race condition causing parallel builds to sometimes fail.

Both probe_i8k_calls_time and i8kctl contain a main() function, though
i8kctl's is omitted when built with -DLIB so they can link without a
conflict. i8kctl is also a standalone exe so it is built twice, with
and without -DLIB. When building in parallel you can get into a
situation where the object file created by the probe_i8k_calls_time
target gets overwritten with the one from i8kctl and bad things happen.
Nothing actually uses the i8kctl.o that has main() so we can just not
build it.

Initially reported at: https://bugs.gentoo.org/show_bug.cgi?id=565466

Revision history for this message
Adi Ratiu (adirat) wrote :
Revision history for this message
vitorafsr (vitorafsr) wrote :

Fixed on revision 51.

Changed in i8kutils:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → vitorafsr (vitorafsr)
vitorafsr (vitorafsr)
Changed in i8kutils:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.