<div dir="ltr"><div>I said I resolved this problem by update gcc tool chain. I send report not ask for "rustc should support gcc 4.9 and binutils ....", I mean you should add binutils versions into dep list to make it run correctly just after someone type "apt install rustc". The dep list you are using is making "installation not complete".<br></div><div><br></div><div>Please do that to make other people install rustc easier. I can run rustc perfect now and don't need any more help, so close the report if you want.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-30 11:19 GMT+08:00 Angus Lees <span dir="ltr"><<a href="mailto:gus@debian.org" target="_blank">gus@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, 30 Mar 2016 at 13:27 Lihe Wang <<a href="mailto:wanglihe.programmer@gmail.com" target="_blank">wanglihe.programmer@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>#~ rustc <a href="http://hello.rs" target="_blank">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</div></div></blockquote><div><br></div><div>It looks like this is a change in recent binutils (see discussion in Bug#808205) - which I _think_ means our static libraries (librust-std-dev) need to depend on binutils >= 2.25.90.20151209-1. I note in the glibc-dev case, however, the decision was "I therefore don't think we need to fix that at the glibc level. Either we just ignore the problem saying we don't support partial upgrades or we try to find a global way to fix the dependencies for all libraries."</div><div><br></div><div>Lihe: The short version for you is if you're trying to run a mixed stable/testing system(*), then you will also need to install binutils from testing.</div><div>(*) rather than rebuild rustc.deb from source for stable. If we had enough man-power, it would probably make sense for us to maintain a rustc.deb for stable-backports.<br></div><div><br></div><div> - Gus</div></div></div>
</blockquote></div><br></div>