Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Make fails: missing resourcemgr.service #86

Open
trmong opened this issue Nov 21, 2018 · 2 comments
Open

Make fails: missing resourcemgr.service #86

trmong opened this issue Nov 21, 2018 · 2 comments

Comments

@trmong
Copy link

trmong commented Nov 21, 2018

I have a clean build pulled just this week from the Sumo branch. The target is aarch62 for the raspberryPI 3 64 bit user space target. This is a systemd target not sysvinit. The build completed successfully after which I added the packagegroup-security-tpm2 package. Now I am getting the following build failure. I checked the package group and see the resourcemgr is part of the build. Don't know where to go with this... Thanks.

NOTE: Executing RunQueue Tasks
ERROR: tpm2.0-tss-1.3.0-r0 do_patch: Function failed: fix_systemd_unit (log file is located at /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/temp/log.do_patch.10164)
ERROR: Logfile of failure stored in: /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/temp/log.do_patch.10164
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/MCA_RDP_SRV/poky-pi/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['quilt-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function do_patch
| DEBUG: Executing python function patch_do_patch
| DEBUG: Searching for ax_pthread.m4 in paths:
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/poky
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/poky
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/poky
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/raspberrypi3-64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/raspberrypi3-64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/raspberrypi3-64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/raspberrypi3
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/raspberrypi3
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/raspberrypi3
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/rpi
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/rpi
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/rpi
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/
| DEBUG: Python function patch_do_patch finished
| DEBUG: Python function do_patch finished
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Executing shell function fix_systemd_unit
| sed: can't read /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/git/contrib/resourcemgr.service: No such file or directory
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: fix_systemd_unit (log file is located at /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/temp/log.do_patch.10164)
ERROR: Task (/home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_1.3.0.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2935 tasks of which 2934 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_1.3.0.bb:do_patch

Comment from tpm2-tss team.....

@AndreasFuchsSIT
Member
AndreasFuchsSIT commented 10 minutes ago
Hi...
First, tpm2-tss v1.3.0 is quite old by now. I highly recommend going for the 2.1 release now.

Second, the build scripts you're using there are attempting to get to the resource manager which was split out and reimplemented into a second (independent) project.

So these are errors in the bitbake recepies of the distro you're attempting to build. Has nothing to do with this project here, sorry.

Try to get in touch with the author of the bitbake and also kindly ask them to move up to version 2.1 of tpm2-tss...

Thanks...

@AndreasFuchsTPM
Copy link

One more quick note:
This repo does not contain meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_1.3.0.bb as your log but only a https://github.com/jiazhang0/meta-secure-core/blob/master/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_2.0.0.bb which looks correct.

Are you sure you added the correct layer and config ?

@trmong
Copy link
Author

trmong commented Nov 21, 2018 via email

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

No branches or pull requests

2 participants