#~ rustc hello.rs error: linking with `cc` failed: exit code: 1 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" 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' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status
error: aborting due to previous error and here is the code: fn main() { println!("Hello World!"); } 2016-03-29 17:30 GMT+08:00 Sylvestre Ledru <sylves...@debian.org>: > Le 29/03/2016 à 11:23, wanglihe a écrit : > > Package: rustc > > Version: 1.7.0+dfsg1-1 > > Severity: important > > > > Dear Maintainer, > > > > I added testing repo and just apt install rustc, so the gcc tool chain > > remain at 4.9.2, and rustc can not compile any source code with error > > about cc, after I update gcc, the problem resolved. > What is the error ? > > Thanks > S >