I've found out the reason for the error:

error: could not find native static library `ggml`, perhaps an -L flag is missing?

Apparently, when cross-compiling, it can sometimes happen (especially with Windows target) that the compiler searches for "lib*" as prefix in the file name.

So when renaming compiled `ggml` to `libggml`, the error disappeared.

Unfortunately, I still get a linker error, but I don't bother anymore (direct Windows compile in CI works now)

#CrossCompilation #CrossCompiling

Colin Woodbury - Cross-compiling Common Lisp for Windows

#pkgconfig's rules about when it does or does not apply a sysroot base seem to be very inconsistent. I guess I'm going to have to look at the actual code to see why this may be. #crosscompiling #buildroot
🎩🔧 Ah, the dk coder: the revolutionary script runner for those who find "Hello, World!" too daunting, now with 100% more #READMEitis cure! 🤓🤦‍♂️ Experience the thrill of cross-compiling with OCaml—because nothing screams "user-friendly" like adding an extra layer of obfuscation for your poor, confused users. 📜💻
https://diskuv.com/dk/help/latest/ #dkcoder #OCaml #scripting #userfriendly #crosscompiling #HackerNews #ngated
Using Jujutsu (jj) to teach a course

Diskuv
🤦‍♂️ Imagine spending 4177 words to explain that "cross-compiling" lets you build software for a different machine than the one you're using. But hey, at least Miguel sneaks in that he draws Pokémon—finally, some relevant content! 🎨📱
https://mcyoung.xyz/2025/04/14/target-triples/ #crosscompiling #softwaredevelopment #pokemondrawing #techhumor #codinglife #HackerNews #ngated
What the Hell Is a Target Triple? · mcyoung

Seriously tempted to start writing yet another 3D renderer with #Zig and #Slang

#CrossCompiling

If there is anyone in the Fediverse who programs with #HollywoodMAL and uses my AppBuilder tool, it's time to press the "Check for updates" button because I have updated all the plugins to their latest versions and added the "Pangomonium" plugin released a few days ago by creator of HollywoodMAL.

➡️ HollywoodMAL : https://www.hollywood-mal.com/index.html

➡️ AppBuilder : https://allanon71.itch.io/appbuilder

#programming #buildtools #multiplatform #crosscompiling

Hollywood - Multimedia Application Layer

The cross-platform Multimedia Application Layer

I started nerd blogging. I would say "again" but even in my 25 years of occasional blogging, I've never written about coding or technology except for brief asides or single posts.

Anyway, today's post is about #rust and #crosscompiling for many targets and how to do it.

https://blog.selfassembled.org/cross-compiling-rust-go.html

I also wrote the static site generator for this blog (its the same one my oft-neglected cooking blog https://whatever.todds.cooking uses) and it's written (poorly) in Rust as well (it was my 1st Rust project)

Cross-compiling Rust

The blog that assembles itself

I wish #CrossCompiling some open source projects hadn't devolved to some combination of #QEMU and #Docker

It is so much faster to use a cross-build toolchain running on your host machine! Even if you run that in Docker!

Edit: I'm not owned, I'm not owned! https://users.rust-lang.org/t/cross-compilation-linux-x86-64-host-aarch64-target/105680/6

Cross compilation, Linux, x86_64 host, aarch64 target

@nerditation thank you! Cross compilation complete in under 3 minutes, plus only 3 hours of toolchain debugging. #7 158.1 Installed package `atuin v17.2.1` (executable `atuin`) #7 DONE 158.3s Dockerfile in case it helps any other poor schmucks: #sorry, haven't published the musl-cross-make built FROM image yet #https://github.com/rust-lang/rustup/issues/2213 RUN apk add curl libgcc musl-dev gcc RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --target aarch64-un...

The Rust Programming Language Forum