I don't understand rust's compilation model very well, but I am left confused as to how to compile the example program (hello) included with zero.rs using a recent 'incoming' commit (05735a934a807333f9cbeadd9ef4dc 431240bec2).
For some reason it seems like the object file is referencing pthreads et al: $ rust build hello.rs error: linking with `cc` failed with code 1 note: cc arguments: -L/home/fdr/rust/lib/rustc/x86_64-unknown-linux-gnu/lib -m64 -o hello hello.o -lrt -ldl -lm -lmorestack -lrustrt -Wl,-rpath,$ORIGIN/../../home/fdr/rust/lib/rustc/x86_64-unknown-linux-gnu/lib -Wl,-rpath,/home/fdr/rust/lib/rustc/x86_64-unknown-linux-gnu/lib note: /home/fdr/rust/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so: undefined reference to `sem_init' /home/fdr/rust/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so: undefined reference to `pthread_mutex_trylock' /home/fdr/rust/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so: undefined reference to `pthread_rwlock_trywrlock' etcetera etcetera error: aborting due to previous error Is that expected, or am I in error?
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
