all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#35551: package gcc does not depend on binutils and glibc
@ 2019-05-03 22:57 Bruno Haible
  2019-05-03 23:27 ` Nicolas Goaziou
  0 siblings, 1 reply; 27+ messages in thread
From: Bruno Haible @ 2019-05-03 22:57 UTC (permalink / raw)
  To: 35551

Hi,

After installing the guix-1.0 installation image
(guix-system-vm-image-1.0.0.x86_64-linux) and running it with qemu,
I wanted to compile a hello-world program in C.

$ cat hello.c 
#include <stdio.h>
int main () {
  printf("Hello world\n");
  return 0;
}

$ guix install gcc
$ gcc hello.c
error trying to exec 'as': execvp: No such file or directory

Second try:
$ guix install binutils
$ gcc hello.c
/home/guest/.guix-profile/bin/ld: cannot find crt1.o: No such file or directory
/home/guest/.guix-profile/bin/ld: cannot find crt1.o: No such file or directory
collect2: error: ld returned 1 exit status

Third try:
$ guix install glibc
$ gcc hello.c
Now it succeeds!

I would have expected that 'guix install gcc' installs binutils and glibc
as well, because:
  * The use of gcc without binutils is limited: You can use "gcc -E" and "gcc -S"
    to preprocess or compile to .s files, but this is rarely what people need.
  * The use of gcc without glibc is limited: You can use "gcc -c" to compile
    to .o files. But without the ability to create a program or a shared library
    (which needs crti.o rather than crt1.o), the compiler is hardly useful.

Bruno

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2019-05-13 15:40 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-03 22:57 bug#35551: package gcc does not depend on binutils and glibc Bruno Haible
2019-05-03 23:27 ` Nicolas Goaziou
2019-05-04  0:20   ` Tobias Geerinckx-Rice
2019-05-04  1:34     ` Bruno Haible
2019-05-07 16:23       ` Tobias Geerinckx-Rice
2019-05-07 17:26         ` Bruno Haible
2019-05-07 16:04     ` Ludovic Courtès
2019-05-09 21:21       ` Ricardo Wurmus
2019-05-09 21:57         ` Bruno Haible
2019-05-10  6:18           ` Ricardo Wurmus
2019-05-10  8:07           ` Ludovic Courtès
2019-05-10  9:38             ` bug#35551: guix search Bruno Haible
2019-05-10 10:17               ` Ludovic Courtès
2019-05-10 10:22                 ` Bruno Haible
2019-05-10 15:17                   ` Ludovic Courtès
2019-05-10 14:21                 ` Bruno Haible
2019-05-10 21:15                   ` Ludovic Courtès
2019-05-10 22:04                     ` Mark H Weaver
2019-05-10 22:38                       ` Bruno Haible
2019-05-10 23:41                         ` Tobias Geerinckx-Rice
2019-05-11 18:38                           ` Mark H Weaver
2019-05-11 18:18                         ` Mark H Weaver
2019-05-13  7:57                           ` Ludovic Courtès
2019-05-13 15:39                           ` znavko
2019-05-10 15:43                 ` znavko
2019-05-10 21:22                   ` Bruno Haible
2019-05-10 10:18               ` Bruno Haible

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.