From: Ben Woodcroft <b.woodcroft@uq.edu.au>
To: help-guix <help-guix@gnu.org>
Subject: rustc problem
Date: Mon, 9 Jan 2017 20:21:16 +1000 [thread overview]
Message-ID: <693d2788-3815-22c1-0446-aeb72644aac3@uq.edu.au> (raw)
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.
next reply other threads:[~2017-01-09 10:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-09 10:21 Ben Woodcroft [this message]
2017-01-09 11:27 ` rustc problem David Craven
2017-01-09 11:42 ` Ben Woodcroft
2017-01-09 13:48 ` David Craven
2017-01-10 9:52 ` Ben Woodcroft
2017-01-09 14:20 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=693d2788-3815-22c1-0446-aeb72644aac3@uq.edu.au \
--to=b.woodcroft@uq.edu.au \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).