Skip to contentSkip to conversation

Another staging question

DISCUSSION Gary Thomas 3 participants 3 messages Nov 9, 2010 – Nov 23, 2010

lore
Share & tools
lore
#0 lore raw

I've found another peculiarity with the new staging scheme(*). I have two target platforms, which for all intents and purposes are identical - both are Motorola MPC83xx (e300 core). The only reason for two target machines is the kernel, plus platform specifics.

I built totally from scratch (no SSTATE_MIRRORS) for target machine A. I then tested the staging by building in a new tree, again for machine A. This worked great - the build used mostly the staged packages. About the only things that were rebuilt were the target specific packages.

When I tried it for machine B, again in a totally empty directory, using the 'sstate-cache' directory of the first build as SSTATE_MIRRORS, all of the toolchain was rebuilt (GCC and friends), but there was no need, the staged version should have been used.

Is this expected?
What could I do to fix it?

Thanks

(*) I'm very happy that the new staging is starting to work better. As is, it's a great leap forward; I'm just hopeful that the remaining kinks can be worked out. I'll be glad to help in this any way I can.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 10 lines · Gary Thomas

I've found another peculiarity with the new staging scheme(*). I have two target platforms, which for all intents and purposes are identical - both are Motorola MPC83xx (e300 core). The only reason for two target machines is the kernel, plus platform specifics.

I built totally from scratch (no SSTATE_MIRRORS) for target machine A. I then tested the staging by building in a new tree, again for machine A. This worked great - the build used mostly the staged packages. About the only things that were rebuilt were the target specific packages.

Quoted 7 lines

When I tried it for machine B, again in a totally empty directory, using the 'sstate-cache' directory of the first build as SSTATE_MIRRORS, all of the toolchain was rebuilt (GCC and friends), but there was no need, the staged version should have been used.

Is this expected?
What could I do to fix it?

This tells me that the checksumming code found something that it believed changed the system behavior. Likely a machine type or CFLAG or similar.

RP -- is there a way to determine "what changed [and why]" without re-running the build? We found this invaluable when debugging the WR build system's checksumming, configuration files and packaging recipes.

--Mark

Quoted 6 lines

Thanks

(*) I'm very happy that the new staging is starting to work better. As is, it's a great leap forward; I'm just hopeful that the remaining kinks can be worked out. I'll be glad to help in this any way I can.

#2 lore raw
Quoted 22 lines

From: Mark Hatle
Sent: Tuesday, November 09, 2010 11:33 PM

Quoted 10 lines · Gary Thomas

I've found another peculiarity with the new staging scheme(*). I have two target platforms, which for all intents and purposes are identical - both are Motorola MPC83xx (e300 core). The only reason for two target machines is the kernel, plus platform specifics.

I built totally from scratch (no SSTATE_MIRRORS) for target machine A. I then tested the staging by building in a new tree, again for machine A. This worked great - the build used mostly the staged packages. About the only things that were rebuilt were the target specific packages.

Quoted 7 lines

When I tried it for machine B, again in a totally empty directory, using the 'sstate-cache' directory of the first build as SSTATE_MIRRORS, all of the toolchain was rebuilt (GCC and friends), but there was no need, the staged version should have been used.

Is this expected?
What could I do to fix it?

Quoted 7 lines

This tells me that the checksumming code found something that it believed changed the system behavior. Likely a machine type or CFLAG or similar.

RP -- is there a way to determine "what changed [and why]" without re-running the build? We found this invaluable when debugging the WR build system's checksumming, configuration files and packaging recipes.

Just saw this from bottom of my mailbox. "bitbake name -S" will record checksum for the name and also all the tasks it depends on under tmp/stamps. And then you can use "bitbake-diffsig" to check the detail.

Thanks
Kevin