* devtool build error
@ 2023-10-03 22:31 SIMON BABY
2023-10-04 6:27 ` [yocto] " Yoann CONGAL
0 siblings, 1 reply; 3+ messages in thread
From: SIMON BABY @ 2023-10-03 22:31 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 7598 bytes --]
Hello Team,
Can someone help to fix the error I see when using devtool build or devtool
update-recipe.
*Exception: bb.fetch2.FetchError: Fetcher failure: Recipe uses a floating
tag/branch '5.15/linux' for repo 'github.com/intel/linux-intel-lts.git
<http://github.com/intel/linux-intel-lts.git>' without a fixed SRCREV yet
doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).*
complete log is below:
sbaby@ECP-WAP-APPSERVER:~/workspace/09252023/ecp-wap-appserver/build$
devtool build linux-intel
NOTE: Starting bitbake server...
WARNING: Layer summit-radio should set LAYERSERIES_COMPAT_summit-radio in
its conf/layer.conf file to list the core layer names it is compatible with.
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
WARNING: Layer summit-radio should set LAYERSERIES_COMPAT_summit-radio in
its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100%
|############################################################################################################################################################################|
Time: 0:00:00
Loaded 4588 entries from dependency cache.
ERROR:
/home/sbaby/workspace/09252023/ecp-wap-appserver/build/../iotg-yocto-ese-bsp/recipes-kernel/linux/
linux-intel_5.15.bb: Error executing a python function in
<code>: | ETA: --:--:--
The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 19, function: <module>
0015:__anon_41__home_sbaby_workspace_09252023_ecp_wap_appserver_build____iotg_yocto_ese_bsp_classes_kernel_oot_mod_scripts_bbclass(d)
0016:__anon_22__home_sbaby_workspace_09252023_ecp_wap_appserver_build____poky_meta_classes_image_artifact_names_bbclass(d)
0017:__anon_7__home_sbaby_workspace_09252023_ecp_wap_appserver_build____poky_meta_classes_kernel_devicetree_bbclass(d)
0018:__anon_721__home_sbaby_workspace_09252023_ecp_wap_appserver_build____poky_meta_classes_kernel_yocto_bbclass(d)
***
0019:__anon_147__home_sbaby_workspace_09252023_ecp_wap_appserver_build____poky_meta_classes_externalsrc_bbclass(d)
File:
'/home/sbaby/workspace/09252023/ecp-wap-appserver/build/../poky/meta/classes/externalsrc.bbclass',
lineno: 66, function:
__anon_147__home_sbaby_workspace_09252023_ecp_wap_appserver_build____poky_meta_classes_externalsrc_bbclass
0062: else:
0063: d.setVar('B', '${WORKDIR}/${BPN}-${PV}')
0064:
0065: local_srcuri = []
*** 0066: fetch = bb.fetch2.Fetch((d.getVar('SRC_URI') or
'').split(), d)
0067: for url in fetch.urls:
0068: url_data = fetch.ud[url]
0069: parm = url_data.parm
0070: if (url_data.type == 'file' or
File:
'/home/sbaby/workspace/09252023/ecp-wap-appserver/poky/bitbake/lib/bb/fetch2/__init__.py',
lineno: 1682, function: __init__
1678:
1679: for url in urls:
1680: if url not in self.ud:
1681: try:
*** 1682: self.ud[url] = FetchData(url, d, localonly)
1683: except NonLocalMethod:
1684: if localonly:
1685: self.ud[url] = None
1686: pass
File:
'/home/sbaby/workspace/09252023/ecp-wap-appserver/poky/bitbake/lib/bb/fetch2/__init__.py',
lineno: 1319, function: __init__
1315: logger.warning('Consider updating %s recipe to use
"protocol" not "proto" in SRC_URI.', d.getVar('PN'))
1316: self.parm["protocol"] = self.parm.get("proto", None)
1317:
1318: if hasattr(self.method, "urldata_init"):
*** 1319: self.method.urldata_init(self, d)
1320:
1321: if "localpath" in self.parm:
1322: # if user sets localpath for file, use it instead.
1323: self.localpath = self.parm["localpath"]
File:
'/home/sbaby/workspace/09252023/ecp-wap-appserver/poky/bitbake/lib/bb/fetch2/git.py',
lineno: 250, function: urldata_init
0246: write_tarballs = d.getVar("BB_GENERATE_MIRROR_TARBALLS")
or "0"
0247: ud.write_tarballs = write_tarballs != "0" or ud.rebaseable
0248: ud.write_shallow_tarballs =
(d.getVar("BB_GENERATE_SHALLOW_TARBALLS") or write_tarballs) != "0"
0249:
*** 0250: ud.setup_revisions(d)
0251:
0252: for name in ud.names:
0253: # Ensure anything that doesn't look like a sha256
checksum/revision is translated into one
0254: if not ud.revisions[name] or len(ud.revisions[name])
!= 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]):
File:
'/home/sbaby/workspace/09252023/ecp-wap-appserver/poky/bitbake/lib/bb/fetch2/__init__.py',
lineno: 1349, function: setup_revisions
1345:
1346: def setup_revisions(self, d):
1347: self.revisions = {}
1348: for name in self.names:
*** 1349: self.revisions[name] = srcrev_internal_helper(self, d,
name)
1350:
1351: # add compatibility code for non name specified case
1352: if len(self.names) == 1:
1353: self.revision = self.revisions[self.names[0]]
File:
'/home/sbaby/workspace/09252023/ecp-wap-appserver/poky/bitbake/lib/bb/fetch2/__init__.py',
lineno: 1214, function: srcrev_internal_helper
1210:
1211: if srcrev == "INVALID" or not srcrev:
1212: raise FetchError("Please set a valid SRCREV for url %s
(possible key names are %s, or use a ;rev=X URL parameter)" %
(str(attempts), ud.url), ud.url)
1213: if srcrev == "AUTOINC":
*** 1214: srcrev = ud.method.latest_revision(ud, d, name)
1215:
1216: return srcrev
1217:
1218:def get_checksum_file_list(d):
File:
'/home/sbaby/workspace/09252023/ecp-wap-appserver/poky/bitbake/lib/bb/fetch2/__init__.py',
lineno: 1626, function: latest_revision
1622: key = self.generate_revision_key(ud, d, name)
1623: try:
1624: return revs[key]
1625: except KeyError:
*** 1626: revs[key] = rev = self._latest_revision(ud, d, name)
1627: return rev
1628:
1629: def sortable_revision(self, ud, d, name):
1630: latest_rev = self._build_revision(ud, d, name)
File:
'/home/sbaby/workspace/09252023/ecp-wap-appserver/poky/bitbake/lib/bb/fetch2/git.py',
lineno: 739, function: _latest_revision
0735: """
0736: Compute the HEAD revision for the url
0737: """
0738: if not d.getVar("__BBSEENSRCREV"):
*** 0739: raise bb.fetch2.FetchError("Recipe uses a floating
tag/branch '%s' for repo '%s' without a fixed SRCREV yet doesn't call
bb.fetch2.get_srcrev() (use SRCPV in PV for OE)." %
(ud.unresolvedrev[name], ud.host+ud.path))
0740:
0741: # Ensure we mark as not cached
0742: bb.fetch2.get_autorev(d)
0743:
*Exception: bb.fetch2.FetchError: Fetcher failure: Recipe uses a floating
tag/branch '5.15/linux' for repo 'github.com/intel/linux-intel-lts.git
<http://github.com/intel/linux-intel-lts.git>' without a fixed SRCREV yet
doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).*
ERROR: Parsing halted due to errors, see error messages above
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
ERROR: Failed to start bitbake environment
Regards
Simon
[-- Attachment #2: Type: text/html, Size: 13266 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] devtool build error
2023-10-03 22:31 devtool build error SIMON BABY
@ 2023-10-04 6:27 ` Yoann CONGAL
[not found] ` <56CEEDDB-A10A-4C86-87AF-64635683842C@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Yoann CONGAL @ 2023-10-04 6:27 UTC (permalink / raw)
To: SIMON BABY; +Cc: Yocto Mailing list
[-- Attachment #1: Type: text/plain, Size: 988 bytes --]
Hello,
Le mer. 4 oct. 2023 à 00:31, SIMON BABY <simonkbaby@gmail.com> a écrit :
> Hello Team,
>
>
> Can someone help to fix the error I see when using devtool build or
> devtool update-recipe.
>
>
> *Exception: bb.fetch2.FetchError: Fetcher failure: Recipe uses a floating
> tag/branch '5.15/linux' for repo 'github.com/intel/linux-intel-lts.git
> <http://github.com/intel/linux-intel-lts.git>' without a fixed SRCREV yet
> doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).*
>
This looks like a recently opened bug (and a thread) :
Bug 14918 - Devtool fails if SRCREV is set to ${AUTOREV}
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14918
Thread :
https://lists.openembedded.org/g/bitbake-devel/message/13976?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Arecentpostdate%2Fsticky%2C%2CAUTOREV%2C20%2C2%2C0%2C93674384
Sorry, there is no fix yet but maybe you can contribute information/context
for the bug?
Regards,
--
Yoann Congal
Smile ECS
>
[-- Attachment #2: Type: text/html, Size: 2158 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] devtool build error
[not found] ` <56CEEDDB-A10A-4C86-87AF-64635683842C@gmail.com>
@ 2023-10-04 14:32 ` Yoann CONGAL
0 siblings, 0 replies; 3+ messages in thread
From: Yoann CONGAL @ 2023-10-04 14:32 UTC (permalink / raw)
To: SIMON BABY; +Cc: Yocto Mailing list
[-- Attachment #1: Type: text/plain, Size: 1974 bytes --]
Le mer. 4 oct. 2023 à 16:17, SIMON BABY <simonkbaby@gmail.com> a écrit :
> Thanks Yoann .
> Do we have any workaround ?
>
> Is there any other way to change the kernel source other than devtool?
>
I would either :
1) Spend the time to fix the bug
2) Do what I did in the good-ol' days before I used devtool :
* patch in tmp/work-shared/kernel-source directory (path approximated from
memory)
* convince bitbake to build without cleaning your patch (something with
"bitbake -C compile ..." maybe?)
* once tested, git format-patch to extract patches that can be used in
your recipe
It's hard to tell for sure which one will be shorter for you.
1) is definitely better for the community so I encourage you to try it ;)
Regards,
> Regards
> Simon
>
> Sent from my iPhone
>
> On Oct 3, 2023, at 11:27 PM, Yoann CONGAL <yoann.congal@smile.fr> wrote:
>
>
> Hello,
>
> Le mer. 4 oct. 2023 à 00:31, SIMON BABY <simonkbaby@gmail.com> a écrit :
>
>> Hello Team,
>>
>>
>> Can someone help to fix the error I see when using devtool build or
>> devtool update-recipe.
>>
>>
>> *Exception: bb.fetch2.FetchError: Fetcher failure: Recipe uses a floating
>> tag/branch '5.15/linux' for repo 'github.com/intel/linux-intel-lts.git
>> <http://github.com/intel/linux-intel-lts.git>' without a fixed SRCREV yet
>> doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).*
>>
> This looks like a recently opened bug (and a thread) :
> Bug 14918 - Devtool fails if SRCREV is set to ${AUTOREV}
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=14918
>
> Thread :
> https://lists.openembedded.org/g/bitbake-devel/message/13976?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Arecentpostdate%2Fsticky%2C%2CAUTOREV%2C20%2C2%2C0%2C93674384
>
> Sorry, there is no fix yet but maybe you can contribute
> information/context for the bug?
>
> Regards,
>
> --
> Yoann Congal
> Smile ECS
>
>>
--
Yoann Congal
Smile ECS - Tech expert
[-- Attachment #2: Type: text/html, Size: 4243 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-04 14:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 22:31 devtool build error SIMON BABY
2023-10-04 6:27 ` [yocto] " Yoann CONGAL
[not found] ` <56CEEDDB-A10A-4C86-87AF-64635683842C@gmail.com>
2023-10-04 14:32 ` Yoann CONGAL
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.