parse error in yocto build ERROR: ParseError at…
- User
parse error in yocto build
ERROR: ParseError at /home/questuser/rcar_dev/work_ros2_customAPP/build-whitehawk-adas/../meta-ros/meta-ros2-galactic/recipes-hello/demo/hello-world.bb:2: unparsed line: 'FILESEXTRAPATHS:= "${THISDIR}:"/hello-world1'
area from error is generated
FILESEXTRAPATHS_prepend := "${THISDIR}:"/hello-world1(Source file path) SRC_URI += "file://publisher_member_function.cpp" SRC_URI += "file://subscriber_member_function.cpp" SRC_URI += "file://CMakeLists.txt" SRC_URI += "file://package.xml"
- Assistant
The error message indicates a syntax issue in your BitBake recipe, specifically with the
FILESEXTRAPATHSassignment. It appears the problem is in the line:FILESEXTRAPATHS:= "${THISDIR}:"/hello-world1Here's how you can fix the issue:
-
Quoting: Ensure the entire value is within a single pair of quotes. You’re currently closing the quotes prematurely before the
/hello-world1part. Combine the string into one quoted segment. -
Usage of
_prepend: Since you’re trying to extend theFILESEXTRAPATHSvariable, you should use_prepend(or_append, depending on your intention) to add to the existing value. In your case,_prependmight be appropriate if you want your custom path to have precedence.
-
- User
ERROR: hello-world-1.0-r0 do_populate_lic: QA Issue: hello-world: Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM) [license-checksum] ERROR: hello-world-1.0-r0 do_populate_lic: Fatal QA errors found, failing task. ERROR: Logfile of failure stored in: /home/questuser/rcar_dev/work_ros2_customAPP/build-whitehawk-adas/tmp/work/aarch64-poky-linux/hello-world/1.0-r0/temp/log.do_populate_lic.574064 ERROR: Task (/home/questuser/rcar_dev/work_ros2_customAPP/build-whitehawk-adas/../meta-ros/meta-ros2-galactic/recipes-hello/demo/hello-world.bb:do_populate_lic) failed with exit code '1
- Assistant
The error message you are seeing indicates that the Yocto build system requires license information for the package you are trying to build, but it hasn't been provided in the recipe file. Specifically, the
LIC_FILES_CHKSUMvariable is missing. This variable is essential because it verifies the licensing information by referring to a specific file and its checksum, ensuring that the expected license text hasn't been altered.