[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rustc problem
From: |
Ben Woodcroft |
Subject: |
rustc problem |
Date: |
Mon, 9 Jan 2017 20:21:16 +1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
Hi,
I thought I'd try out rust today, just because. So I fired up Guix's
rustc and tried to compile the example on https://www.rust-lang.org but
alas:
$ ./pre-inst-env guix environment -C --ad-hoc rustc
[env]# rustc a.rs
error: linking with
`/gnu/store/y1g6991kxvdk4vxhsq07r5saww30v8dq-gcc-4.9.4/bin/gcc` failed:
exit code: 1
|
= note:
"/gnu/store/y1g6991kxvdk4vxhsq07r5saww30v8dq-gcc-4.9.4/bin/gcc"
"-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib"
"a.0.o" "-o" "a" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib"
"-Wl,-Bstatic" "-Wl,-Bdynamic"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-f5a209a9.rlib"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-f5a209a9.rlib"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-f5a209a9.rlib"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-f5a209a9.rlib"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-f5a209a9.rlib"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_unicode-f5a209a9.rlib"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f5a209a9.rlib"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-f5a209a9.rlib"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-f5a209a9.rlib"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-f5a209a9.rlib"
"/gnu/store/cvvbiqz761ka2p3dhkc4ip94arlj710i-rustc-1.14.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-f5a209a9.rlib"
"-l" "dl" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m"
"-l" "rt" "-l" "util"
= note: collect2: fatal error: cannot find 'ld'
compilation terminated.
This can be worked around by the following, but this seems non-ideal.
$ ./pre-inst-env environment -C rustc --ad-hoc rustc
Any ideas? Apologies if this is a known issue.
Thanks, ben.
- rustc problem,
Ben Woodcroft <=