Conversation with friend that knows rust:

M: How do you expect people to learn rust? It’s so freakin’ broken.

F: What do you mean “broken”? Why?

M: Half of the time I’m trying to even build the bloody thing I run into stupid issues.

F: Well, you must be doing something wrong, show me an example.

M: Here you go:

error: failed to run custom build command for `libfdt-sys v0.0.2`

Caused by:
  process didn't exit successfully: `/mnt/Optane/toolchain/fdtviz/target/debug/build/libfdt-sys-3031182c5b22e2c2/build-script-build` (exit status: 101)
[...]
  cargo:rerun-if-changed=libfdt/libfdt/libfdt.h

  --- stderr
  libfdt/libfdt/libfdt_env.h:10:10: fatal error: 'stdbool.h' file not found

  thread 'main' (3832) panicked at /home/elly/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libfdt-sys-0.0.2/build.rs:45:10:
  Unable to generate bindings: ClangDiagnostic("libfdt/libfdt/libfdt_env.h:10:10: fatal error: 'stdbool.h' file not found\n")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

 /mnt/Optane/toolchain/fdtviz  main  find /usr/lib/* -name 'stdbool.h'                                                                                                                                                                                                                                                 101 ✘ 
/usr/lib/clang/21/include/stdbool.h
/usr/lib/gcc/aarch64-linux-gnu/15/include/stdbool.h
/usr/lib/gcc/x86_64-redhat-linux/15/include/stdbool.h

F: What the fuck :neocat_floof_explode:

M: Yeah, you know what… I think I’m just gonna stick with C for now :akko_giggle:

0

If you have a fediverse account, you can quote this note from your own instance. Search https://donotsta.re/objects/3f2324f6-335f-4e21-945a-e420208b0f56 on your instance and quote it. (Note that quoting is not supported in Mastodon.)