All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hemraj, Deepthi" <Deepthi.Hemraj@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH V3] rust-cross-canadian: Fix file conflicts for arm and aarch64
Date: Mon, 29 Apr 2024 00:43:35 -0700	[thread overview]
Message-ID: <24153.1714376615480679773@lists.openembedded.org> (raw)
In-Reply-To: <PH7PR11MB6449E0F570031C6CFD50D6A48D4A2@PH7PR11MB6449.namprd11.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]

Hi Randy,

I copied the Rust compiler binaries generated for both armv7at2hf-neon-pokymllib32-linux-gnueabi and cortexa57-poky-linux into a QEMU environment and executed a simple "Hello, World!" program using these binaries. Below are the steps I followed:

/ala-lpggp31/dhemraj/master/15061/poky/build/tmp/work/armv7at2hf-neon-pokymllib32-linux-gnueabi/lib32-rust/1.74.1/image/usr/bin > scp -r rustc root@192.168.7.6:/arm32/
rustc                                        100%   13KB   2.2MB/s   00:00

root@qemuarm64:/arm32# cat hello.rs
fn main() {
println!("Hello, World!");
}

root@qemuarm64:/arm32# ./rustc hello.rs
root@qemuarm64:/arm32# ./hello
Hello, World!

------------------------------------------------------------------------------------------------------------------------
/ala-lpggp31/dhemraj/master/15061/poky/build/tmp/work/cortexa57-poky-linux/rust/1.74.1/rustc-1.74.1-src/build/aarch64-poky-linux-gnu/stage2/bin > scp  rustc root@192.168.7.6:/arm64
rustc                                                                                       100%   74KB   4.6MB/s   00:00

root@qemuarm64:/arm64# ls
rustc
root@qemuarm64:/arm64# vi hello.rs
root@qemuarm64:/arm64# cat hello.rs
fn main() {
println!("Hello, World!");
}
root@qemuarm64:/arm64# ./rustc hello.rs
root@qemuarm64:/arm64# ./hello
Hello, World!

