sunfishcode / mustang

Rust programs written entirely in Rust
Other
853 stars 24 forks source link

examples using threads don't compile on latest nightly #139

Closed HookedBehemoth closed 2 years ago

HookedBehemoth commented 2 years ago

I followed the usage guide https://github.com/sunfishcode/mustang#usage and trying the examples I get linking errors with rust-by-example-threads, test-tls and test-tls-dtors The error is always the same:

  = note: /usr/bin/ld: /home/behemoth/mustang/target/x86_64-mustang-linux-gnu/debug/deps/libstd-67f8932a3661c900.rlib(std-67f8932a3661c900.std.f896e289-cgu.11.rcgu.o): in function `std::sys::unix::thread::Thread::set_name':
          /home/behemoth/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/thread.rs:137: undefined reference to `pthread_setname_np'
          collect2: error: ld returned 1 exit status

This also happens trying to link one of my own program that uses threads.