all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <znavko@tutanota.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: collect2: fatal error: cannot find 'ld'
Date: Sun, 10 Feb 2019 11:28:45 +0100 (CET)	[thread overview]
Message-ID: <LYLwvzs--3-1@tutanota.com> (raw)
In-Reply-To: <87wom9kp1q.fsf@elephly.net>

[-- Attachment #1: Type: text/plain, Size: 1424 bytes --]

Installation of gcc-toolchain did not help.

$ guix package -I |grep gcc
gcc-toolchain    8.2.0    out    /gnu/store/xwk99qi92pm3zqd95mvjx4mkdmg8plpk-gcc-toolchain-8.2.0

$ gcc c
c: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status

$ cat c
#include <sys/stat.h>
#include <stdio.h>

int main(void)
{
    struct stat stats;

    if (!stat("/", &stats))
    {
        printf("%u\n", stats.st_blksize);
    }
}



Feb 9, 2019, 2:35 PM by rekado@elephly.net <mailto:rekado@elephly.net>:

>
> znavko@tutanota.com <mailto:znavko@tutanota.com>>  writes:
>
>> Hi! I compile this >> https://stackoverflow.com/questions/6161823/dd-how-to-calculate-optimal-blocksize <https://stackoverflow.com/questions/6161823/dd-how-to-calculate-optimal-blocksize>>>  <>> https://stackoverflow.com/questions/6161823/dd-how-to-calculate-optimal-blocksize <https://stackoverflow.com/questions/6161823/dd-how-to-calculate-optimal-blocksize>>> >
>>
>> and get this:
>>
>> $ gcc c.c
>> collect2: fatal error: cannot find 'ld'
>> compilation terminated.
>>
>> $ whereis ld
>> ld:
>>
>> $ gcc --version
>> gcc (GCC) 8.2.0
>>
>> How to solve this?
>>
>
> I’m assuming that you installed the “gcc” package.  Don’t do that.
> Install “gcc-toolchain” instead.
>
>  guix package -r gcc -i gcc-toolchain
>
> -- 
> Ricardo
>


[-- Attachment #2: Type: text/html, Size: 3255 bytes --]

  parent reply	other threads:[~2019-02-10 10:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-09 12:38 collect2: fatal error: cannot find 'ld' znavko
2019-02-09 14:35 ` Ricardo Wurmus
2019-02-09 15:50   ` vikram sai balaji ulaganathan
2019-02-10 10:28   ` znavko [this message]
     [not found]   ` <<87wom9kp1q.fsf@elephly.net>
     [not found]     ` <LYLwvzs--3-1@tutanota.com-LYLwzou----1>
2019-02-10 10:45       ` znavko
2019-02-11 11:40   ` zimoun
2019-02-11 12:01     ` Ricardo Wurmus
2019-02-11 12:07       ` zimoun
2019-02-12 16:44       ` Ludovic Courtès
2019-02-12 22:23         ` Ricardo Wurmus
2019-02-22 15:51           ` zimoun
2019-02-22 15:55             ` Ricardo Wurmus
2019-03-11 15:53           ` Ludovic Courtès
2019-05-09 21:20             ` Ricardo Wurmus

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=LYLwvzs--3-1@tutanota.com \
    --to=znavko@tutanota.com \
    --cc=help-guix@gnu.org \
    --cc=rekado@elephly.net \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.