Yocto Project Discussions
 help / color / mirror / Atom feed
* Strange error
@ 2017-03-06 12:15 Gary Thomas
  2017-03-06 17:20 ` Matthew McClintock
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2017-03-06 12:15 UTC (permalink / raw)
  To: yocto@yoctoproject.org

I wanted to change (disable) extra getty tasks in my target image.  I'm using
sysvinit, so I added this line to my <MACHINE>.conf:
   SYSVINIT_ENABLED_GETTYS = ""

I thought that would get the sysvinit-inittab package rebuilt as do_install
uses that variable, but alas it did not.

So I took out the big hammer and tried:

$ bitbake sysvinit-inittab -c cleanall
$ bitbake sysvinit-inittab

Now I get this error:

ERROR: When reparsing /local/poky-cutting-edge/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb.do_install, the 
basehash value changed from 2b888d6b72e00c404fc7e17436e465eb to 0fd6c915488c10c37cdfd6a674354e65. The metadata is not 
deterministic and this needs to be fixed.
ERROR: Taskhash mismatch 15202ef0ff19a8f7a485533510dab7e8 versus 81fae57019b1a17967258945560affc1 for 
/local/poky-cutting-edge/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb.do_install

So I took out an even bigger hammer:
$ find sstate-cache/ -name "*sysvinit-inittab*" | xargs -t rm -f
$ bitbake sysvinit-inittab -c cleanall
$ bitbake sysvinit-inittab

and I still get the same errors.  How can this be?  How do I get
to rebuild my sysvinit-inittab recipe and make the results stick?

Thanks for any pointers

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Strange error
  2017-03-06 12:15 Gary Thomas
@ 2017-03-06 17:20 ` Matthew McClintock
  0 siblings, 0 replies; 8+ messages in thread
From: Matthew McClintock @ 2017-03-06 17:20 UTC (permalink / raw)
  To: Gary Thomas; +Cc: yocto@yoctoproject.org

On Mon, Mar 6, 2017 at 6:15 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> ERROR: When reparsing
> /local/poky-cutting-edge/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb.do_install,
> the basehash value changed from 2b888d6b72e00c404fc7e17436e465eb to
> 0fd6c915488c10c37cdfd6a674354e65. The metadata is not deterministic and this
> needs to be fixed.
> ERROR: Taskhash mismatch 15202ef0ff19a8f7a485533510dab7e8 versus
> 81fae57019b1a17967258945560affc1 for
> /local/poky-cutting-edge/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb.do_install

Is there anything in this file that can cause the signature to change?
E.g. a variable expanding to a time, or parallel make option, or size,
etc.

-M


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Strange error
@ 2020-06-10 17:48 Mauro Ziliani
  2020-06-10 17:50 ` [yocto] " Rudolf J Streif
  2020-06-10 18:44 ` Josef Holzmayr
  0 siblings, 2 replies; 8+ messages in thread
From: Mauro Ziliani @ 2020-06-10 17:48 UTC (permalink / raw)
  To: yocto

Hi all.

This error

NOTE: Executing RunQueue Tasks
ERROR: When reparsing <recipe_of_image>.do_rootfs, the basehash value 
changed from 7419bfc242fa2eee9ce87b18ebf40d25 to 
5b2654046d2ac406f3484b3286de0acd. The metadata is not deterministic and 
this needs to be fixed.


Why?


Best regards,

   MZ


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [yocto] Strange error
  2020-06-10 17:48 Strange error Mauro Ziliani
@ 2020-06-10 17:50 ` Rudolf J Streif
  2020-06-11  7:50   ` Mauro Ziliani
  2020-06-10 18:44 ` Josef Holzmayr
  1 sibling, 1 reply; 8+ messages in thread
From: Rudolf J Streif @ 2020-06-10 17:50 UTC (permalink / raw)
  To: Mauro Ziliani, yocto


[-- Attachment #1.1.1: Type: text/plain, Size: 526 bytes --]

Did you edit the recipe while a build was running?

:rjs

On 6/10/20 10:48 AM, Mauro Ziliani wrote:
> Hi all.
>
> This error
>
> NOTE: Executing RunQueue Tasks
> ERROR: When reparsing <recipe_of_image>.do_rootfs, the basehash value
> changed from 7419bfc242fa2eee9ce87b18ebf40d25 to
> 5b2654046d2ac406f3484b3286de0acd. The metadata is not deterministic
> and this needs to be fixed.
>
>
> Why?
>
>
> Best regards,
>
>   MZ
>
>
> 

-- 
-----
Rudolf J Streif
CEO/CTO ibeeto
+1.855.442.3386 x700


[-- Attachment #1.1.2: Type: text/html, Size: 1233 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [yocto] Strange error
  2020-06-10 17:48 Strange error Mauro Ziliani
  2020-06-10 17:50 ` [yocto] " Rudolf J Streif
@ 2020-06-10 18:44 ` Josef Holzmayr
  2020-06-11  7:56   ` Mauro Ziliani
  1 sibling, 1 reply; 8+ messages in thread
From: Josef Holzmayr @ 2020-06-10 18:44 UTC (permalink / raw)
  To: yocto

Howdy!

Am 10.06.2020 um 19:48 schrieb Mauro Ziliani:
> Hi all.
> 
> This error
> 
> NOTE: Executing RunQueue Tasks
> ERROR: When reparsing <recipe_of_image>.do_rootfs, the basehash value 
> changed from 7419bfc242fa2eee9ce87b18ebf40d25 to 
> 5b2654046d2ac406f3484b3286de0acd. The metadata is not deterministic and 
> this needs to be fixed.
> 
> 
> Why?

Maybe some script / part of the recipe is dependent on the execution 
time or evaluation order? The error basically tells you that your build 
is not reproducible across runs.

