When compiling meta-intel targets with TCLIBC = "musl" in build/local.conf, This compile error occurs: | src/rmcl/rmcl.c: In function 'query_policy_from_db': | src/rmcl/rmcl.c:254:25: error: unknown type name 'ssize_t' | ssize_t cmd_name_len = strlen((char *)&rmc_db[policy_idx]) + 1; | ^~~~~~~~ Based on the review of the first patch in rmc recipe, a suggestion from Khem Raj indicates that the proper way to address this issue could be a change in Makefile that could not respect compiler options passed by bitbake very well. I think this suggestion makes sense. But a patch in upstream rmc project would take a longer time to go through the procedure, so let's track this bug in BZ.
The patch "fix include path and type definitions" in rmc has been submitted to mailing list. I could need an ack from Alejandro Hernandez who reported this error to confirm this issue is fixed at his side. My test results shows the issue is fixed. But before we can move forward, we need to update rmc recipe in meta-intel to get this fix from upstream project. This action could be postponed until we update recipe with other changes as a batch.
A proper fix in the upstream rmc project, and a submitted following patch series to update rmc integration in meta-intel covers this fix.
Fixed with http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?id=58e5069ee34edd585ca11dfa387bd122d45995aa which upgrades rmc with the fixes in the upstream project.