[haiku-bugs] Re: [Haiku] #11012: jam -j fails

  • From: "jessicah" <trac@xxxxxxxxxxxx>
  • Date: Tue, 21 Oct 2014 17:31:53 -0000

#11012: jam -j fails
----------------------------+----------------------------
   Reporter:  Anarchos      |      Owner:  bonefish
       Type:  bug           |     Status:  reopened
   Priority:  normal        |  Milestone:  Unscheduled
  Component:  Build System  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  x86
----------------------------+----------------------------

Comment (by jessicah):

 I've finally been able to reliably reproduce the issue without resorting
 to parallel jam. I think we might need an extra unique target for build
 feature attributes, perhaps?

     `jam -aq -d4 '<extracted-x86_gcc2:libwebp-devel>develop/headers/webp'`

 {{{
 Chmod1
 
/home/jessica/develop/gcc2h/generated/objects/linux/x86_64/release/tools/package/package
 ExtractHPKGArchive1
 /home/jessica/develop/gcc2h/generated/build_packages/libwebp-0.4.1-1-x86_gcc2
 ExtractHPKGArchive1
 /home/jessica/develop/gcc2h/generated/build_packages/libwebp-0.4.1-1-x86_gcc2
 ...updated 260 target(s)...
 }}}

 This creates the `build_packages/libwebp` directory and extracts a bunch
 of build features. Now let's simulate parallel jam by removing the develop
 headers sub-directory and jamming again.

     `rm -rf generated/build_packages/libwebp*/develop`
     `jam -aq -d4 '<extracted-x86_gcc2:libwebp-devel>develop/headers/webp'`

 {{{
 Chmod1
 
/home/jessica/develop/gcc2h/generated/objects/linux/x86_64/release/tools/package/package
 ...updated 258 target(s)...
 }}}

 Notice how with this invocation, that `ExtractHPKGArchive1` is never
 invoked, and that `generated/build_packages/libwebp*/develop` doesn't
 exist.

 Attached are the before and after logs from jam using -d4 for debugging.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11012#comment:5>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: