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.

hrev53701

Ryzen 9 3950x CPU with Ubuntu 19.10 64bit.

Using command

jam -q -j32 @nightly-anyboot

Failed with -j30 as well.

Attachments (1)

haiku-build-failure.zip (229.9 KB ) - added by jstressman 5 years ago.
-j32 build fail of hrev53701

Download all attachments as: .zip

Change History (2)

by jstressman, 5 years ago

Attachment: haiku-build-failure.zip added

-j32 build fail of hrev53701

comment:1 by pulkomandy, 5 years ago

Component: - GeneralBuild System
Owner: changed from nobody to bonefish

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.

Note: See TracTickets for help on using tickets.