foundriesio/meta-lmp

atf is using system headers

Closed this issue · 1 comments

When building with the atf recipe it will try to use the system headers instead of the OE sysroot
This is incorrectly resolved by installing the libssl-dev system package.

ERROR: Logfile of failure stored in: /opt/yocto/lmp/build-70/build-lmp/tmp-lmp/work/aarch64-lmp-linux/atf/2.2+gitAUTOINC+5d3ee0764b-r0/temp/log.do_compile.3056374
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 -C /opt/yocto/lmp/build-70/build-lmp/tmp-lmp/work/aarch64-lmp-linux/atf/2.2+gitAUTOINC+5d3ee0764b-r0/git CROSS_COMPILE=aarch64-lmp-linux- BUILD_BASE=/opt/yocto/lmp/build-70/build-lmp/tmp-lmp/work/aarch64-lmp-linux/atf/2.2+gitAUTOINC+5d3ee0764b-r0/build BUILD_PLAT=/opt/yocto/lmp/build-70/build-lmp/tmp-lmp/work/aarch64-lmp-linux/atf/2.2+gitAUTOINC+5d3ee0764b-r0/build/qemu PLAT=qemu DEBUG=0 BL33=/opt/yocto/lmp/build-70/build-lmp/deploy/images/qemuarm64/u-boot.bin SPD=opteed BL32=/opt/yocto/lmp/build-70/build-lmp/deploy/images/qemuarm64/optee/tee-header_v2.bin BL32_EXTRA1=/opt/yocto/lmp/build-70/build-lmp/deploy/images/qemuarm64/optee/tee-pager_v2.bin BL32_EXTRA2=/opt/yocto/lmp/build-70/build-lmp/deploy/images/qemuarm64/optee/tee-pageable_v2.bin ARM_TSP_RAM_LOCATION=tdram BL32_RAM_LOCATION=tdram all fip
| make: Entering directory '/opt/yocto/lmp/build-70/build-lmp/tmp-lmp/work/aarch64-lmp-linux/atf/2.2+gitAUTOINC+5d3ee0764b-r0/git'
| Including services/spd/opteed/opteed.mk
| Building qemu
|   HOSTCC  fiptool.c
|   HOSTCC  tbbr_config.c
| In file included from fiptool.h:16,
|                  from fiptool.c:19:
| make: *** [Makefile:1031: tools/fiptool/fiptool] Error 2
| make: Leaving directory '/opt/yocto/lmp/build-70/build-lmp/tmp-lmp/work/aarch64-lmp-linux/atf/2.2+gitAUTOINC+5d3ee0764b-r0/git'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/opt/yocto/lmp/build-70/build-lmp/tmp-lmp/work/aarch64-lmp-linux/atf/2.2+gitAUTOINC+5d3ee0764b-r0/temp/run.do_compile.3056374' failed with exit code 1:
| make: Entering directory '/opt/yocto/lmp/build-70/build-lmp/tmp-lmp/work/aarch64-lmp-linux/atf/2.2+gitAUTOINC+5d3ee0764b-r0/git'
| Including services/spd/opteed/opteed.mk
| Building qemu
|   HOSTCC  fiptool.c
|   HOSTCC  tbbr_config.c
| In file included from fiptool.h:16,
|                  from fiptool.c:19:
| fiptool_platform.h:19:11: fatal error: openssl/sha.h: No such file or directory
|    19 | # include <openssl/sha.h>
|       |           ^~~~~~~~~~~~~~~
| compilation terminated.
| make[1]: *** [Makefile:47: fiptool.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make: *** [Makefile:1031: tools/fiptool/fiptool] Error 2
| make: Leaving directory '/opt/yocto/lmp/build-70/build-lmp/tmp-lmp/work/aarch64-lmp-linux/atf/2.2+gitAUTOINC+5d3ee0764b-r0/git'
| WARNING: exit code 1 from a shell command.
|```

@btashton thanks for reporting the issue, I just pushed c485719 which should fix the problem you described (just ported from meta-arm, which we will start using in lmp-manifest/meta-lmp soon).

In case it is useful for you, we also have a slack channel that can be accessed via https://slack.foundries.io for other questions/issues.