<?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>14810</bug_id>
          
          <creation_ts>2022-05-20 19:11:06 +0000</creation_ts>
          <short_desc>cargo-cross-canadian fails to find secondary dependencies</short_desc>
          <delta_ts>2022-09-19 05:57:14 +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>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nischala Yelchuri">Nischala.Yelchuri</reporter>
          <assigned_to name="Sundeep KOKKONDA">sundeep.kokkonda</assigned_to>
          <cc>alejandro</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yashinde145</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>93296</commentid>
    <comment_count>0</comment_count>
    <who name="Nischala Yelchuri">Nischala.Yelchuri</who>
    <bug_when>2022-05-20 19:11:06 +0000</bug_when>
    <thetext>When trying to build cargo-cross-canadian, do_compile fails if a dependency is added to one of its dependencies.

For example, adding the following to the curl recipe:

+DEPENDS += &quot;libssh2&quot;
+EXTRA_OECONF:append = &quot; --with-libssh2&quot;

causes the build for bitbake cargo-cross-canadian-aarch64 to fail.

|   cargo:warning=In file included from libgit2/src/common.h:103,
|   cargo:warning=                 from libgit2/src/transports/winhttp.c:8:
|   cargo:warning=libgit2/src/thread.h: In function &apos;git_atomic__swap&apos;:
|   cargo:warning=libgit2/src/thread.h:184:9: warning: argument 3 of &apos;__atomic_exchange&apos; discards &apos;volatile&apos; qualifier [-Wincompatible-pointer-types]
|   cargo:warning=  184 |         __atomic_exchange(ptr, &amp;newval, &amp;foundval, __ATOMIC_SEQ_CST);
|   cargo:warning=      |         ^~~~~~~~~~~~~~~~~
|   cargo:warning=libgit2/src/transports/ssh.c: At top level:
|   cargo:warning=libgit2/src/transports/ssh.c:11:10: fatal error: libssh2.h: No such file or directory
|   cargo:warning=   11 | #include &lt;libssh2.h&gt;
|   cargo:warning=      |          ^~~~~~~~~~~
|   cargo:warning=compilation terminated.


cargo-cross-canadian is failing to find libssh2.h. 

Manually adding nativesdk-libssh2 to cargo-cross-canadian DEPENDS fixes the issue. Is this the expected outcome or should libssh2 dependency be automatically included since it is a dependency for curl?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93325</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-05-26 12:56:58 +0000</bug_when>
    <thetext>cargo shouldn&apos;t be auto-detecting dependencies like this but should only be building the things it is configured with. We should probably have some explicit configuration in the cargo recipe?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94029</commentid>
    <comment_count>2</comment_count>
    <who name="Yash Shinde">yashinde145</who>
    <bug_when>2022-09-13 16:50:49 +0000</bug_when>
    <thetext>With latest sources pulled in and trying to build &apos;cargo-cross-canadian-aarch64&apos; with the given specifications in the description for curl recipe, the given variant is not found-


 ERROR: Nothing PROVIDES &apos;cargo-cross-canadian-aarch64&apos;. Close matches: 
  gcc-cross-canadian-aarch64
  gdb-cross-canadian-aarch64
  go-cross-canadian-aarch64


git log shows the cargo-cross-canadian support was dropped and SDK env moved to rust-cross-canadian with commit 251f55374d26b5c24d8833aa87c95432be8b81b2 (cargo: Drop cross-canadian variant and fix/use nativesdk).

And, bitbake build with &apos;rust-cross-canadian-aarch64&apos; command is done successfully. So, this issue is not reproducible with latest sources pulled with rust-cross-canadian-aarch64 command.

Can this issue be closed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94033</commentid>
    <comment_count>3</comment_count>
    <who name="Yash Shinde">yashinde145</who>
    <bug_when>2022-09-19 05:45:54 +0000</bug_when>
    <thetext>Issue closed as it cannot be reproduced with latest sources</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94034</commentid>
    <comment_count>4</comment_count>
    <who name="Yash Shinde">yashinde145</who>
    <bug_when>2022-09-19 05:57:14 +0000</bug_when>
    <thetext>Issue closed as it cannot be reproduced with latest sources.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>