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

Compare with Current View Page History

« Previous Version 26 Next »

Introduction

            This page describes the lists of configuration and compilation errors while creating the zilker-sdk recipe in yocto build environment.

Build Steps 

Please refer the below link for dunfell build steps ,

RPI 3B/3B+ Model Reference Platform


Errors and Challenges in yocto

Recipe Layer Error/WarningRoot CauseAction 

zilker_sdk_git.bb

meta-cmf-broadband 

Error: Missing SRC_URI checksum

not added checksum Added sha256sum
checksum 
zilker-sdk_git.bbmeta-cmf-broadband Error:

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


not add SRC_URI properly SRC_URI = "${CMF_GITHUB_ROOT}/zilker-sdk;protocol=${CMF_GIT_PROTOCOL};branch=${CMF_GITHUB_MAIN_BRANCH};name=zilker-sdk"
SRCREV_zilker-sdk = "${AUTOREV}"
SRCREV_FORMAT .= "_zilker-sdk"
zilker-sdk_git.bbmeta-cmf-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-sdk_git.bbmeta-cmf-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-sdk_git.bbmeta-cmf-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-sdk_git.bbmeta-cmf-broadband getting error while executing below command below command 

zilker-sdk_git.bbmeta-cmf-broadband  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

zilker-sdk_git.bbmeta-cmf-broadband 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
zilker-sdk_git.bbmeta-cmf-broadband 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-sdk_git.bbmeta-cmf-broadband 

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-sdk_git.bbmeta-cmf-broadbandERROR: 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-sdk_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.



zilker-sdk_git.bbmeta-cmf-broadband 

-----------------------------------------------------------
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



Validated Test Results

            Below list of libraries and binaries are generated by zilker-sdk recipe in rootfs folder in  yocto build environment.

Zilker-sdk
kpandu549@dvm-yocto3-docker-kpandu549:~/keerthana/jun1/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/rootfs/opt/zilker$ ls
bin  etc  include  lib  sbin  stock

kpandu549@dvm-yocto3-docker-kpandu549:~/keerthana/jun1/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/rootfs/opt/zilker$ cd bin/
kpandu549@dvm-yocto3-docker-kpandu549:~/keerthana/jun1/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/rootfs/opt/zilker/bin$ ls
env.sh            xhBackup.sh   xhCronEventUtil  xhProperties              xhRestore.sh   xhSetup.sh    xhSystemInfo
xhAutomationUtil  xhBackupUtil  xhDeviceUtil     xhResetToFactoryDefaults  xhServiceUtil  xhStartup.sh


kpandu549@dvm-yocto3-docker-kpandu549:~/keerthana/jun1/build-raspberrypi-rdk-broadband/tmp/work/raspberrypi_rdk_broadband-rdk-linux-gnueabi/rdk-generic-broadband-image/1.0-r0/rootfs/usr/lib$ ls -lh libxh*
-rwxr-xr-x 1 kpandu549 kpandu549  18K Jun  1 12:01 libxhAutomationServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549  14K Jun  1 12:01 libxhBackupRestoreServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549  39K Jun  1 12:01 libxhCommServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549  27K Jun  1 12:01 libxhConcurrent.so
-rwxr-xr-x 1 kpandu549 kpandu549  22K Jun  1 12:01 libxhConfig.so
-rwxr-xr-x 1 kpandu549 kpandu549  14K Jun  1 12:01 libxhCron.so
-rwxr-xr-x 1 kpandu549 kpandu549  14K Jun  1 12:01 libxhCrypto.so
-rwxr-xr-x 1 kpandu549 kpandu549  39K Jun  1 12:01 libxhCslt.so
-rwxr-xr-x 1 kpandu549 kpandu549  18K Jun  1 12:01 libxhDeviceDescriptors.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.8K Jun  1 12:01 libxhDeviceHelper.so
-rwxr-xr-x 1 kpandu549 kpandu549  93K Jun  1 12:01 libxhDeviceServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.7K Jun  1 12:01 libxhDeviceSimplified.so
-rwxr-xr-x 1 kpandu549 kpandu549  39K Jun  1 12:01 libxhIpc.so
-rwxr-xr-x 1 kpandu549 kpandu549 5.6K Jun  1 12:01 libxhJsonHelper.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.7K Jun  1 12:01 libxhJsonrpc.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.7K Jun  1 12:01 libxhLog.so
-rwxr-xr-x 1 kpandu549 kpandu549  27K Jun  1 12:01 libxhPropsServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549  14K Jun  1 12:01 libxhReset.so
-rwxr-xr-x 1 kpandu549 kpandu549 5.6K Jun  1 12:01 libxhSolar.so
-rwxr-xr-x 1 kpandu549 kpandu549  18K Jun  1 12:01 libxhSsdp.so
-rwxr-xr-x 1 kpandu549 kpandu549 5.4K Jun  1 12:01 libxhSysInfoHAL.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.7K Jun  1 12:01 libxhSystem.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.7K Jun  1 12:01 libxhTime.so
-rwxr-xr-x 1 kpandu549 kpandu549  18K Jun  1 12:01 libxhTypes.so
-rwxr-xr-x 1 kpandu549 kpandu549  22K Jun  1 12:01 libxhUrlHelper.so
-rwxr-xr-x 1 kpandu549 kpandu549  26K Jun  1 12:01 libxhUtil.so
-rwxr-xr-x 1 kpandu549 kpandu549  23K Jun  1 12:01 libxhWatchdogServiceAPI.so
-rwxr-xr-x 1 kpandu549 kpandu549 9.6K Jun  1 12:01 libxhXmlHelper.so


References

                    https://github.com/rdkcentral/zilker-sdk/blob/main/BUILDING.md

  • No labels