Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error for graphviz #755

Open
bchoineubility opened this issue Oct 26, 2023 · 2 comments
Open

build error for graphviz #755

bchoineubility opened this issue Oct 26, 2023 · 2 comments

Comments

@bchoineubility
Copy link

Hi,

I faced build error for graphviz as following.

ERROR: graphviz-2.50.0-r0 do_prepare_recipe_sysroot: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:extend_recipe_sysroot(d)
     0003:
File: '/home/bchoi/nvidia-yocto-bsp/sources/poky/meta/classes/staging.bbclass', lineno: 626, function: extend_recipe_sysroot
     0622:    for f in fixme:
     0623:        staging_processfixme(fixme[f], f, recipesysroot, recipesysrootnative, d)
     0624:
     0625:    for p in postinsts:
 *** 0626:        subprocess.check_output(p, shell=True, stderr=subprocess.STDOUT)
     0627:
     0628:    for dep in manifests:
     0629:        c = setscenedeps[dep][0]
     0630:        os.symlink(manifests[dep], depdir + "/" + c + ".complete")
File: '/usr/lib/python3.8/subprocess.py', lineno: 415, function: check_output
     0411:        else:
     0412:            empty = b''
     0413:        kwargs['input'] = empty
     0414:
 *** 0415:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
     0416:               **kwargs).stdout
     0417:
     0418:
     0419:class CompletedProcess(object):
File: '/usr/lib/python3.8/subprocess.py', lineno: 516, function: run
     0512:            # We don't call process.wait() as .__exit__ does that for us.
     0513:            raise
     0514:        retcode = process.poll()
     0515:        if check and retcode:
 *** 0516:            raise CalledProcessError(retcode, process.args,
     0517:                                     output=stdout, stderr=stderr)
     0518:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0519:
     0520:
Exception: subprocess.CalledProcessError: Command '/home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-poky-linux/graphviz/2.50.0-r0/recipe-sysroot-native/usr/bin/postinst-graphviz-native' returned non-zero exit status 126.

Subprocess output:
/home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-poky-linux/graphviz/2.50.0-r0/recipe-sysroot-native/usr/bin/postinst-graphviz-native: 3: dot: Permission denied

ERROR: Logfile of failure stored in: /home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-poky-linux/graphviz/2.50.0-r0/temp/log.do_prepare_recipe_sysroot.2376033

