Page MenuHomePhabricator

Wrong compiler used for deployments targeting Linux
Closed, ResolvedPublic


The change d80f856adf59 introduced a bug which allows using non Linux GCC compilers for Linux builds. This results in compilation errors like:

In file included from /home/vagrant/src/trusted-services/components/rpc/ffarpc/caller/linux/ffarpc_caller.c:8:
/home/vagrant/src/trusted-services/deployments/ts-service-test/arm-linux/build/_deps/libts-build/_deps/linux_ffa_user_shim/arm_ffa_user.h:10: fatal error: linux/ioctl.h: No such file or directory

Event Timeline

gyuri-szing triaged this task as Normal priority.Mar 9 2021, 7:01 AM
gyuri-szing created this task.

This was introduced by change: d80f856adf59.
That change makes deployments targeting the "arm-linux" environment accept non Linux specific GCC binaries like "aarch64-none-elf-gcc". Since these GCC builds are not bundled with a standard library built with Linux support, compilation errors arise due to missing Linux kernel headers.

gyuri-szing closed this task as Resolved.Mar 16 2021, 12:16 PM
gyuri-szing moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Mar 16 2021, 12:20 PM