<div dir="ltr"><div>#~ rustc <a href="http://hello.rs">hello.rs</a><br>error: linking with `cc` failed: exit code: 1<br>note: "cc" "-Wl,--as-needed" "-m64" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "hello.0.o" "-o" "hello" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_unicode-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-6a154fe0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-6a154fe0.rlib" "-l" "dl" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "compiler-rt"<br>note: /usr/bin/ld: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-6a154fe0.rlib(jemalloc.pic.o): unrecognized relocation (0x2a) in section `.text.malloc_conf_init'<br>/usr/bin/ld: final link failed: Bad value<br>collect2: error: ld returned 1 exit status<br><br>error: aborting due to previous error<br><br></div>and here is the code:<br><br>fn main() {<br>    println!("Hello World!");<br>}<br><br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-29 17:30 GMT+08:00 Sylvestre Ledru <span dir="ltr"><<a href="mailto:sylvestre@debian.org" target="_blank">sylvestre@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le 29/03/2016 à 11:23, wanglihe a écrit :<br>
> Package: rustc<br>
> Version: 1.7.0+dfsg1-1<br>
> Severity: important<br>
><br>
> Dear Maintainer,<br>
><br>
> I added testing repo and just   apt install rustc, so the gcc tool chain<br>
> remain at 4.9.2, and rustc can not compile any source code with error<br>
> about cc, after I update gcc, the problem resolved.<br>
</span>What is the error ?<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">S<br>
</font></span></blockquote></div><br></div>