Opened 5 years ago
Last modified 5 years ago
#15620 new bug
Build failure on multithreaded build.
Reported by: | jstressman | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Build System | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Sometimes works, sometimes doesn't.
Ryzen 9 3950x CPU with Ubuntu 19.10 64bit.
Using command
jam -q -j32 @nightly-anyboot
Failed with -j30
as well.
Attachments (1)
Change History (2)
by , 5 years ago
Attachment: | haiku-build-failure.zip added |
---|
comment:1 by , 5 years ago
Component: | - General → Build System |
---|---|
Owner: | changed from | to
Build error: header files for libpng, libjpeg, etc are not found.
Suspicious things found in the logs:
- I see two invocations of ExtractHpkgArchive1 for libpng (lines 4530 and 4547), is this expected?
- Compilation of the PNG translator starts after that (line 16025) and eventually fails (line 31138)
So, I suspect one of these two:
- The double extraction of the package is creating an invalid result
- Or, the build of the PNG translator is completed before extraction is complete
The latter is quite plausible, due to the way we manage these extraction rules. Basically, as soon as the rule has created the libpng directory in build_packages, the PNG translator assumes that the dependency is satisfied. It does not depend on specific files inside that directory.
Workaround: once you have a succesful build, these packages are extracted only on updates which happen rarely. So the following builds will be fine.
-j32 build fail of hrev53701