My build env is

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

  <default sync-j="8"/>

  <remote fetch="https://github.com/OE4T" name="OE4T"/>
  <remote fetch="https://github.com/OSSystems" name="OSSystems"/>
  <!--remote fetch="https://code.qt.io/yocto"  name="QT5"/-->
  <remote fetch="https://github.com/meta-qt5"  name="meta-qt5"/>
  <remote fetch="https://github.com/TimesysGit"  name="Timesys"/>
  <remote fetch="https://github.com/kraj" name="clang"/>
  <remote fetch="https://github.com/openembedded" name="oe"/>
  <!--remote fetch="https://github.com/ros" name="ros"/-->
  <remote fetch="https://github.com/moto-timo" name="ros"/>
  <remote fetch="https://git.yoctoproject.org/git" name="yocto"/>
  <!--remote fetch="https://github.com/bchoineubility" name="bchoineubility"/-->
  <remote fetch="[email protected]:bchoineubility" name="bchoineubility"/>
  <!--remote fetch="https://github.com/yoctoproject" name="yocto"/-->

  <project name="meta-browser" path="sources/meta-browser" remote="OSSystems" revision="b279a4dc078ba6957815e2496820f1eadbafd58a"/>
  <project name="meta-clang" path="sources/meta-clang" remote="clang" revision="71321ddf78ea522b87a6b4bffefb14c988a6d921" upstream="kirkstone"/>
  <project name="meta-tegra" path="sources/meta-tegra" remote="OE4T" revision="2a808b6afb221974196d2eeab3537140ebb63cc7" upstream="kirkstone"/>
  <!--project sync-s="true" name="meta-demo-distro" path="sources/meta-demo-distro" remote="OE4T" revision="8fb5741bfb3e84189281391cb7245863b834763e" upstream="kirkstone"/-->
  <project name="meta-tegra-community" path="sources/meta-tegra-community" remote="OE4T" revision="56ce73e5f5a36cea832894946787bd024b71493e" upstream="kirkstone"/>
  <!--project name="meta-neubility.git" path="sources/meta-neubility" remote="bchoineubility" revision="57edbb0f1e7fcbee44389f51b23b1a0fb78b95dd" upstream="staging"/-->

  <!--project name="meta-imx" path="sources/meta-imx" remote="nxp-imx" revision="refs/tags/rel_imx_5.15.71_2.2.0" upstream="kirkstone-5.15.71-2.2.0"-->
    <!--linkfile dest="imx-setup-release.sh" src="tools/imx-setup-release.sh"/>
    <linkfile dest="README-IMXBSP" src="README"/>
  </project-->

  <project name="meta-openembedded" path="sources/meta-openembedded" remote="oe" revision="f95484417e3d3e65ca15b460ba71dfd35773f0e4" upstream="kirkstone"/>
  <project name="meta-qt5" path="sources/meta-qt5" remote="meta-qt5" revision="bff5bd937f0776166e81a63f3dd39ede348ef758" upstream="kirkstone"/>
  <project name="meta-timesys" path="sources/meta-timesys" remote="Timesys" revision="ae4f6e9854361d4a6d71b6f8b87130268d990b32" upstream="kirkstone"/>
  <project name="meta-virtualization" path="sources/meta-virtualization" remote="yocto" revision="b3b3dbc67504e8cd498d6db202ddcf5a9dd26a9d" upstream="kirkstone"/>
  <project name="meta-security" path="sources/meta-security" remote="yocto" revision="d398cc6ea6716afd3a3a6e88ad8fbdc89510ef23" upstream="kirkstone"/>
  <!--project name="meta-ros" path="sources/meta-ros" remote="ros" revision="a0e7adc03b974dd4ac07688f3ff8e56eaaab1770" upstream="kirkstone"/-->
  <project name="meta-ros" path="sources/meta-ros" remote="ros" revision="a0e7adc03b974dd4ac07688f3ff8e56eaaab1770"/>
  <project name="poky" path="sources/poky" remote="yocto" revision="1e6f147c686a91b9a5996f529e32ee1852f946b7" upstream="kirkstone"/>
</manifest>

local.conf is default + as follows :


BB_NUMBER_THREADS = "8"
PARALLEL_MAKE  = "-j 8"

SKIP_META_VIRT_SANITY_CHECK = "1"
TEGRA_INITRAMFS_INITRD = "0"

EXTRA_IMAGE_FEATURES = ""

LICENSE_FLAGS_ACCEPTED = "commercial"

PACKAGE_CLASSES = "package_deb"

IMAGE_CLASSES += "image_types_tegra"
IMAGE_FSTYPES = "tegraflash"
DISTRO_FEATURES:append = " virtualization"
DISTRO_FEATURES:append = " security"
DISTRO_FEATURES:append = " seccomp"
DISTRO_FEATURES:append = " nvidia-docker"

DISTRO_FEATURES:append = " systemd"
DISTRO_FEATURES:remove = "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_BACKFILL:remove = "sysvinit"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
DISTRO_FEATURE:remove = "packagegroup-core-ssh-dropbear"

DISTRO_FEATURES:append = " ssh-server-openssh"

DISTRO_FEATURES:append = " x11 opengl wayland faad2"

PREFERRED_PROVIDER_virtual/base-utils = "coreutils"
VIRTUAL-RUNTIME_base-utils = "coreutils"
VIRTUAL-RUNTIME_base-utils-hwclock = "util-linux-hwclock"
VIRTUAL-RUNTIME_base-utils-syslog = ""


IMAGE_INSTALL:append = " nvidia-docker"
IMAGE_INSTALL:append = " cuda-samples"
EXTRA_IMAGE_FEATURES += " tools-sdk"

