while building the gputop ut
Please source your tool-chain
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake:91 (include)
CMakeLists.txt:1 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
ility in my system I am getting the below error
Hi @ravicalm!
You have to compile and set up our toolchain.
###### Host package setup ######
$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool rsync curl
##### To obtain the SDK (.sh file) you have to do it in Yocto with: #####
$ bitbake imx-image-core -c populate_sdk
###### Execute script for SDK installation ######
$ chmod a+x fsl-imx-internal-xwayland-glibc-x86_64-test-internal-qt6-armv8a-imx8mpevk-toolchain-5.15-kirkstone.sh
###### Set environment for build ######
$ . /opt/fsl-imx-internal-xwayland/5.15-kirkstone/environment-setup-armv8a-poky-linux
$ export ARCH=arm64
bitbake imx-image-core -c populate_sdk
WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
Loading cache: 100% |###########################################################################################################################################################################################################################################| Time: 0:00:00
Loaded 3903 entries from dependency cache.
NOTE: /work/repo/smart/out/flypcb/../../device/flypcb/img/bui3xx-image.bb: Parsing config file /work/repo/smart/device/flypcb/flash/conf/fly.json########################################################################## | ETA: 0:00:00
NOTE: /work/repo/smart/out/flypcb/../../device/flypcb/img/bui3xx-image.bb: Found size 1048576 kbyte for bui3xx-image
NOTE: /work/repo/smart/out/flypcb/../../device/flypcb/img/bui3xx-image-remote-sysroot.bb: Parsing config file /work/repo/smart/device/flypcb/flash/conf/fly.json###################################################################### | ETA: 0:00:00
NOTE: /work/repo/smart/out/flypcb/../../device/flypcb/img/bui3xx-image-remote-sysroot.bb: Found size 1048576 kbyte for bui3xx-image
Parsing recipes: 100% |#########################################################################################################################################################################################################################################| Time: 0:00:05
Parsing of 2944 .bb files complete (2735 cached, 209 parsed). 4110 targets, 490 skipped, 2 masked, 0 errors.
ERROR: Nothing PROVIDES 'imx-image-core'. Close matches:
imx-mkimage
Summary: There was 1 WARNING message shown.
Hi @ravicalm!
I recommend following Yocto User Guide (Chapter 3 to Chapter 5):
https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf
What steps are you following to compile your image?
Hi @Chavira ,
I have tried the followed scenarios:
One scenario:
what ever I have given the above error that I compiled the package by directly downloading the gputop package from this https://github.com/nxp-imx/imx-gputop/tree/release and compiled in the virtual box having os
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
second scenario:
I have used the .bb file in this project and I have downloaded the code but not able to get any executable
# bb-example .bb build file
# place this in your meta- layer folder under
# recipes/bb-example/bb-example.bb
DESCRIPTION = "bb-example code"
LICENSE = "MIT"
S = "${WORKDIR}/git"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${S}/LICENSE.txt;md5=bcacc6777a7173f8b95b5d1e0ac341ae"
BRANCH = "release"
SRC_URI = "git://github.com/nxp-imx/imx-gputop;protocol=https;branch=${BRANCH}"
SRCREV="${AUTOREV}"
CXXFLAGS += " -g -std=c++11"
EXTRA_OECMAKE += "-DSYSROOT_STAGING:PATH=${STAGING_DIR_TARGET}"
Third scenario:
I have included the IMAGE_INSTALL_append_debug = " imx-test gputop" in the device/flypcb/img/bui3xx-image.bb but not able to download any package and not able to compile imx-test related things.
/make.sh
Target image is bui3xx-all-images
Connection to artifactory can not be established. May use offline material if available.
Starting time measure
Building in /work/repo/smart/out/flypcb
Cleaning image files
WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
Loading cache: 100% |###########################################################################################################################################################################################################################################| Time: 0:00:00
Loaded 3903 entries from dependency cache.
NOTE: /work/repo/smart/out/flypcb/../../device/flypcb/img/bui3xx-image.bb: Parsing config file /work/repo/smart/device/flypcb/flash/conf/fly.json############################################################################ | ETA: 0:00:00
NOTE: /work/repo/smart/out/flypcb/../../device/flypcb/img/bui3xx-image.bb: Found size 1048576 kbyte for bui3xx-image
NOTE: /work/repo/smart/out/flypcb/../../device/flypcb/img/bui3xx-image-remote-sysroot.bb: Parsing config file /work/repo/smart/device/flypcb/flash/conf/fly.json###################################################################### | ETA: 0:00:00
NOTE: /work/repo/smart/out/flypcb/../../device/flypcb/img/bui3xx-image-remote-sysroot.bb: Found size 1048576 kbyte for bui3xx-image
Parsing recipes: 100% |#########################################################################################################################################################################################################################################| Time: 0:00:05
Parsing of 2944 .bb files complete (2735 cached, 209 parsed). 4110 targets, 490 skipped, 2 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'imx-test' (but /work/repo/smart/out/flypcb/../../device/flypcb/img/bui3xx-image.bb RDEPENDS on or otherwise requires it)
imx-test was skipped: incompatible with machine fly (not in COMPATIBLE_MACHINE)
imx-test was skipped: incompatible with machine fly (not in COMPATIBLE_MACHINE)
NOTE: Runtime target 'imx-test' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['imx-test']
ERROR: Required build target 'bui3xx-all-images' has no buildable providers.
Missing or unbuildable dependency chain was: ['bui3xx-all-images', 'bui3xx-image', 'imx-test']
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
--> running: bitbake bui3xx-all-images
WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
Loading cache: 100% |###########################################################################################################################################################################################################################################| Time: 0:00:00
Loaded 3903 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################################################################################################################################| Time: 0:00:05
Parsing of 2944 .bb files complete (2737 cached, 207 parsed). 4110 targets, 490 skipped, 2 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'imx-test' (but /work/repo/smart/out/flypcb/../../device/flypcb/img/bui3xx-image.bb RDEPENDS on or otherwise requires it)
imx-test was skipped: incompatible with machine fly (not in COMPATIBLE_MACHINE)
imx-test was skipped: incompatible with machine fly (not in COMPATIBLE_MACHINE)
NOTE: Runtime target 'imx-test' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['imx-test']
ERROR: Required build target 'bui3xx-all-images' has no buildable providers.
Missing or unbuildable dependency chain was: ['bui3xx-all-images', 'bui3xx-image', 'imx-test']
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Build operation took 19 s
Exiting with 1
@Chavira could you please help what should I do?
My board details:
Operating System: Poky (Yocto Project Reference Distro) 2.7.1 (warrior)
Kernel: Linux 4.14.98
I am using armel architecture please provide the tool chain as well( I am new to this field could you please help on this by explaining clearly
These steps also confusing me:
This assumes that the library is already installed in your toolchain, otherwise proceed to ``Specifing libgpuperfcnt include and library path'' section.
Source your toolchain:$ . /path/to/your/toolchain/environment
Build:$ cmake -DCMAKE_TOOLCHAIN_FILE=cmake/OEToolchainConfig.cmake ..
Install:$ make install
@chivara, My final aim is to test the gpu performance on the imx7ulp board . I am observing the gpuperfcnt library is not found could you please help me in getting that