Skip to content

Instantly share code, notes, and snippets.

@goyox86
Created July 25, 2017 22:11
Show Gist options
  • Save goyox86/28df9362f2bb3fd6536926051bd391dc to your computer and use it in GitHub Desktop.
Save goyox86/28df9362f2bb3fd6536926051bd391dc to your computer and use it in GitHub Desktop.
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib" "/home/goyox86/Code/os/redox/hello_world/target/x86_64-unknown-redox/release/deps/hello_world-9fe964d976956541.0.o" "-o" "/home/goyox86/Code/os/redox/hello_world/target/x86_64-unknown-redox/release/deps/hello_world-9fe964d976956541" "/home/goyox86/Code/os/redox/hello_world/target/x86_64-unknown-redox/release/deps/hello_world-9fe964d976956541.crate.allocator.o" "-Wl,--gc-sections" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/goyox86/Code/os/redox/hello_world/target/x86_64-unknown-redox/release/deps" "-L" "/home/goyox86/Code/os/redox/hello_world/target/release/deps" "-L" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib" "-Wl,-Bstatic" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/libstd.rlib" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/liballoc_system-b7c5924297e4877f.rlib" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/librand-d7afbbbd9aaa47fd.rlib" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/liballoc-2465f3fdcff32f34.rlib" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/libpanic_abort-289eac445bc22349.rlib" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/libstd_unicode-01cde84cce8d866f.rlib" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/libunwind-576c2363d30ddee9.rlib" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/liblibc-1d08594cc657f037.rlib" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/libcore-88c27c3e6c1f7e64.rlib" "/home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/libcompiler_builtins-1dba3b451f94392b.rlib" "-Wl,-Bdynamic" "-l" "c" "-l" "m"
= note: /usr/bin/ld: /home/goyox86/Code/os/redox/hello_world/target/x86_64-unknown-redox/release/deps/hello_world-9fe964d976956541.0.o: relocation R_X86_64_32S against `.rodata.ref.2' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/libstd.rlib(std.0.o): relocation R_X86_64_32 against symbol `_ZN38_$LT$core..option..Option$LT$T$GT$$GT$6unwrap18_MSG_FILE_LINE_COL17h0286aed9e5c32ec9E' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/liballoc_system-b7c5924297e4877f.rlib(alloc_system-b7c5924297e4877f.0.o): relocation R_X86_64_32 against `.rodata.vtable.0' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/liballoc-2465f3fdcff32f34.rlib(alloc-2465f3fdcff32f34.0.o): relocation R_X86_64_32 against symbol `_ZN38_$LT$core..option..Option$LT$T$GT$$GT$6unwrap18_MSG_FILE_LINE_COL17h0286aed9e5c32ec9E' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/goyox86/.xargo/lib/rustlib/x86_64-unknown-redox/lib/libcore-88c27c3e6c1f7e64.rlib(core-88c27c3e6c1f7e64.0.o): relocation R_X86_64_32S against symbol `_ZN4core3fmt3num52_$LT$impl$u20$core..fmt..Debug$u20$for$u20$usize$GT$3fmt17h22db3db423b26180E' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment