public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] rust: Fix cross compilation error for rust-testuite
@ 2022-09-04  7:08 pgowda.cve
  2022-09-04 21:41 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: pgowda.cve @ 2022-09-04  7:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: richard.purdie, Randy.MacLeod, vinay.m.engg, pgowda

From: pgowda <pgowda.cve@gmail.com>

Fixes the following error while building the rust-testuite
error: linker cc not found

Signed-off-by: pgowda <pgowda.cve@gmail.com>
---
 meta/recipes-devtools/rust/rust.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc
index 284347dedc..a3d93eca4a 100644
--- a/meta/recipes-devtools/rust/rust.inc
+++ b/meta/recipes-devtools/rust/rust.inc
@@ -116,6 +116,9 @@ python do_configure() {
     # Whether or not to optimize the compiler and standard library
     config.set("rust", "optimize", e(True))
 
+    # Override default linker cc.
+    config.set("rust", "default-linker", e(d.expand("${RUST_BUILD_CCLD}")))
+
     # [build]
     config.add_section("build")
     config.set("build", "submodules", e(False))
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] rust: Fix cross compilation error for rust-testuite
  2022-09-04  7:08 [PATCH] rust: Fix cross compilation error for rust-testuite pgowda.cve
@ 2022-09-04 21:41 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2022-09-04 21:41 UTC (permalink / raw)
  To: pgowda.cve, openembedded-core; +Cc: Randy.MacLeod, vinay.m.engg

On Sun, 2022-09-04 at 12:38 +0530, pgowda.cve@gmail.com wrote:
> From: pgowda <pgowda.cve@gmail.com>
> 
> Fixes the following error while building the rust-testuite
> error: linker cc not found
> 
> Signed-off-by: pgowda <pgowda.cve@gmail.com>
> ---
>  meta/recipes-devtools/rust/rust.inc | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc
> index 284347dedc..a3d93eca4a 100644
> --- a/meta/recipes-devtools/rust/rust.inc
> +++ b/meta/recipes-devtools/rust/rust.inc
> @@ -116,6 +116,9 @@ python do_configure() {
>      # Whether or not to optimize the compiler and standard library
>      config.set("rust", "optimize", e(True))
>  
> +    # Override default linker cc.
> +    config.set("rust", "default-linker", e(d.expand("${RUST_BUILD_CCLD}")))
> +
>      # [build]
>      config.add_section("build")
>      config.set("build", "submodules", e(False))

I suspect this is resulting in:

WARNING: rust-1.63.0-r0 do_package_qa: QA Issue: File /usr/lib/librustc_driver-f2e4e0d5a644441f.so in package rust contains reference to TMPDIR [buildpaths]

https://autobuilder.yoctoproject.org/typhoon/#/builders/52/builds/5731
https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/5809

and more. Certainly one of the patches is causing this :(

Cheers,

Richard


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-04 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-04  7:08 [PATCH] rust: Fix cross compilation error for rust-testuite pgowda.cve
2022-09-04 21:41 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox