GNU bug report logs - #29644
gcc-objc is unusable without its 'gcc' executable

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: iyzsong@HIDDEN (宋文武); dated Sun, 10 Dec 2017 14:27:03 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 29644 <at> debbugs.gnu.org:


Received: (at 29644) by debbugs.gnu.org; 10 Dec 2017 18:49:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 10 13:49:56 2017
Received: from localhost ([127.0.0.1]:55594 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eO6fk-00056r-41
	for submit <at> debbugs.gnu.org; Sun, 10 Dec 2017 13:49:56 -0500
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21148)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1eO6fi-00056h-9b
 for 29644 <at> debbugs.gnu.org; Sun, 10 Dec 2017 13:49:55 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1512931748; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
 l=899; bh=ZNfZ9HkM+kKwMfAR0DibbpsIMSE6XiR4gvB7kf2uWiM=;
 b=FQ2XTFV1EGzBQe8Ry6XbSHlVmV/jONe5qpTkN8eO2ybon1awLnzJszqI4TzBJItl
 +cPjia2YCjbry0iQHBqjd4nuiZg0njpUiafmhF5FbvbGnouiXIy9d3RpdDSSltnZqTV
 FBIWJS72bw2IOXfumOA38/Hf3DTmpcAZdfVIMpQk=
Received: from localhost (port-92-200-159-158.dynamic.qsc.de [92.200.159.158])
 by mx.zohomail.com with SMTPS id 1512931748769440.5509822527947;
 Sun, 10 Dec 2017 10:49:08 -0800 (PST)
References: <87k1xuhd63.fsf@HIDDEN>
User-agent: mu4e 0.9.18; emacs 25.3.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: =?utf-8?B?5a6L5paH5q2m?= <iyzsong@HIDDEN>
Subject: Re: gcc-objc is unusable without its 'gcc' executable
In-reply-to: <87k1xuhd63.fsf@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Sun, 10 Dec 2017 19:49:04 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Message-ID: <87shciwh9b.fsf@HIDDEN>
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 29644
Cc: 29644 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)


=E5=AE=8B=E6=96=87=E6=AD=A6 <iyzsong@HIDDEN> writes:

> Hello, unlike fortran program files which can be compiled using the
> command 'gfortran' (in addition to 'gcc'), there is no other command for
> Objective-C program files, and run 'gcc -c x.m' using the 'gcc' package
> will just complain "Objective-C compiler not installed on this system"
> due to it lacking objc support.
>
> I have to revert commit 82f145ef7a to get a objc enabled 'gcc' in the
> 'gcc-objc' package.

In May 2016 I first noticed this problem with GCC and investigated
solutions.

The fix here is to patch =E2=80=9Clang-spec.h=E2=80=9D, so that it does not=
 limit the
gcc executable to the configured set of languages.  This way we will be
able to use the same gcc executable with different languages.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






Information forwarded to bug-guix@HIDDEN:
bug#29644; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Dec 2017 14:26:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 10 09:26:49 2017
Received: from localhost ([127.0.0.1]:54627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eO2Z6-0005RO-S9
	for submit <at> debbugs.gnu.org; Sun, 10 Dec 2017 09:26:49 -0500
Received: from eggs.gnu.org ([208.118.235.92]:58586)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1eO2Z5-0005RD-Qp
 for submit <at> debbugs.gnu.org; Sun, 10 Dec 2017 09:26:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1eO2Yz-0006pI-Tq
 for submit <at> debbugs.gnu.org; Sun, 10 Dec 2017 09:26:42 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:48063)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <iyzsong@HIDDEN>)
 id 1eO2Yz-0006pC-R9
 for submit <at> debbugs.gnu.org; Sun, 10 Dec 2017 09:26:41 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49555)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1eO2Yy-0003W6-Se
 for bug-guix@HIDDEN; Sun, 10 Dec 2017 09:26:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <iyzsong@HIDDEN>) id 1eO2Yv-0006m2-PD
 for bug-guix@HIDDEN; Sun, 10 Dec 2017 09:26:40 -0500
Received: from rezeros.cc ([2001:19f0:7001:2f3e:5400:ff:fe84:e55d]:35514)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <iyzsong@HIDDEN>)
 id 1eO2Yv-0006kM-Ai
 for bug-guix@HIDDEN; Sun, 10 Dec 2017 09:26:37 -0500
Received: from localhost (221.33.74.218.broad.hz.zj.dynamic.163data.com.cn
 [218.74.33.221]) by rezeros.cc (OpenSMTPD) with ESMTPSA id 6d9976ec
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); 
 Sun, 10 Dec 2017 14:26:19 +0000 (UTC)
Received: from gift (localhost [127.0.0.1])
 by localhost (OpenSMTPD) with ESMTP id 0b47c7e1;
 Sun, 10 Dec 2017 14:26:28 +0000 (UTC)
From: iyzsong@HIDDEN (=?utf-8?B?5a6L5paH5q2m?=)
To: bug-guix@HIDDEN
Subject: gcc-objc is unusable without its 'gcc' executable
Date: Sun, 10 Dec 2017 22:26:28 +0800
Message-ID: <87k1xuhd63.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: Ricardo Wurmus <rekado@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Hello, unlike fortran program files which can be compiled using the
command 'gfortran' (in addition to 'gcc'), there is no other command for
Objective-C program files, and run 'gcc -c x.m' using the 'gcc' package
will just complain "Objective-C compiler not installed on this system"
due to it lacking objc support.

I have to revert commit 82f145ef7a to get a objc enabled 'gcc' in the
'gcc-objc' package.

IIUC, the purpose of that commit is to avoid file collisions between
'gfortran' and the 'gcc' package used in the 'gnu-build-system', which
will broke the compiler in some way.  So I think we really want to only
have one gcc package in an environment...

How about enable all languages (except 'brig' which I never heard of)
for the gcc-final and the 'gcc' (in gcc.scm) packages?  In this way, I
think 'gnu-build-system' and 'gcc-toolchain' will able to compile
Fortran, Objective-C, Go, etc. out of the box.




Acknowledgement sent to iyzsong@HIDDEN (宋文武):
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#29644; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.