From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: rustc problem Date: Mon, 9 Jan 2017 20:21:16 +1000 Message-ID: <693d2788-3815-22c1-0446-aeb72644aac3@uq.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQX4v-0007FN-PG for help-guix@gnu.org; Mon, 09 Jan 2017 05:21:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQX4r-0006dL-Ml for help-guix@gnu.org; Mon, 09 Jan 2017 05:21:25 -0500 Received: from mailhub2.soe.uq.edu.au ([130.102.132.209]:33053 helo=newmailhub.uq.edu.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQX4r-0006cu-3S for help-guix@gnu.org; Mon, 09 Jan 2017 05:21:21 -0500 Received: from smtp2.soe.uq.edu.au (smtp2.soe.uq.edu.au [10.138.113.41]) by newmailhub.uq.edu.au (8.14.5/8.14.5) with ESMTP id v09ALIk3038509 for ; Mon, 9 Jan 2017 20:21:18 +1000 Received: from [192.168.1.105] (static.customers.nuskope.com.au [103.25.181.216] (may be forged)) (authenticated bits=0) by smtp2.soe.uq.edu.au (8.14.5/8.14.5) with ESMTP id v09ALHxZ028214 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 9 Jan 2017 20:21:18 +1000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix 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.