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

meta-openamp not building #14

Open
joschi2804 opened this issue Jul 9, 2021 · 1 comment
Open

meta-openamp not building #14

joschi2804 opened this issue Jul 9, 2021 · 1 comment

Comments

@joschi2804
Copy link

joschi2804 commented Jul 9, 2021

Hi,
I've added meta-openamp and added also the libmetal and open-amp packages to my layer.
When i tried to build it, i got currently following error:

NOTE: Running task 4541 of 7842 (/var/yocto/company/meta-openamp/recipes-openamp/libmetal/libmetal_git.bb:do_prepare_recipe_sysroot)
NOTE: Running task 4542 of 7842 (/var/yocto/company/meta-openamp/recipes-openamp/libmetal/libmetal_git.bb:do_unpack)
NOTE: recipe os-release-1.0-r0: task do_populate_sysroot: Started
NOTE: recipe libmetal-rel-v2020.2+gitAUTOINC+595d97e827-r0: task do_unpack: Started
NOTE: recipe os-release-1.0-r0: task do_package: Started
NOTE: recipe libmetal-rel-v2020.2+gitAUTOINC+595d97e827-r0: task do_prepare_recipe_sysroot: Started
ERROR: libmetal-rel-v2020.2+gitAUTOINC+595d97e827-r0 do_unpack: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export PATH="/var/yocto/company/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/var/yocto/company/poky/scripts:/var/yocto/company/build/tmp/work/${SOC_FAMILY_ARCH}-tdx-linux/libmetal/rel-v2020.2+gitAUTOINC+595d97e827-r0/recipe-sysroot-native/usr/bin/aarch64-tdx-linux:/var/yocto/company/build/tmp/work/${SOC_FAMILY_ARCH}-tdx-linux/libmetal/rel-v2020.2+gitAUTOINC+595d97e827-r0/recipe-sysroot/usr/bin/crossscripts:/var/yocto/company/build/tmp/work/${SOC_FAMILY_ARCH}-tdx-linux/libmetal/rel-v2020.2+gitAUTOINC+595d97e827-r0/recipe-sysroot-native/usr/sbin:/var/yocto/company/build/tmp/work/${SOC_FAMILY_ARCH}-tdx-linux/libmetal/rel-v2020.2+gitAUTOINC+595d97e827-r0/recipe-sysroot-native/usr/bin:/var/yocto/company/build/tmp/work/${SOC_FAMILY_ARCH}-tdx-linux/libmetal/rel-v2020.2+gitAUTOINC+595d97e827-r0/recipe-sysroot-native/sbin:/var/yocto/company/build/tmp/work/${SOC_FAMILY_ARCH}-tdx-linux/libmetal/rel-v2020.2+gitAUTOINC+595d97e827-r0/recipe-sysroot-native/bin:/var/yocto/company/poky/bitbake/bin:/var/yocto/company/build/tmp/hosttools"; export HOME="/tmp/tmp_9a406hi"; git -c core.fsyncobjectfiles=0 remote set-url origin "https://github.com/Xilinx/libmetal.git"
ERROR: Logfile of failure stored in: /var/yocto/company/build/tmp/work/${SOC_FAMILY_ARCH}-tdx-linux/libmetal/rel-v2020.2+gitAUTOINC+595d97e827-r0/temp/log.do_unpack.33591
NOTE: recipe libmetal-rel-v2020.2+gitAUTOINC+595d97e827-r0: task do_unpack: Failed
ERROR: Task (/var/yocto/company/meta-openamp/recipes-openamp/libmetal/libmetal_git.bb:do_unpack) failed with exit code '1'
NOTE: recipe os-release-1.0-r0: task do_populate_sysroot: Succeeded
NOTE: recipe os-release-1.0-r0: task do_package: Succeeded
ERROR: libmetal-rel-v2020.2+gitAUTOINC+595d97e827-r0 do_prepare_recipe_sysroot: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function:
0001:
*** 0002:extend_recipe_sysroot(d)
0003:
File: '/var/yocto/company/poky/meta/classes/staging.bbclass', lineno: 591, function: extend_recipe_sysroot
0587: for f in fixme:
0588: staging_processfixme(fixme[f], f, recipesysroot, recipesysrootnative, d)
0589:
0590: for p in postinsts:
*** 0591: subprocess.check_output(p, shell=True, stderr=subprocess.STDOUT)
0592:
0593: for dep in manifests:
0594: c = setscenedeps[dep][0]
0595: os.symlink(manifests[dep], depdir + "/" + c + ".complete")
File: '/usr/lib/python3.8/subprocess.py', lineno: 411, function: check_output
0407: # Explicitly passing input=None was previously equivalent to passing an
0408: # empty string. That is maintained here for backwards compatibility.
0409: kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
0410:
*** 0411: return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
0412: **kwargs).stdout
0413:
0414:
0415:class CompletedProcess(object):
File: '/usr/lib/python3.8/subprocess.py', lineno: 512, function: run
0508: # We don't call process.wait() as .exit does that for us.
0509: raise
0510: retcode = process.poll()
0511: if check and retcode:
*** 0512: raise CalledProcessError(retcode, process.args,
0513: output=stdout, stderr=stderr)
0514: return CompletedProcess(process.args, retcode, stdout, stderr)
0515:
0516:
Exception: subprocess.CalledProcessError: Command '/var/yocto/company/build/tmp/work/${SOC_FAMILY_ARCH}-tdx-linux/libmetal/rel-v2020.2+gitAUTOINC+595d97e827-r0/recipe-sysroot/usr/bin/postinst-useradd-systemd' returned non-zero exit status 127.

Subprocess output:
/bin/sh: /var/yocto/company/build/tmp/work/-tdx-linux/libmetal/rel-v2020.2+gitAUTOINC+595d97e827-r0/recipe-sysroot/usr/bin/postinst-useradd-systemd: No such file or directory

ERROR: Logfile of failure stored in: /var/yocto/company/build/tmp/work/${SOC_FAMILY_ARCH}-tdx-linux/libmetal/rel-v2020.2+gitAUTOINC+595d97e827-r0/temp/log.do_prepare_recipe_sysroot.33590
NOTE: recipe libmetal-rel-v2020.2+gitAUTOINC+595d97e827-r0: task do_prepare_recipe_sysroot: Failed
ERROR: Task (/var/yocto/company/meta-openamp/recipes-openamp/libmetal/libmetal_git.bb:do_prepare_recipe_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4756 tasks of which 4745 didn't need to be rerun and 2 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 6 seconds

I want to install meta-openamp on an imx8m mini (uses a ARM cortex A53).
Is there anyway a problem with installing it on this imx8m? Currently I found only solutions for xilinx based boards.

BR

@edmooring
Copy link

edmooring commented Sep 2, 2021

Note, I'm not a Yocto expert. My best guess is that there was a change that moved a dependency from eudev to systemd.
Try backing out this change:

index 90dfd0f..65fd3a5 100644
--- a/recipes-openamp/libmetal/libmetal.inc
+++ b/recipes-openamp/libmetal/libmetal.inc
@@ -18,7 +18,7 @@ S = "${WORKDIR}/git"
 
 # if user want to enable hugetlbfs support, please
 # add "DEPENDS_append_pn-libmetal = " libhugetlbfs "" to your local.conf
-DEPENDS = "sysfsutils eudev"
+DEPENDS = "sysfsutils udev"
 RDEPENDS_${PN} += "libudev"
 
 PROVIDES = "libmetal"

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

2 participants