rust-lang / docs.rs

crates.io documentation generator
https://docs.rs
MIT License
979 stars 195 forks source link

[Android Doc Builds]: Fails to missing compiler #2463

Closed lexi-the-cute closed 5 months ago

lexi-the-cute commented 6 months ago

Crate name

catgirl-engine

Build failure link

https://docs.rs/crate/catgirl-engine/0.12.17/builds/1160654/aarch64-linux-android.txt

Additional details

Android docs fail to build due to missing compiler. This affects catgirl-engine, catgirl-engine-utils, catgirl-engine-server, catgirl-engine-client for aarch64-linux-android, armv7-linux-androideabi, i686-linux-android, and x86_64-linux-android

syphar commented 6 months ago

I don't know much a out this specific target platform.

We're using cross compilation to build most platforms, if the needed compiler has a ubuntu package, you can add it to our build environment.

With C/C++ dependencies a way often used is to use conditional compilation to not compile the dependency for docs, of course this only works if the public interface of your library doesn't depend on the C/C++ code.

lexi-the-cute commented 6 months ago

Thanks! It does need a C compiler to build the android builds. Specifically the Android NDK. I'll have to find out if there's an Ubuntu package for it. I'm not sure how to build it without the C Compiler as the C Compiler is automatically invoked for me

syphar commented 5 months ago

@lexi-the-cute any update here? Can we close this issue?

lexi-the-cute commented 5 months ago

yee

lexi-the-cute commented 5 months ago

i gave up on it for now, so ill close the issue

syphar commented 5 months ago

ok, I understand, feel free to ping us again if we can help