Skip to content

Compile error when building xtest with musl #722

@jonmason

Description

@jonmason

When compiling optee_test v4.1 (in yocto) with musl, I see the following error:
| In file included from optee-test/4.1.0/recipe-sysroot/usr/include/sys/stat.h:23,
| from optee-test/4.1.0/git/host/xtest/stats.c:17:
| optee-test/4.1.0/recipe-sysroot/usr/include/bits/stat.h:17:26: error: expected identifier or '(' before '[' token
| 17 | unsigned __unused[2];
| | ^

This is similar to commit 1013c49
And similar to that commit, I was able to remove the header file in question and it compiles without issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions