You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

Yocto Build Steps

Build Steps  for Dunfell branch :


repo init -u https://code.rdkcentral.com/r/manifests -b dunfell -m rdkb-extsrc.xml

$ repo sync -j`nproc` --no-clone-bundle

$ MACHINE=raspberrypi-rdk-broadband source meta-cmf-raspberrypi/setup-environment

$ bitbake rdk-generic-broadband-image


installed packagesinstalled packages at below path recipes -name Remarks 
gradle-nativebuild-raspberrypi-rdk-broadband/tmp/work/x86_64-linux/gradle-native/

gradle_4.8.1.bb 



gradle-4.8.1 by placing the gradle4.8.1/bin using export PATH


Errors and Challenges

Recipe Layer Error/WarningRoot CauseAction 

zilker_2.2.0

meta-cmf-raspberrypi 

Error: Missing SRC_URI checksum

not added checksum Added sha256sum
checksum 
zilker_2.2.0meta-cmf-raspberrypiError:

zilker-git-r0 do_fetch: Fetcher failure for URL: 

ParseError at /home/sbeher128/rama/meta-cmf-raspberrypi/recipes-zilker/zilker-sdk/zilker_2.2.0.bb: unparsed line: 'SRC_URI

not add SRC_URI properly git://rdkcentral/zilker-sdk;protocol=${RDK_GIT_PROTOCOL};branch=${ZILKER_BRANCH};name=zilker-client"
trower-base64_1.0.bb meta-rdk-broadband

WARNING: trower-base64-git+AUTOINC+fbb9440ae2-r0 do_fetch: Failed to fetch URL git://github.com/Comcast/trower-base64.git

ERROR: trower-base64-git+AUTOINC+fbb9440ae2-r0 do_fetch: Fetcher failure: Unable to find revision fbb9440ae2bc1118866baefcea7ff814f16613dd in branch master even from upstream
ERROR: trower-base64-git+AUTOINC+fbb9440ae2-r0 do_fetch: Fetcher failure for URL: 'git://github.com/Comcast/trower-base64.git'. Unable to fetch URL from any source.

not added related  SRC_URL 

added SRC_URI like 
git://github.com/Comcast/trower-base64.git;branch=main

File Path :

/meta-rdk-ext/recipes-support/trower-base64/trower-base64_1.0.bb

zilker_git.bbmeta-rdk-broadband 

fatal error: ccronexpr.h: No such file or directory
|   37 | #include <ccronexpr.h>
|      |         ^~~~~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.


not linked with ccronexpr libraryccronexpr file  is missing . 
added ccronexpr.h file like "ccrronexpr.h"  specified path 

zilker_git.bbmeta-rdk-broadband

 error: cannot find -lccronexpr
| /usr/src/debug/zilker/git-r0/git/source/services/automation/core/src/actions/timer.c:142: error: undefined reference to 'cron_parse_expr'
| /usr/src/debug/zilker/git-r0/git/source/services/automation/core/src/actions/timer.c:147: error: undefined reference to 'cron_next'
| collect2: error: ld returned 1 exit status
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.

ERROR: Task (/home/sbeher128/rama/meta-cmf-broadband/recipes-iot/zilker/zilker_git.bb :do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1369 tasks of which 1368 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds

Summary: 1 task failed:
  /home/sbeher128/rama/meta-cmf-broadband/recipes-iot/zilker/zilker_git.bb:do_compile

linking Error


cloned ccronexpr library at the below path 
build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/zilker/git-r0/git/source/services/automation/core/src

zilker_git.bbmeta-rdk-broadband

./buildTools/linux/recipe.sh -t


---  build started at Tue May 25 16:34:46  2021  -----------------------------------------
Checking environment...
--------------------------------------Incorrect version of 'java'
Require JDK 1.8, but seem to have versionScript : setup_build.sh
 ver=`java -version 2>&1 | grep '1\.8' | awk '{ print $NF }'`;
    checkVer=`echo $ver | grep '1\.8'`;
    if [ -z "$checkVer" ]; then
        echo "Incorrect version of 'java'";
        echo "Require JDK 1.8, but seem to have version $ver";
        exit 1;
    fi

not having suitable java version need to install  java 1.8  version by VM Administrator 
zilker_git.bbmeta-rdk-broadband getting error while executing below command below command 

zilker_git
 error: cannot find -lccronexpr
| collect2: error: ld returned 1 exit status
linking error 
not linking ccronexpr library 

removed ccronexpr library  int he file CMakeLists.txt  from the below path, 

ccronexpr library is not required  for dependencies.

build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/zilker/git-r0/git/source/services/automation/core



CMake Error at filesystem/cmake_install.cmake:69 (file):
|   file INSTALL cannot find
|   "/home/sbeher128/rama/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/zilker/git-r0/recipe-sysroot/usr/bin/curl":
|   No such file or directory.
| Call Stack (most recent call first):
|   cmake_install.cmake:86 (include)


| FAILED: CMakeFiles/install.util
| cd /home/sbeher128/rama/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/zilker/git-r0/build && /home/sbeher128/rama/build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/zilker/git-r0/recipe-sysroot-native/usr/bin/cmake -P cmake_install.cmake
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.

curl is  is missing

curl not available at below path 
build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/zilker/git-r0/recipe-sysroot/usr/bin

copied curl from below path :
build-raspberrypi-rdk-broadband/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/curl/7.69.1-r0/image/usr/bin


ERROR: gradle-native-git-r0 do_populate_lic: QA Issue: gradle-native: Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM) [license-checksum]
ERROR: gradle-native-git-r0 do_populate_lic: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /home/sbeher128/kaviya/ZILKER_GRADLE_DUNFELL/build-raspberrypi-rdk-broadband/tmp/work/x86_64-linux/gradle-native/git-r0/temp/log.do_populate_lic.2225139
incorrect license  file: LIC_FILES_CHKSUM added correct  md5 :
LIC_FILES_CHKSUM = "file://LICENSE;md5=2dc9d26236dd5d32f892d3e36cc4a554"

zilker_git.bb

CMake Error at buildTools/cmake/modules/AddZilkerAPI.cmake:52 (add_library):

| No SOURCES given to target: xhBackupRestoreServiceAPI

| Call Stack (most recent call first):

| source/services/backupRestore/api/c/CMakeLists.txt:26 (add_zilker_api)



zilker_git.bbmeta-cmf-broadnabd ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

| Please set the JAVA_HOME variable in your environment to match the
| location of your Java installation.

working is in progress
zilker_git.bbmeta-cmf-broadband

JAVA_HOME is set to an invalid directory: /usr/lib/jvm

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.





-----------------------------------------------------------
Gradle 4.8.1
------------------------------------------------------------

Build time:   2018-06-21 07:53:06 UTC
Revision:     0abdea078047b12df42e7750ccba34d69b516a22

Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          11.0.10 (Ubuntu 11.0.10+9-Ubuntu-0ubuntu1.18.04)
OS:           Linux 5.4.0-65-generic amd64



  • No labels