Greetz

-- 
_____________________________________________________________
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
Fon: +49 8444 9204-0
Fax: +49 8444 9204-50
www.rsi-elektrotechnik.de

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [yocto] Strange error
  2020-06-10 17:50 ` [yocto] " Rudolf J Streif
@ 2020-06-11  7:50   ` Mauro Ziliani
  0 siblings, 0 replies; 8+ messages in thread
From: Mauro Ziliani @ 2020-06-11  7:50 UTC (permalink / raw)
  To: Rudolf J Streif, yocto

[-- Attachment #1: Type: text/plain, Size: 664 bytes --]

Thanks.

No i edit the recipes before build.

Il 10/06/20 19:50, Rudolf J Streif ha scritto:
>
> Did you edit the recipe while a build was running?
>
> :rjs
>
> On 6/10/20 10:48 AM, Mauro Ziliani wrote:
>> Hi all.
>>
>> This error
>>
>> NOTE: Executing RunQueue Tasks
>> ERROR: When reparsing <recipe_of_image>.do_rootfs, the basehash value 
>> changed from 7419bfc242fa2eee9ce87b18ebf40d25 to 
>> 5b2654046d2ac406f3484b3286de0acd. The metadata is not deterministic 
>> and this needs to be fixed.
>>
>>
>> Why?
>>
>>
>> Best regards,
>>
>>   MZ
>>
>>
>> 
> -- 
> -----
> Rudolf J Streif
> CEO/CTO ibeeto
> +1.855.442.3386 x700

[-- Attachment #2: Type: text/html, Size: 1633 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [yocto] Strange error
  2020-06-10 18:44 ` Josef Holzmayr
@ 2020-06-11  7:56   ` Mauro Ziliani
  2020-06-11 22:56     ` Denys Dmytriyenko
  0 siblings, 1 reply; 8+ messages in thread
From: Mauro Ziliani @ 2020-06-11  7:56 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

In the image recipe i write ${DATETIME} in ${IMAGE_ROOTFS}/etc/buildtime 
by a function.

This is the part of recipe


ROOTFS_POSTPROCESS_COMMAND_append = " \
     mark_os_buildtime; \

"


mark_os_buildtime() {
     echo "${PV} ${DATETIME}" > ${IMAGE_ROOTFS}/etc/buildtime

}



Il 10/06/20 20:44, Josef Holzmayr ha scritto:
> Howdy!
>
> Am 10.06.2020 um 19:48 schrieb Mauro Ziliani:
>> Hi all.
>>
>> This error
>>
>> NOTE: Executing RunQueue Tasks
>> ERROR: When reparsing <recipe_of_image>.do_rootfs, the basehash value 
>> changed from 7419bfc242fa2eee9ce87b18ebf40d25 to 
>> 5b2654046d2ac406f3484b3286de0acd. The metadata is not deterministic 
>> and this needs to be fixed.
>>
>>
>> Why?
>
> Maybe some script / part of the recipe is dependent on the execution 
> time or evaluation order? The error basically tells you that your 
> build is not reproducible across runs.
>
> Greetz
>
>
> 

[-- Attachment #2: Type: text/html, Size: 1950 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [yocto] Strange error
  2020-06-11  7:56   ` Mauro Ziliani
@ 2020-06-11 22:56     ` Denys Dmytriyenko
  0 siblings, 0 replies; 8+ messages in thread
From: Denys Dmytriyenko @ 2020-06-11 22:56 UTC (permalink / raw)
  To: Mauro Ziliani; +Cc: yocto

You know that rootfs already creates /etc/version file with $DATETIME?

Either way, you can fix it like this:
mark_os_buildtime[vardepsexclude] = "DATETIME"

-- 
Denys


On Thu, Jun 11, 2020 at 09:56:42AM +0200, Mauro Ziliani wrote:
> In the image recipe i write ${DATETIME} in
> ${IMAGE_ROOTFS}/etc/buildtime by a function.
> 
> This is the part of recipe
> 
> 
> ROOTFS_POSTPROCESS_COMMAND_append = " \
>     mark_os_buildtime; \
> 
> "
> 
> 
> mark_os_buildtime() {
>     echo "${PV} ${DATETIME}" > ${IMAGE_ROOTFS}/etc/buildtime
> 
> }
> 
> 
> 
> Il 10/06/20 20:44, Josef Holzmayr ha scritto:
> >Howdy!
> >
> >Am 10.06.2020 um 19:48 schrieb Mauro Ziliani:
> >>Hi all.
> >>
> >>This error
> >>
> >>NOTE: Executing RunQueue Tasks
> >>ERROR: When reparsing <recipe_of_image>.do_rootfs, the basehash
> >>value changed from 7419bfc242fa2eee9ce87b18ebf40d25 to
> >>5b2654046d2ac406f3484b3286de0acd. The metadata is not
> >>deterministic and this needs to be fixed.
> >>
> >>
> >>Why?
> >
> >Maybe some script / part of the recipe is dependent on the
> >execution time or evaluation order? The error basically tells you
> >that your build is not reproducible across runs.
> >
> >Greetz
> >
> >
> >

> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-06-11 22:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-10 17:48 Strange error Mauro Ziliani
2020-06-10 17:50 ` [yocto] " Rudolf J Streif
2020-06-11  7:50   ` Mauro Ziliani
2020-06-10 18:44 ` Josef Holzmayr
2020-06-11  7:56   ` Mauro Ziliani
2020-06-11 22:56     ` Denys Dmytriyenko
  -- strict thread matches above, loose matches on Subject: below --
2017-03-06 12:15 Gary Thomas
2017-03-06 17:20 ` Matthew McClintock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox