Can you post contents of your hello.rs file? Cheers, Fedor.
On Wed, May 29, 2013 at 1:40 AM, Daniel Farina <[email protected]> wrote: > On Tue, May 28, 2013 at 2:32 PM, Fedor Indutny <[email protected]> wrote: > > It seems that linker flag `-lphtread` is missing... Can you try building > it > > using following line: `rustc --link-args -lpthread`? > > That helps, but it now complains about missing references to the > dynamic linker. I threw in -ldl to make that work, too: > > $ rustc --link-args '-lpthread -ldl' hello.rs > $ ./hello > Hello world! > > However: > > $ ldd ./hello > linux-vdso.so.1 => (0x00007fffb5fce000) > librustrt.so => > /tmp/ > zero.rs/./../../home/fdr/rust/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so > (0x00007fd93be33000) > libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 > (0x00007fd93bbf3000) > libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd93b9ef000) > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd93b627000) > libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 > (0x00007fd93b323000) > libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd93b10d000) > /lib64/ld-linux-x86-64.so.2 (0x00007fd93c084000) > libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd93ae08000) > > Are some of these loaded objects at least in part defeating the point > of zero.rs? For example, if I try to start hello after removing the > runtime (librustrt.so), I get the predictable: > > ./hello: error while loading shared libraries: librustrt.so: cannot > open shared object file: No such file or directory >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
