From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruno Haible Subject: bug#35551: package gcc does not depend on binutils and glibc Date: Sat, 04 May 2019 00:57:26 +0200 Message-ID: <1666426.mZ6LCf6Yd0@omega> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:45819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMh7z-0008Ay-DA for bug-guix@gnu.org; Fri, 03 May 2019 18:58:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMh7y-0006Kw-Eu for bug-guix@gnu.org; Fri, 03 May 2019 18:58:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36322) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMh7y-0006IK-Av for bug-guix@gnu.org; Fri, 03 May 2019 18:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hMh7y-0007jl-2n for bug-guix@gnu.org; Fri, 03 May 2019 18:58:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:45751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMh7W-0008AW-3m for bug-guix@gnu.org; Fri, 03 May 2019 18:57:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMh7V-0005Yo-5A for bug-guix@gnu.org; Fri, 03 May 2019 18:57:34 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::2]:35944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hMh7U-0005Us-6B for bug-guix@gnu.org; Fri, 03 May 2019 18:57:33 -0400 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 35551@debbugs.gnu.org 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 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