Re: [yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-27 Thread Khem Raj
On Tue, Feb 27, 2024 at 6:04 PM Joel Winarske wrote: > > I sorted it out. I needed to export RUSTFLAGS like this: > > cargo_do_compile:prepend() { > export RUSTFLAGS="--emit=llvm-ir" > } Good, I wanted to ask if the .o files are proper ELF files or not inside the .a but I guess you have sort

Re: [yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-27 Thread Joel Winarske
I sorted it out. I needed to export RUSTFLAGS like this: cargo_do_compile:prepend() { export RUSTFLAGS="--emit=llvm-ir" } On Tue, Feb 27, 2024 at 11:01 AM Joel Winarske via lists.yoctoproject.org wrote: > The Rust recipe is located here: > > https://github.com/meta-flutter/meta-flutter/blo

Re: [yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-27 Thread Joel Winarske
The Rust recipe is located here: https://github.com/meta-flutter/meta-flutter/blob/jw/rive/recipes-devtools/rive/rive-taffy-ffi_0.3.0.bb On Tue, Feb 27, 2024 at 7:40 AM Joel Winarske via lists.yoctoproject.org wrote: > `ar x` returns nothing. > > $ ar t ./libtaffy_ffi.a > taffy_ffi-6a284b6b44182

Re: [yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-27 Thread Joel Winarske
`ar x` returns nothing. $ ar t ./libtaffy_ffi.a taffy_ffi-6a284b6b44182cb3.taffy_ffi.ab6ea036-cgu.0.rcgu.o taffy_ffi-6a284b6b44182cb3.4001iepzo748wc7r.rcgu.o taffy-7cbe31eff8600da4.taffy.328dd793-cgu.0.rcgu.o slotmap-4965e51b30b65dec.slotmap.6af9b30d-cgu.0.rcgu.o std.std.ffc53cd6-cgu.0.rcgu.o std.

Re: [yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-24 Thread Khem Raj
try to run ar x on the .a file and see what objects it contains. On Fri, Feb 23, 2024 at 5:51 PM Joel Winarske wrote: > > Running readelf -h on the file does work and it shows that it is indeed the > correct machine architecture > > ELF Header: > Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00

Re: [yocto] [kirkstone] dwarfsrcfiles + rust staticlib

2024-02-23 Thread Joel Winarske
Running readelf -h on the file does work and it shows that it is indeed the correct machine architecture ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: