<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12733</bug_id>
          
          <creation_ts>2018-05-04 17:24:11 +0000</creation_ts>
          <short_desc>meta-toolchain fails to build on baremetal</short_desc>
          <delta_ts>2018-05-08 13:15:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro Hernandez">alejandr</reporter>
          <assigned_to name="Alejandro Hernandez">alejandr</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80495</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro Hernandez">alejandr</who>
    <bug_when>2018-05-04 17:24:11 +0000</bug_when>
    <thetext>When trying to build meta-toolchain and setting TCLIBC = &quot;baremetal&quot; bitbake complains due to a missing dependency:

ERROR: Nothing PROVIDES &apos;virtual/crypt&apos; (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 += &quot; virtual/crypt&quot;

on tclibc-baremetal.inc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80496</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro Hernandez">alejandr</who>
    <bug_when>2018-05-04 17:51:39 +0000</bug_when>
    <thetext>Adding:

ASSUME_PROVIDED += &quot; virtual/crypt&quot;

to tclibc-baremetal.inc

seems to solve the problem, meta-toolchain builds fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80518</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro Hernandez">alejandr</who>
    <bug_when>2018-05-08 13:15:41 +0000</bug_when>
    <thetext>Fixed here:

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=27dca7d2e955370166042c05aef1524fe1fbc70b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>