IMAGE_INSTALL:append = " deepstream-6.2 deepstream-tests"
IMAGE_INSTALL:append = " dlpack"
IMAGE_INSTALL:append = " python3-geventhttpclient python3-jepture python3-jetcam python3-jetson-stats python3-pycuda python3-pytools python3-rapidjson"
IMAGE_INSTALL:append = " triton-client triton-core triton-python-backend triton-server triton-tensorrt-backend vpi2-samples"
IMAGE_INSTALL:append = " vpi2-samples"
IMAGE_INSTALL:append = " cudnn"
IMAGE_INSTALL:append = " gstreamer1.0-plugins-nvvideo4linux2 nvgstapps"
IMAGE_INSTALL:append = " tegra-mmapi tegra-mmapi-dev"
IMAGE_INSTALL:append = " tensorrt-samples tensorrt-plugins-prebuilt tensorrt-core tensorrt-trtexec tensorrt-trtexec-prebuilt"

IMAGE_INSTALL:append = " apt net-tools vim netplan nano grep which procps htop iotop atop gzip tar busybox-syslog"

IMAGE_INSTALL:append = " openssh-sftp-server sudo python3 python3-pip"
IMAGE_INSTALL:append = " openssh nfs-utils"

IMAGE_INSTALL:append = " dfu-util docker-ce kernel-module-wireguard giflib chrony libedit \
                        gstreamer1.0-rtsp-server gnupg asio-dev cairo-dev elfutils fontconfig freetype giflib \
                        libjpeg-turbo libpng qtsvg libwebsockets websocketpp-dev cppzmq-dev qtbase-dev rapidjson-dev \
                        setserial sshpass ifmetric python3-distutils-extra chronyc ros2pkg-dev python3-zopeinterface-dev \
                        brotli lifecycle-dev system-modes-msgs-dev ament-cmake-dev python3-rospkg \
                        opencv-dev opencv-staticdev googletest-dev libssh yaml-cpp"

IMAGE_INSTALL:append = " python3-colcon-bash python3-colcon-cd python3-colcon-cmake \
                        python3-colcon-common-extensions python3-colcon-core \
                        python3-colcon-defaults python3-colcon-devtools python3-colcon-library-path \
                        python3-colcon-metadata python3-colcon-notification python3-colcon-output \
                        python3-colcon-package-information python3-colcon-package-selection \
                        python3-colcon-parallel-executor python3-colcon-pkg-config \
                        python3-colcon-python-setup-py python3-colcon-recursive-crawl \
                        python3-colcon-ros python3-colcon-test-result \
                        "

IMAGE_INSTALL:append = " python3-humanfriendly python3-colcon-ros python-cmake-module cmake gcc g++ gcc-symlinks g++-symlinks \
                        ament-cmake-libraries-dev ament-cmake-export-definitions-dev ament-cmake-export-include-directories-dev \
                        foonathan-memory-staticdev \
                        "
IMAGE_INSTALL:append = " ament-cmake-export-definitions \
                          ament-cmake-export-dependencies \
                          ament-cmake-export-include-directories \
                          ament-cmake-export-interfaces \
                          ament-cmake-export-libraries \
                          ament-cmake-export-link-flags \
                          ament-cmake-export-targets \
"

IMAGE_INSTALL:append = " gtest-vendor-dev clang ament-cpplint"

TOOLCHAIN_HOST_TASK:append = " nativesdk-python3-colcon-common-extensions nativesdk-python3-colcon-core"

BR,
Mark

@bchoineubility
Copy link
Author

I changed permission for dot manually.

bchoi@nvidia-build:~/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-poky-linux/graphviz/2.50.0-r0/recipe-sysroot-native/usr/bin$ ls -al dot
-rw-r--r-- 3 bchoi bchoi 14360 10월 26 12:54 dot
bchoi@nvidia-build:~/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-poky-linux/graphviz/2.50.0-r0/recipe-sysroot-native/usr/bin$ chmod 777 dot
bchoi@nvidia-build:~/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-poky-linux/graphviz/2.50.0-r0/recipe-sysroot-native/usr/bin$ ll dot
-rwxrwxrwx 3 bchoi bchoi 14360 10월 26 12:54 dot*
bchoi@nvidia-build:~/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-poky-linux/graphviz/2.50.0-r0/recipe-sysroot-native/usr/bin$

Thanks.

@bchoineubility
Copy link
Author

bchoineubility commented Oct 26, 2023

This patch would be required.

0001-Change-access-right_dot.patch

Can you look into it?

BR,
Mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant