Skip to content

fix parallel build issues with APFS/HFS+/ext2/3 in netlib-lapack - #1791

Merged
martin-frbg merged 1 commit into
OpenMathLib:developfrom
dev-zero:develop
Oct 6, 2018
Merged

martin-frbg merged 1 commit into
OpenMathLib:developfrom
dev-zero:develop

Conversation

@dev-zero

@dev-zero dev-zero commented Oct 6, 2018

Copy link
Copy Markdown
Contributor

The problem is that OpenBLAS sets the LAPACKE_LIB and the TMGLIB to the
same object and uses the ar feature to update the archive file. If the
underlying filesystem does not have sub-second timestamp resolution and
the system is fast enough (or ccache is used), the timestamp of the
builds which should be added to the previously generated archive is the
same as the archive file itself and therefore make does not update the
archive.

Since OpenBLAS takes care to not run the different targets updating the
archive in parallel, the easiest solution is to declare the respective
targets .PHONY, forcing make to always update them.

fixes #1682

The problem is that OpenBLAS sets the LAPACKE_LIB and the TMGLIB to the
same object and uses the `ar` feature to update the archive file. If the
underlying filesystem does not have sub-second timestamp resolution and
the system is fast enough (or `ccache` is used), the timestamp of the
builds which should be added to the previously generated archive is the
same as the archive file itself and therefore `make` does not update the
archive.

Since OpenBLAS takes care to not run the different targets updating the
archive in parallel, the easiest solution is to declare the respective
targets `.PHONY`, forcing `make` to always update them.

fixes OpenMathLib#1682
@martin-frbg martin-frbg added this to the 0.3.4 milestone Oct 6, 2018
@martin-frbg
martin-frbg merged commit 6e2c494 into OpenMathLib:develop Oct 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Race condition in usage of ar, and incorrect dependency resolution of tmglib

2 participants