cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kevinwang65
Visitor
Visitor
482 Views
Registered: ‎12-12-2019

got errors during petalinux-build

Hi,

 I got errors during petalinux-build as follows, please help.

Thanks.

 

$ petalinux-build

INFO: Sourcing build tools

[INFO] Building project

[INFO] Sourcing build environment

[INFO] Generating workspace directory

INFO: bitbake petalinux-image-minimal

WARNING: /home/kevin/xilini-ultra96/ultra96v2/project-spec/meta-avnet/recipes-apps/pmic-prog/pmic-prog.bb: Exception during build_dependencies for AUTOREV

WARNING: /home/kevin/xilini-ultra96/ultra96v2/project-spec/meta-avnet/recipes-apps/pmic-prog/pmic-prog.bb: Error during finalise of /home/kevin/xilini-ultra96/ultra96v2/project-spec/meta-avnet/recipes-apps/pmic-prog/pmic-prog.bb

ERROR: ExpansionError during parsing /home/kevin/xilini-ultra96/ultra96v2/project-spec/meta-avnet/recipes-apps/pmic-prog/pmic-prog.bb

0 Kudos
11 Replies
hokim
Scholar
Scholar
451 Views
Registered: ‎10-21-2015

Hi 

Did you enable BB_NO_NETWORK?

Yocto manual says:

The offline build does not work if recipes attempt to find the latest version of software by setting SRCREV to ${AUTOREV}

https://docs.yoctoproject.org/gatesgarth/dev-manual/dev-manual-common-tasks.html#replicating-a-build-offline

Use the latest commit hash instead of AUTOREV

 

$ vi pmic-prog.bb
#SRCREV = "${AUTOREV}"
SRCREV = "ce8fcca99540a07ed60400fc9b218d843d0de8b7"

 

 

 

 

0 Kudos
kevinwang65
Visitor
Visitor
440 Views
Registered: ‎12-12-2019

Where is the location of pmic-prog.bb? Thanks.

 

0 Kudos
hokim
Scholar
Scholar
430 Views
Registered: ‎10-21-2015

Hi

See your log 

/home/kevin/xilini-ultra96/ultra96v2/project-spec/meta-avnet/recipes-apps/pmic-prog/pmic-prog.bb

0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
387 Views
Registered: ‎09-12-2007

Can you share this BB file:

ERROR: ExpansionError during parsing /home/kevin/xilini-ultra96/ultra96v2/project-spec/meta-avnet/recipes-apps/pmic-prog/pmic-prog.bb

There is an error in this file. 

0 Kudos
kevinwang65
Visitor
Visitor
347 Views
Registered: ‎12-12-2019

Here is the bb file.

0 Kudos
kevinwang65
Visitor
Visitor
345 Views
Registered: ‎12-12-2019

I modified .bb file to 

SRCREV = "ce8fcca99540a07ed60400fc9b218d843d0de8b7" 

but still got errors.

0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
340 Views
Registered: ‎09-12-2007

I dont see the bb file. As per the error message the tools are struggling to parse this file. 

0 Kudos
kevinwang65
Visitor
Visitor
329 Views
Registered: ‎12-12-2019

re-send the .bb file.

0 Kudos
kevinwang65
Visitor
Visitor
326 Views
Registered: ‎12-12-2019

here is the error message.

0 Kudos
hokim
Scholar
Scholar
234 Views
Registered: ‎10-21-2015

Hi 

Your log says:

git -c core.fsyncobjectfiles=0 ls-remote https://github.com/Avnet/BSP-rootfs-sources.git failed with exit code 128, output:
fatal: unable to access 'https://github.com/Avnet/BSP-rootfs-sources.git/': SSL certificate problem: unable to get local issuer certificate

In linux terminal, could you try this?

$ cd <peta-proj-dir>

$ ./build/tmp/hosttools/git -c core.fsyncobjectfiles=0 ls-remote https://github.com/Avnet/BSP-rootfs-sources.git
-c core.fsyncobjectfiles=0 ls-remote https://github.com/Avnet/BSP-rootfs-sources.git

To fix it , refer to https://confluence.atlassian.com/bitbucketserverkb/ssl-certificate-problem-unable-to-get-local-issuer-certificate-816521128.html

0 Kudos
kevinwang65
Visitor
Visitor
193 Views
Registered: ‎12-12-2019

Hello,

 I ran it again from my home and error massage has been changed. Here is the log file. 

 

ERROR: device-tree-xilinx-v2020.2+gitAUTOINC+f725aaecff-r0 do_compile: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:devicetree_do_compile(d)
0003:
File: '/home/kevin/xilini-ultra96/ultra96v2/components/yocto/layers/core/meta/classes/devicetree.bbclass', lineno: 124, function: devicetree_do_compile
0120:
0121:python devicetree_do_compile() {
0122: includes = expand_includes("DT_INCLUDE", d)
0123: listpath = d.getVar("DT_FILES_PATH")
*** 0124: for dts in os.listdir(listpath):
0125: dtspath = os.path.join(listpath, dts)
0126: try:
0127: if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):
0128: continue # skip non-.dts files and non-overlay files
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/kevin/xilini-ultra96/ultra96v2/project-spec/configs/../../components/plnx_workspace/device-tree/device-tree'

ERROR: Logfile of failure stored in: /home/kevin/xilini-ultra96/ultra96v2/build/tmp/work/u96v2_sbc-xilinx-linux/device-tree/xilinx-v2020.2+gitAUTOINC+f725aaecff-r0/temp/log.do_compile.15032
NOTE: recipe device-tree-xilinx-v2020.2+gitAUTOINC+f725aaecff-r0: task do_compile: Failed
ERROR: Task (/home/kevin/xilini-ultra96/ultra96v2/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2166 tasks of which 2005 didn't need to be rerun and 1 failed.
ERROR: Failed to build project

 

Thanks

 

 

0 Kudos