Bug 12733

Summary: meta-toolchain fails to build on baremetal
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alejandro Hernandez <alejandr>
Component: coreAssignee: Alejandro Hernandez <alejandr>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.