Bug 12733 - meta-toolchain fails to build on baremetal
Summary: meta-toolchain fails to build on baremetal
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Alejandro Hernandez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-05-04 17:24 UTC by Alejandro Hernandez
Modified: 2018-05-08 13:15 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Hernandez 2018-05-04 17:24:11 UTC
When trying to build meta-toolchain and setting TCLIBC = "baremetal" bitbake complains due to a missing dependency:

ERROR: Nothing PROVIDES 'virtual/crypt' (but meta/recipes-devtools/perl/perl_5.24.1.bb DEPENDS on or otherwise requires it) 
glibc PROVIDES virtual/crypt but was skipped: REFERRED_PROVIDER_virtual/libc set to musl, not glibc 
musl PROVIDES virtual/crypt but was skipped: REFERRED_PROVIDER_virtual/i586-poky-elf-libc-for-gcc set to baremetal, not musl 
libxcrypt PROVIDES virtual/crypt but was skipped: Recipe only applies in nativesdk case for now

This is caused by the changes on commit: 29f65bda6d2c9fea4adb125c4857ee64f9312b9f
nativesdk-glibc: Split glibc and libcrypt to use libxcrypt instead

which is when libxcrypt and the concept of virtual/crypt was introduced.

I believe this is caused because its missing a wiring on tclibc-baremetal to specify if it PROVIDES virtual/crypt or where it should get it , but since libxcrypt is set to only apply for the nativesdk for now, and it is baremetal after all, I would assume what is needed is something like

ASSUME_PROVIDED += " virtual/crypt"

on tclibc-baremetal.inc
Comment 1 Alejandro Hernandez 2018-05-04 17:51:39 UTC
Adding:

ASSUME_PROVIDED += " virtual/crypt"

to tclibc-baremetal.inc

seems to solve the problem, meta-toolchain builds fine.