ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
cr1901_ has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #rust-embedded
cr1901_ is now known as cr1901
emerent has quit [Ping timeout: 240 seconds]
emerent has joined #rust-embedded
<eldruin[m]> Hi everybody, is there a chinese-speaking person here that would be willing to review Jzow's translation?
xiretza[cis] has quit [Quit: Idle timeout reached: 172800s]
Guest7221 has joined #rust-embedded
Guest7221 has left #rust-embedded [Error from remote client]
hmw- has quit [Quit: Bye.]
hmw has joined #rust-embedded
ryan-summers[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has joined #rust-embedded
Guest7221 has joined #rust-embedded
lehmrob has joined #rust-embedded
Guest7221 has left #rust-embedded [Error from remote client]
Guest7221 has joined #rust-embedded
cyrozap has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
cyrozap has joined #rust-embedded
SeanLyons[m] has joined #rust-embedded
<SeanLyons[m]> I am trying to link a c static library into my rust program. Does anyone know if there is any requirements of the library for `rust-lld` to like it? I am quite sure that I have the right `-L` and `-l` options. I am calling rustc directly to strip out any potential issues with cargo or build.rs.... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/pjllTMzuJwluRVgDBhgRfSeo>)
<SeanLyons[m]> * I am trying to link a c static library into my rust program. Does anyone know if there is any requirements of the library for `rust-lld` to find it? I am quite sure that I have the right `-L` and `-l` options. I am calling rustc directly to strip out any potential issues with cargo or build.rs.... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/GUOdwNzXcUXFrTJVBRWyAbin>)
<SeanLyons[m]> * I am trying to link a c static library into my rust program. Does anyone know if there is any requirements of the library for `rust-lld` to find it? I am quite sure that I have the right `-L` and `-l` options. I am calling rustc directly to strip out any potential issues with cargo or build.rs.... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/GJqVUGGPRzeYtNSmzpLeLAyq>)
<diondokter[m]> SeanLyons[m]: > <@seanmlyons22:matrix.org> I am trying to link a c static library into my rust program. Does anyone know if there is any requirements of the library for `rust-lld` to find it? I am quite sure that I have the right `-L` and `-l` options. I am calling rustc directly to strip out any potential... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/FsUIykJiVRYqZEuIoixEELrM>)
<SeanLyons[m]> diondokter[m]: It's not right. This is just a static library of baremetal C code. Does the linker look at this? I have linked this same library into a C program before, but I assume it doesn't check?
<SeanLyons[m]> * at this field? I
<diondokter[m]> I don't know if it matters. But it's the only thing that stood out to me
<JamesMunns[m]> I've never tried it without cargo, but with a build rs, I usually do:... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/szOrCbkbVpkoNnbEsGDImoiK>)
<SeanLyons[m]> JamesMunns[m]: Yeah, I started with this in build.rs... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/HuWJbmtlpWBTeJdAAHmOBKlL>)
<JamesMunns[m]> is the file called libdriverlib.a?
<JamesMunns[m]> rustc-link-lib prefixes the string you give it with lib and suffixes it with .a
<SeanLyons[m]> Ah well that was it. 🤦‍♂️ Renamed the library to libdriverlib and its happy.
<diondokter[m]> Ah! Haha yeah, that tripped me up in the past as well
<SeanLyons[m]> SeanLyons[m]: It does feel like an easy footgun though. Even the error message that it spit out said this
<SeanLyons[m]> `-l "/Users/seanlyons/dev/rust/cc13x2-cc26x2-flash/lib/driverlib.a"`
<M9names[m]> FWIW you get a more details from readelf if you use `readelf -h -A`
<M9names[m]> it's probably only going to help you if you try to use a lib that uses more instructions than your variant of the ISA but it's kinda nice
s7rul[m] has joined #rust-embedded
<s7rul[m]> <SeanLyons[m]> "It's not right. This is just a..." <- UNIX - System V is the OS/ABI is what cargo generates for emeded code targeting ARM so is probobly right.
<M9names[m]> yeah it's fine
<SeanLyons[m]> Huh TIL, I took a look and plenty of other C static libraries I have been using and other rust libraries had UNIX - System V is the OS/ABI as well.
<JamesMunns[m]> SeanLyons[m]: > <@seanmlyons22:matrix.org> It does feel like an easy footgun though. Even the error message that it spit out said this... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/XxmyuTcZpeKUOzexvKJybGLH>)
<JamesMunns[m]> like, iirc ld and lld both act weird af about this in automatic prefixing and stuff
<SeanLyons[m]> <JamesMunns[m]> "> <@seanmlyons22:matrix.org..." <- You're right: https://releases.llvm.org/2.5/docs/CommandGuide/html/llvm-ld.html
<SeanLyons[m]> "If that fails, it looks for liblibrary.bc, liblibrary.a, or liblibrary.shared library extension, "
<SeanLyons[m]> Thanks for saving me some time, wouldn't have figured that one out. Now to figure out how to disable that behavior.
Guest7221 has left #rust-embedded [Error from remote client]
Guest7221 has joined #rust-embedded
cyrozap has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
cyrozap has joined #rust-embedded
cyrozap has quit [Remote host closed the connection]
cyrozap has joined #rust-embedded
<dalepsmith[m]> The lib{name}.a convention goes back centuries.. Well, decades at lest.
<dalepsmith[m]> .5 centuries
lehmrob has quit [Ping timeout: 244 seconds]
PeterHansen[m] has quit [Quit: Idle timeout reached: 172800s]
cyrozap has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
cyrozap has joined #rust-embedded
davidtwco[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has quit [Quit: Leaving.]
IlPalazzo-ojiisa has joined #rust-embedded
cyrozap has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
mburton[m] has quit [Quit: Idle timeout reached: 172800s]
<thejpster[m]> Can I get a final thumbs up on https://github.com/rust-embedded-community/embedded-sdmmc-rs/pull/95 please?
<thejpster[m]> If I get it merged I might stop fiddling with it.
ryan-summers[m] has joined #rust-embedded
<ryan-summers[m]> I'm looking over it now :)
<thejpster[m]> oh, no, I found another bug
<ryan-summers[m]> Honestly, PR is pretty large. I'm a fan of moving fast and breaking things. If you're not releasing it to crates.io, it's always fine for master to have defects IMO
<ryan-summers[m]> s/master/main/
<thejpster[m]> I get that, but people keep being sad at me that their SD card is corrupted
<ryan-summers[m]> If they're using main, that's their own fault
<thejpster[m]> 75 is fixed
sirhcel[m] has quit [Quit: Idle timeout reached: 172800s]
<thejpster[m]> fair. I'll push for reviews before I get quite so far next time.
<ryan-summers[m]> And honestly one of the reasons I've been slow to review is because the PR is huge
cyrozap has joined #rust-embedded
<ryan-summers[m]> Kept looking and dreading :) \but now it's friday
<thejpster[m]> it's not so bad commit by commit
<thejpster[m]> ryan-summers[m]: which meant I kept making it bigger :rofl:
<thejpster[m]> sorry about that
<ryan-summers[m]> It's no biggie tbh, just gotta find the bock
GenTooMan has quit [Ping timeout: 258 seconds]
GenTooMan has joined #rust-embedded
cyrozap has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
cyrozap has joined #rust-embedded
fuse117[m] has quit [Quit: Idle timeout reached: 172800s]
HumanGeek has quit [Ping timeout: 246 seconds]
HumanGeek has joined #rust-embedded
Guest7221 has left #rust-embedded [Error from remote client]
xnor has quit [Remote host closed the connection]
xnor has joined #rust-embedded
Guest7221 has joined #rust-embedded
brazuca has joined #rust-embedded
GrantM11235[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has quit [Quit: Leaving.]
crabbedhaloablut has quit []
jsolano_ has quit [Quit: leaving]
jsolano has joined #rust-embedded