Skip to content

Fix parallel build race for awsres - #400

Open
gc-iot wants to merge 1 commit into
AdaCore:masterfrom
gc-iot:fix-parallel-awsres-build
Open

Fix parallel build race for awsres#400
gc-iot wants to merge 1 commit into
AdaCore:masterfrom
gc-iot:fix-parallel-awsres-build

Conversation

@gc-iot

@gc-iot gc-iot commented Aug 8, 2026

Copy link
Copy Markdown

Make build-awsres-tool-native depend on build-lib-native to prevent concurrent gprbuild invocations from operating on the same library build tree.

Reproduced on Ubuntu 26.04 ARM64 (aarch64) under UTM virtualization using GCC/GNAT 17.0.0 experimental and GPRbuild 25.0w.

Unpatched builds failed with make -j2, -j4 and -j10 with nondeterministic missing zlib objects, including uncompr.o, trees.o and inflate.o. A serial make -j1 build succeeded.

Verified on TESTUDO: two clean make -j10 builds completed successfully after adding the dependency.

Make build-awsres-tool-native depend on build-lib-native to prevent concurrent gprbuild invocations from operating on the same library build tree.

Reproduced on Ubuntu 26.04 ARM64 (aarch64) under UTM virtualization using GCC/GNAT 17.0.0 experimental and GPRbuild 25.0w.

Unpatched builds failed with make -j2, -j4 and -j10 with nondeterministic missing zlib objects, including uncompr.o, trees.o and inflate.o. A serial make -j1 build succeeded.

Verified on TESTUDO: two clean make -j10 builds completed successfully after adding the dependency.
@CLAassistant

CLAassistant commented Aug 8, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants