gcc-toolchain 9.1.0 can't link even a tiny simple C program

  • Done
  • quality assurance status badge
Details
One participant
  • Danny Milosavljevic
Owner
unassigned
Submitted by
Danny Milosavljevic
Severity
normal

Debbugs page

Danny Milosavljevic wrote 6 years ago
(address . bug-guix@gnu.org)
20190726171604.0ecaf41e@scratchpost.org
Hi,

so I've got a new drive and installed Guix (from the iso from the homepage) on it.

Then I ran guix pull.

Then I installed gcc-toolchain and tried to compile the following program:

int main() {
return 42;
}

using

gcc a.c

but I get:

ld: cannot find crt1.o: No such file or directory
ld: cannot find crti.o: No such file or directory

I tried rebooting, to no avail.

It used to work.

FWIW, I restored my $HOME from backup, but I think the per-user profiles are in
/var/guix/profiles/per-user, and I didn't restore anything in /var.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl07GTQACgkQ5xo1VCww
uqUKhAf/R5NxYchA7MBhcfUT8rN6kvUrb5Cwq4IOHkKsL4xnboefeRiUahK8lwmR
CYN4CuIqiae5dF7nskDe2nRy7sxkc/RrXrtoC6jdrQZ/06BkXBEOt00QLsNFqXzh
rmb+hM0s9sC4VR5xLmtSfbiRXIvwUgRFDHttarbn9hha/7u7sBnC0u2hGvyNwD2/
5GO8+vA4zlDo33nsWRxt0LRbsbicAwVX3vLG1xRSnFMLC6Aj9VsQRVQBJZ+o7C22
uWQNCCFKeK0sM10ZGZMrlZco+/rbpAYuaFbzwBj03aiGalydDzKx7c7naQbLaOp6
g29heqFhNorj9S4k3D197dFVH6jJRg==
=yo7m
-----END PGP SIGNATURE-----


Danny Milosavljevic wrote 6 years ago
(address . 36816@debbugs.gnu.org)
20190726182501.4b7a9ad4@scratchpost.org
Hmm,

$ guix environment --ad-hoc gcc-toolchain

makes it work in there.

Maybe I forgot to actually reboot? brb...
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl07KV0ACgkQ5xo1VCww
uqVW0Af/a74jcRhdQcR1MYuhB3ZaaaaG3uxNUf8Fw0GJnZQ1oDucdWD7GhQY/Dbq
wwtbBNemKUYWXi+rc8GLoLjxr1ku9P469kdxtLXH7VITCY9QBFtMlTJ02xCY8cYH
/KvQQy1VEsB5lo3+mFpfDxGopBvw/1XQSIMKKtz0kezdnaA2yalPTnnaLojsHVSl
vx5qNs/aAblDi/0SOgpCe//sarpi73afWQCXO3AmV6fda/8RE0oDTNxKd/4l4ACR
Ax1kbIwZ+07NKXegyCXCs8UXz2iSx0wml0VsGTz+g3udGH72XCVrZfnyim8BehSg
ht4QJUHjjmVeV9ZjfJENgR6Lmqh76A==
=1m+E
-----END PGP SIGNATURE-----


Danny Milosavljevic wrote 6 years ago
(address . 36816-done@debbugs.gnu.org)
20190727152454.3d301895@scratchpost.org
Yep, works after reboot. Sorry for the noise.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl08UKYACgkQ5xo1VCww
uqXiMgf+MOjZKiD44I8t54fCX7NHheUkQ4tSgndXjCgLqv09aXqfrD81lilKBHxm
rPMjgDpVWMc/nWTD2OYZ08exqxdhvHYbzTBImluYCU5/ilWcHtDSJjkQdYnzlHik
XyYMLKeFeTuYDGs0AGxvm2zmEqgyMOOmfblheO4KaZ3BiO1OlOO57b+ia9LZKKqv
iUfN+zRMTLPmyZom5yIkRaOhKcnZ44JEIMPPHg66PlUGJ3gOECp/mKlPU4fxxleb
+06Hw0Ze0PWwzgXaIpAQXInPRian6uhbGAxq48ZpmgB8L4VoCIcNabjVpNfKxcqG
A5Hf0Q3Ah4xEfhUp5LvHwV7kQGqwkg==
=Gaec
-----END PGP SIGNATURE-----


Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 36816@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 36816
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help