Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello World not working #187

Closed
tak1n opened this issue Sep 28, 2014 · 5 comments
Closed

Hello World not working #187

tak1n opened this issue Sep 28, 2014 · 5 comments

Comments

@tak1n
Copy link

tak1n commented Sep 28, 2014

Not sure what I'm making wrong, but for this example I'm getting following output

λ bennyklotz IronApp → λ git master* → cargo run
   Compiling IronApp v0.0.1 (file:///home/benny/Web/rust/learn/IronApp)
error: linking with `cc` failed: exit code: 1
note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-o' '/home/benny/Web/rust/learn/IronApp/target/IronApp' '/home/benny/Web/rust/learn/IronApp/target/IronApp.o' '-Wl,--whole-archive' '-lmorestack' '-Wl,--no-whole-archive' '-nodefaultlibs' '-fno-lto' '-Wl,--gc-sections' '-pie' '-Wl,--as-needed' '/home/benny/Web/rust/learn/IronApp/target/deps/libiron-94e197af3c7f7b9d.rlib' '/home/benny/Web/rust/learn/IronApp/target/deps/liberror-e5e02eafec1ab2f1.rlib' '/home/benny/Web/rust/learn/IronApp/target/deps/libtypeable-d0d1baca4b0d6107.rlib' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lnative-4e7c5e5c' '/home/benny/Web/rust/learn/IronApp/target/deps/libcontent_type-b3fc4f01bc3dcbfb.rlib' '/home/benny/Web/rust/learn/IronApp/target/deps/libphf-4fc01267f85abb4e.rlib' '/home/benny/Web/rust/learn/IronApp/target/deps/libplugin-f845a6ab531c9346.rlib' '/home/benny/Web/rust/learn/IronApp/target/deps/libphantom-da5bb593d3eb3a9e.rlib' '-L' '/home/benny/Web/rust/learn/IronApp/target/deps' '-lgenerator-e170cac01c08bdc6' '-L' '/home/benny/Web/rust/learn/IronApp/target/deps' '-lphf_mac-78b8694be35c3487' '/home/benny/Web/rust/learn/IronApp/target/deps/libtypemap-3fdac74be380d9e4.rlib' '/home/benny/Web/rust/learn/IronApp/target/deps/libunsafe-any-411b26d39a73c121.rlib' '/home/benny/Web/rust/learn/IronApp/target/deps/libreplace-map-d1de898a4eb569a5.rlib' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lrustc-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lflate-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-ltime-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lrustc_back-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lsyntax-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lterm-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-larena-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lfmt_macros-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lgraphviz-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lgetopts-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-ldebug-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lrbml-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lserialize-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lrustc_llvm-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-llog-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lregex-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lstd-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lsync-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lrustrt-4e7c5e5c' '-L' '/home/benny/Web/rust/learn/IronApp/target' '-L' '/home/benny/Web/rust/learn/IronApp/target/deps' '-L' '/home/benny/Web/rust/learn/IronApp/target/native/http-b27c1e7938f5a5d0' '-L' '/home/benny/Web/rust/learn/IronApp/.rust' '-L' '/home/benny/Web/rust/learn/IronApp' '-Wl,--whole-archive' '-Wl,-Bstatic' '-Wl,--no-whole-archive' '-Wl,-Bdynamic' '-lssl' '-lcrypto' '-lcrypto' '-lcrypto' '-lcrypto' '-lcrypto' '-lcrypto' '-lcrypto' '-lcrypto' '-lrt' '-lpthread' '-lrt' '-ldl' '-lm' '-ldl' '-lpthread' '-lgcc_s' '-lpthread' '-lc' '-lm' '-lcompiler-rt'
note: /home/benny/Web/rust/learn/IronApp/target/deps/libgenerator-e170cac01c08bdc6.so: undefined reference to `BN_is_zero'
collect2: error: ld returned 1 exit status

error: aborting due to previous error
Could not compile `IronApp`.

To learn more, run the command again with --verbose.
λ bennyklotz IronApp → λ git master* → 

Environment:

λ bennyklotz IronApp → λ git master* → rustc --version
rustc 0.12.0-nightly (94b0aace1 2014-09-27 23:12:54 +0000)
λ bennyklotz IronApp → λ git master* → cargo --version
cargo 0.0.1-pre-nightly (ee02b9a 2014-09-25 16:50:29 +0000)
λ bennyklotz IronApp → λ git master* → uname -a
Linux bennyklotz.dev 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
@reem
Copy link
Member

reem commented Sep 28, 2014

This issue is showing up on travis too, but I don't know what's going on or how to fix it, unfortunately.

I'll update this issue if I make any progress fixing this.

@tak1n
Copy link
Author

tak1n commented Sep 29, 2014

okay thx :)

@weejulius
Copy link

got the same issue

@Mutisk-zz
Copy link

I'm going out on a limb a bit here but it sounds like: rust-lang/rust#14344

@reem
Copy link
Member

reem commented Oct 9, 2014

Fixed!

@reem reem closed this as completed Oct 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants