From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oL91NMePsl4iUgAA0tVLHw (envelope-from ) for ; Wed, 06 May 2020 10:21:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id PmU/JNOPsl5BEQAAbx9fmQ (envelope-from ) for ; Wed, 06 May 2020 10:22:11 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B5EE3940EDF for ; Wed, 6 May 2020 10:22:08 +0000 (UTC) Received: from localhost ([::1]:33854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWHBp-000207-7Y for larch@yhetil.org; Wed, 06 May 2020 06:22:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWHBi-000200-Av for bug-guix@gnu.org; Wed, 06 May 2020 06:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55284) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWHBi-0008Ee-2K for bug-guix@gnu.org; Wed, 06 May 2020 06:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jWHBh-0008Re-Tg for bug-guix@gnu.org; Wed, 06 May 2020 06:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41091: can't build external gcc Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 06 May 2020 10:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41091 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41091@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158876048932423 (code B ref -1); Wed, 06 May 2020 10:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 May 2020 10:21:29 +0000 Received: from localhost ([127.0.0.1]:38597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWHBA-0008Qt-LK for submit@debbugs.gnu.org; Wed, 06 May 2020 06:21:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:39108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWHB8-0008Ql-Ak for submit@debbugs.gnu.org; Wed, 06 May 2020 06:21:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWHB8-0001xv-5o for bug-guix@gnu.org; Wed, 06 May 2020 06:21:26 -0400 Received: from mx1.riseup.net ([198.252.153.129]:57910) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWHB6-00060B-SB for bug-guix@gnu.org; Wed, 06 May 2020 06:21:25 -0400 Received: from bell.riseup.net (unknown [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 49HCLC3hk6zFck7 for ; Wed, 6 May 2020 03:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1588760483; bh=KSiBLzOAP0i4GayFJ3BtcquadnKU/sS6m6YGAvIEdoU=; h=Date:From:To:Subject:In-Reply-To:References:From; b=CFvHt3P1rRLaEdyeSpyIHKf+cUqaZ5ZNbVzSoTsmbLJYcbM1yv8pD2WPHsvpsDu2b gUucU/9A+YLNjkqukr+GgJvs4iVIqLCA4Ork1n2pAlwfqB2nUk/LzJ36Ry9BpktNV1 ylBap2XSnYuzgj4IH7LZoWrl1y86YXDZMmTM4sh0= X-Riseup-User-ID: 976086AD4554641065901557B5667E7BEC72CF9165D1D4F5EAB5CE251190FF1A Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 49HCLB6CTpzJqhB for ; Wed, 6 May 2020 03:21:22 -0700 (PDT) Date: Wed, 6 May 2020 12:21:20 +0200 From: raingloom Message-ID: <20200506122120.7a9d3bd6@riseup.net> In-Reply-To: <366751588641871@mail.yandex.ru> References: <366751588641871@mail.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/06 06:21:23 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.4 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 X-Spam-Score: 0.09 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=riseup.net header.s=squak header.b=CFvHt3P1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Scan-Result: default: False [0.09 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49632887240088]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.12), country: US(-0.00), ip: 2001:470:142::17(-0.50)]; TO_DN_NONE(0.00)[]; R_DKIM_REJECT(1.00)[riseup.net:s=squak]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; DKIM_TRACE(0.00)[riseup.net:-]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[raingloom@riseup.net,bug-guix-bounces@gnu.org]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; RCVD_COUNT_SEVEN(0.00)[11]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[riseup.net : SPF not aligned (relaxed),none] X-TUID: Y5eX5zdGeELP On Tue, 05 May 2020 04:35:31 +0300 Tim Komarov wrote: > Many projects (Buildroot, coreboot, Yocto) require building a > toolchain. >=20 > Every time it tries to build it (I've checked Buildroot and coreboot) > it fails with the following errors: >=20 > In file included from ./bconfig.h:3:0, > from ../../gcc/gengtype-lex.c:4: > ./auto-host.h:2396:16: error: declaration does not declare anything > [-fpermissive] #define rlim_t long > ^ > In file included from /d/gcc-8.4.0/gcc-8.4.0/gcc/gengtype-lex.l:30:0: > ../../gcc/system.h:488:14: error: conflicting declaration of C > function =E2=80=98void* sbrk(int)=E2=80=99 extern void *sbrk (int); >=20 > In file included from /d/gcc-8.4.0/gcc-8.4.0/gcc/gengtype-lex.l:30:0: > ../../gcc/system.h:496:14: error: ambiguating new declaration of > =E2=80=98char* strstr(const char*, const char*)=E2=80=99 extern char *str= str (const > char *, const char *); >=20 > In file included from /d/gcc-8.4.0/gcc-8.4.0/gcc/gengtype-lex.l:30:0: > ../../gcc/system.h:540:20: error: conflicting declaration of C > function =E2=80=98const char* strsignal(int)=E2=80=99 extern const char *= strsignal > (int); >=20 > In file included from ../../gcc/system.h:691:0, > from /d/gcc-8.4.0/gcc-8.4.0/gcc/gengtype-lex.l:30: > ../../gcc/../include/libiberty.h:112:14: error: ambiguating new > declaration of =E2=80=98char* basename(const char*)=E2=80=99 extern char = *basename > (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1); >=20 > Switching gcc versions doesn't help. >=20 > One can find a simple way to reproduce in buildroot.txt, > build-gcc.log provides a complete log. >=20 > Looking forward for your help. Thanks! >=20 > --=C2=A0 > Best Regards, > Timofey Komarov What I'm trying to do (currently with devkitPro and EDK2) is to just create a Guix package for the patched GCC toolchain and either use that directly (devkitPro) or convince the build scripts to use the packaged toolchain (EDK2). I'm not sure if it will work out, but in the long run, it seems like the better choice. That is, if it will work at all.