Created
September 19, 2014 04:38
-
-
Save daniel-trinh/53265734e208c2e9c3ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling hello_world v0.0.1 (file:///Users/danieltrinh/src/oss/rust_stuff/hello_world) | |
error: linking with `cc` failed: exit code: 1 | |
note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/Users/danieltrinh/src/oss/rust_stuff/hello_world/target/hello_world' '/Users/danieltrinh/src/oss/rust_stuff/hello_world/target/hello_world.o' '-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-nodefaultlibs' '-fno-lto' '-Wl,-dead_strip' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libnative-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libsync-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librustrt-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e7c5e5c.rlib' '-L' '/Users/danieltrinh/src/oss/rust_stuff/hello_world/target' '-L' '/Users/danieltrinh/src/oss/rust_stuff/hello_world/target/deps' '-L' '/Users/danieltrinh/src/oss/rust_stuff/hello_world/.rust' '-L' '/Users/danieltrinh/src/oss/rust_stuff/hello_world' '-lSystem' '-lpthread' '-lc' '-lm' '-lcompiler-rt' | |
note: ld: warning: directory not found for option '-L/Users/danieltrinh/src/oss/rust_stuff/hello_world/.rust' | |
Assertion failed: (_mode == modeFinalAddress), function finalAddress, file /SourceCache/ld64/ld64-123.2.1/src/ld/ld.hpp, line 573. | |
0 0x1078f071c __assert_rtn + 76 | |
1 0x10796901c ld::tool::OutputFile::addressOf(ld::Internal const&, ld::Fixup const*, ld::Atom const**) + 172 | |
2 0x10796ba25 ld::tool::OutputFile::applyFixUps(ld::Internal&, unsigned long long, ld::Atom const*, unsigned char*) + 3909 | |
3 0x107967f70 ld::tool::OutputFile::writeOutputFile(ld::Internal&) + 816 | |
4 0x107960ab9 ld::tool::OutputFile::write(ld::Internal&) + 153 | |
5 0x1078f0caa main + 1178 | |
6 0x1078df2b4 start + 52 | |
collect2: ld returned 1 exit status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Managed to fix this by pointing gcc, cc, and clang to the latest clang version