Please source your tool-chain Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Please source your tool-chain Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/

1,456 Views
ravicalm
Contributor I

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

0 Kudos
Reply
7 Replies

1,438 Views
Chavira
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

1,415 Views
ravicalm
Contributor I

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.

0 Kudos
Reply

1,378 Views
Chavira
NXP TechSupport
NXP TechSupport

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?

0 Kudos
Reply

1,418 Views
ravicalm
Contributor I

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

 

 

 

 

0 Kudos
Reply

1,411 Views
ravicalm
Contributor I
@Chavira sorry for asking multiple questions I have the package related to /usr/bin/arm-linux-gnueabihf-gcc for armel architecture but even after running the below
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/OEToolchainConfig.cmake
CMake Error at cmake/OEToolchainConfig.cmake:4 (message):
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!
0 Kudos
Reply

1,409 Views
ravicalm
Contributor I
@Chavira​ I have tried compiling like this, I am not sure whether I am following correct way or not



arm-linux-gnueabihf-gcc top.c states.c debugfs.c -I debugfs.h states.h top.h -o top



I got below errors:

cc1: warning: debugfs.h: not a directory

top.c:45:10: fatal error: gpuperfcnt/gpuperfcnt.h: No such file or directory

#include <gpuperfcnt/gpuperfcnt.h>

^~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

cc1: warning: debugfs.h: not a directory

In file included from states.c:29:0:

states.h:68:2: error: unknown type name ‘uint32_t’

uint32_t bit;

^~~~~~~~

states.h:69:2: error: unknown type name ‘bool’

bool inv;

^~~~

states.c:32:66: error: ‘true’ undeclared here (not in a function)

{"FE (Graphics Pipeline Front End) ", VIVS_HI_IDLE_STATE_FE, true},

^~~~

states.c:47:70: error: ‘false’ undeclared here (not in a function)

{"AXI_LP (AXI bus in low power) ", VIVS_HI_IDLE_STATE_AXI_LP, false}

^~~~~

states.c:97:2: error: unknown type name ‘uint32_t’

uint32_t viv_idle_states[NUM_VIV_IDLE_MODULES];

^~~~~~~~

states.c:99:2: error: unknown type name ‘uint32_t’

uint32_t viv_cmd_state[32];

^~~~~~~~

states.c:101:2: error: unknown type name ‘uint32_t’

uint32_t viv_cmd_dma_state[4];

^~~~~~~~

states.c:102:2: error: unknown type name ‘uint32_t’

uint32_t viv_cmd_fetch_state[3];

^~~~~~~~

states.c:104:2: error: unknown type name ‘uint32_t’

uint32_t viv_req_dma_state[3];

^~~~~~~~

states.c:105:2: error: unknown type name ‘uint32_t’

uint32_t viv_cal_state[3];

^~~~~~~~

states.c:106:2: error: unknown type name ‘uint32_t’

uint32_t viv_ve_req_state[3];

^~~~~~~~

states.c:108:2: error: unknown type name ‘uint32_t’

uint32_t idle_cycles_core0;

^~~~~~~~

states.c:109:2: error: unknown type name ‘uint32_t’

uint32_t idle_cycles_core1;

^~~~~~~~

states.c:111:2: error: unknown type name ‘uint32_t’

uint32_t total_idle_cycles_core0;

^~~~~~~~

states.c:112:2: error: unknown type name ‘uint32_t’

uint32_t total_idle_cycles_core1;

^~~~~~~~

cc1: warning: debugfs.h: not a directory

debugfs.c:35:10: fatal error: gpuperfcnt/gpuperfcnt_debugfs.h: No such file or directory

#include "gpuperfcnt/gpuperfcnt_debugfs.h"

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

cc1: warning: debugfs.h: not a directory

states.h:68:2: error: unknown type name ‘uint32_t’

uint32_t bit;

^~~~~~~~

states.h:69:2: error: unknown type name ‘bool’

bool inv;

^~~~

cc1: warning: debugfs.h: not a directory

top.h:160:2: error: unknown type name ‘bool’

bool enabled;

^~~~

top.h:165:2: error: unknown type name ‘uint8_t’

uint8_t page_no;

^~~~~~~

top.h:170:37: error: field ‘type’ has incomplete type

enum vivante_profiler_type_counter type;

^~~~

top.h:172:2: error: unknown type name ‘uint32_t’

uint32_t num_perf_counters;

^~~~~~~~

top.h:173:2: error: unknown type name ‘uint32_t’

uint32_t num_perf_derived_counters;

^~~~~~~~

top.h:174:2: error: unknown type name ‘uint64_t’

uint64_t total_num_perf_counters;

^~~~~~~~

top.h:176:2: error: unknown type name ‘uint32_t’

uint32_t *counter_data;

^~~~~~~~

top.h:177:2: error: unknown type name ‘uint32_t’

uint32_t *counter_data_last;

^~~~~~~~

top.h:179:2: error: unknown type name ‘uint64_t’

uint64_t *events_per_sample;

^~~~~~~~

top.h:181:2: error: unknown type name ‘uint64_t’

uint64_t *events_per_sample_max;

^~~~~~~~

top.h:182:2: error: unknown type name ‘uint64_t’

uint64_t *events_per_sample_min;

^~~~~~~~

top.h:183:2: error: unknown type name ‘uint64_t’

uint64_t *events_per_sample_average;

^~~~~~~~

top.h:185:2: error: unknown type name ‘bool’

bool *reset_after_read;

^~~~

top.h:189:27: error: field ‘st’ has incomplete type

struct vivante_gpu_state st;

^~

top.h:207:2: error: unknown type name ‘uint32_t’

uint32_t *data;

^~~~~~~~

top.h:212:26: error: field ‘drv_info’ has incomplete type

struct perf_driver_info drv_info;

^~~~~~~~

top.h:213:22: error: field ‘hw_info’ has incomplete type

struct perf_hw_info hw_info;

^~~~~~~

top.h:216:2: error: unknown type name ‘uint8_t’

uint8_t cores[3];

^~~~~~~

top.h:219:2: error: unknown type name ‘bool’

bool found;

^~~~

top.h:226:24: error: field ‘governor’ has incomplete type

struct debugfs_govern governor;

^~~~~~~~

top.h:227:23: error: field ‘clock’ has incomplete type

struct debugfs_clock clock;

0 Kudos
Reply

1,402 Views
ravicalm
Contributor I

@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

0 Kudos
Reply