[-- Attachment #2: Type: text/html, Size: 1862 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: "Hemraj, Deepthi" <Deepthi.Hemraj@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH V3] rust-cross-canadian: Fix file conflicts for arm and aarch64
Date: Mon, 29 Apr 2024 03:49:58 -0700	[thread overview]
Message-ID: <24153.1714376615480679773@lists.openembedded.org> (raw)
Message-ID: <20240429104958.p5-Bxfct4KXEVTOWjC2JDhilopXUBtBmVS68MFFnj10@z> (raw)
In-Reply-To: <PH7PR11MB6449E0F570031C6CFD50D6A48D4A2@PH7PR11MB6449.namprd11.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

Hi Randy,

I copied the Rust compiler binaries generated for both armv7at2hf-neon-pokymllib32-linux-gnueabi and cortexa57-poky-linux into a QEMU environment and executed a simple "Hello, World!" program using these binaries. Below are the steps I followed:

...poky/build/tmp/work/armv7at2hf-neon-pokymllib32-linux-gnueabi/lib32-rust/1.74.1/image/usr/bin > scp -r rustc root@192.168.7.6:/arm32/
rustc                                        100%   13KB   2.2MB/s   00:00

root@qemuarm64:/arm32# cat hello.rs
fn main() {
println!("Hello, World!");
}

root@qemuarm64:/arm32# ./rustc hello.rs
root@qemuarm64:/arm32# ./hello
Hello, World!

------------------------------------------------------------------------------------------------------------------------
...poky/build/tmp/work/cortexa57-poky-linux/rust/1.74.1/rustc-1.74.1-src/build/aarch64-poky-linux-gnu/stage2/bin > scp  rustc root@192.168.7.6:/arm64
rustc                                                                                       100%   74KB   4.6MB/s   00:00

root@qemuarm64:/arm64# ls
rustc
root@qemuarm64:/arm64# vi hello.rs
root@qemuarm64:/arm64# cat hello.rs
fn main() {
println!("Hello, World!");
}
root@qemuarm64:/arm64# ./rustc hello.rs
root@qemuarm64:/arm64# ./hello
Hello, World!

[-- Attachment #2: Type: text/html, Size: 1794 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: "Hemraj, Deepthi" <Deepthi.Hemraj@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH V3] rust-cross-canadian: Fix file conflicts for arm and aarch64
Date: Mon, 29 Apr 2024 03:52:25 -0700	[thread overview]
Message-ID: <24153.1714376615480679773@lists.openembedded.org> (raw)
Message-ID: <20240429105225.iFEWksXtybpCPmMOvVsviSo0PMmXCv6ZtmtzMQyYEnY@z> (raw)
In-Reply-To: <PH7PR11MB6449E0F570031C6CFD50D6A48D4A2@PH7PR11MB6449.namprd11.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

Hi Randy,

I copied the Rust compiler binaries generated for both armv7at2hf-neon-pokymllib32-linux-gnueabi and cortexa57-poky-linux into a QEMU environment and executed a simple "Hello, World!" program using these binaries. Below are the steps I followed:

...poky/build/tmp/work/armv7at2hf-neon-pokymllib32-linux-gnueabi/lib32-rust/1.74.1/image/usr/bin > scp -r rustc root@192.168.7.6:/arm32/
rustc                                        100%   13KB   2.2MB/s   00:00

root@qemuarm64:/arm32# cat hello.rs
fn main() {
println!("Hello, World!");
}

root@qemuarm64:/arm32# ./rustc hello.rs
root@qemuarm64:/arm32# ./hello
Hello, World!

------------------------------------------------------------------------------------------------------------------------
...poky/build/tmp/work/cortexa57-poky-linux/rust/1.74.1/rustc-1.74.1-src/build/aarch64-poky-linux-gnu/stage2/bin > scp  rustc root@192.168.7.6:/arm64
rustc                                                                                       100%   74KB   4.6MB/s   00:00

root@qemuarm64:/arm64# ls
rustc
root@qemuarm64:/arm64# vi hello.rs
root@qemuarm64:/arm64# cat hello.rs
fn main() {
println!("Hello, World!");
}
root@qemuarm64:/arm64# ./rustc hello.rs
root@qemuarm64:/arm64# ./hello
Hello, World!

[-- Attachment #2: Type: text/html, Size: 1992 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: "Hemraj, Deepthi" <Deepthi.Hemraj@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH V3] rust-cross-canadian: Fix file conflicts for arm and aarch64
Date: Mon, 29 Apr 2024 04:04:04 -0700	[thread overview]
Message-ID: <24153.1714376615480679773@lists.openembedded.org> (raw)
Message-ID: <20240429110404.GAvP76kL7-7bMTWp0-qmIxjuCh0zpVD1IL3vo1WPCSw@z> (raw)
In-Reply-To: <PH7PR11MB6449E0F570031C6CFD50D6A48D4A2@PH7PR11MB6449.namprd11.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 1892 bytes --]

Hello Randy,

I verified rust.sh and cargo.sh in the installed sdk those are generated differently based on the multilib tuning.
...poky/build/tmp/deploy/sdk/install > fd rust.sh
sysroots/x86_64-pokysdk-linux/environment-setup.d/rust.sh
sysroots/x86_64-pokysdk-linux/environment-setup.d/lib32-rust.sh

...poky/build/tmp/deploy/sdk/install > fd cargo.sh
sysroots/x86_64-pokysdk-linux/environment-setup.d/cargo.sh
sysroots/x86_64-pokysdk-linux/environment-setup.d/lib32-cargo.sh

I tested a sample program on 32 and 64 bit targets and its working. Below are the steps:
I copied the Rust compiler binaries generated for both armv7at2hf-neon-pokymllib32-linux-gnueabi and cortexa57-poky-linux into a QEMU environment and executed a simple "Hello, World!" program using these binaries.

...poky/build/tmp/work/armv7at2hf-neon-pokymllib32-linux-gnueabi/lib32-rust/1.74.1/image/usr/bin > scp -r rustc root@192.168.7.6:/arm32/
rustc                                        100%   13KB   2.2MB/s   00:00

root@qemuarm64:/arm32# cat hello.rs
fn main() {
println!("Hello, World!");
}

root@qemuarm64:/arm32# ./rustc hello.rs
root@qemuarm64:/arm32# ./hello
Hello, World!

------------------------------------------------------------------------------------------------------------------------
...poky/build/tmp/work/cortexa57-poky-linux/rust/1.74.1/rustc-1.74.1-src/build/aarch64-poky-linux-gnu/stage2/bin > scp  rustc root@192.168.7.6:/arm64
rustc                                                                                       100%   74KB   4.6MB/s   00:00

root@qemuarm64:/arm64# ls
rustc
root@qemuarm64:/arm64# vi hello.rs
root@qemuarm64:/arm64# cat hello.rs
fn main() {
println!("Hello, World!");
}
root@qemuarm64:/arm64# ./rustc hello.rs
root@qemuarm64:/arm64# ./hello
Hello, World!

[-- Attachment #2: Type: text/html, Size: 2651 bytes --]

  reply	other threads:[~2024-04-29  7:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-16  8:56 [PATCH V3] rust-cross-canadian: Fix file conflicts for arm and aarch64 Deepthi.Hemraj
2023-12-22 14:40 ` [OE-core] " Ross Burton
2023-12-28  9:28   ` Hemraj, Deepthi
2024-01-12  5:41     ` Hemraj, Deepthi
2024-01-12  6:59       ` Hemraj, Deepthi
2024-02-02 20:16   ` [OE-core] " Randy MacLeod
2024-02-10  4:39     ` Hemraj, Deepthi
2024-04-29 10:51       ` Hemraj, Deepthi
2024-04-29  7:43       ` Hemraj, Deepthi [this message]
2024-04-29 11:04         ` Hemraj, Deepthi
2024-04-29 10:52         ` Hemraj, Deepthi
2024-04-29 10:49         ` Hemraj, Deepthi
2024-10-28 12:04       ` Hemraj, Deepthi
2024-10-28 14:00         ` [OE-core] " Richard Purdie
2024-10-28 14:00 ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24153.1714376615480679773@lists.openembedded.org \
    --to=deepthi.hemraj@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.