From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IN9mJlsSD2FDagAAgWs5BA (envelope-from ) for ; Sun, 08 Aug 2021 01:08:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0NXiIVsSD2EdOgAAB5/wlQ (envelope-from ) for ; Sat, 07 Aug 2021 23:08:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.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 D09DA63EE for ; Sun, 8 Aug 2021 01:08:10 +0200 (CEST) Received: from localhost ([::1]:56946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCVQH-0001X8-D1 for larch@yhetil.org; Sat, 07 Aug 2021 19:08:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCVQB-0001Wz-3Y for bug-guix@gnu.org; Sat, 07 Aug 2021 19:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCVQA-0003WP-Ku for bug-guix@gnu.org; Sat, 07 Aug 2021 19:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCVQA-0002sY-GL for bug-guix@gnu.org; Sat, 07 Aug 2021 19:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49935: gcc-4.8 fails to build with recent GCC versions Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 07 Aug 2021 23:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49935 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49935@debbugs.gnu.org X-Debbugs-Original-To: Bug Guix Received: via spool by submit@debbugs.gnu.org id=B.162837766911042 (code B ref -1); Sat, 07 Aug 2021 23:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Aug 2021 23:07:49 +0000 Received: from localhost ([127.0.0.1]:53307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCVPx-0002s1-Dm for submit@debbugs.gnu.org; Sat, 07 Aug 2021 19:07:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:44430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCVPw-0002rv-Fe for submit@debbugs.gnu.org; Sat, 07 Aug 2021 19:07:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCVPw-0001Tu-Ab for bug-guix@gnu.org; Sat, 07 Aug 2021 19:07:48 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:15360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCVPt-0003Fx-G9 for bug-guix@gnu.org; Sat, 07 Aug 2021 19:07:47 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id D8687109E for ; Sun, 8 Aug 2021 01:07:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20160331; t=1628377660; x=1630192061; bh=FOeG8KeXC3uLmIB6UEQ27IMspoGxhLcq+jyew3cD7SE=; b=FH5OXcFuMapY CjsiQK5IqJgLSfXMAMYPAXnKxnwoAuU+2SExJmWRRYO58iYyaudYb9e8SRazf8D0 vlHMNK1rKCgiZrcCLosHZqjdQZIlR7yyCYNkIE2+7c8nL9yKLOXwJP+16j1oqFVA r7Wd6XzywIzdT5Uw6tpvZZRk5/aefOiHZSNGHGhJktp/B/0mScOO294coKiGY/Df v1HHS697qzK2knId6O1iwig8e0RyuFRzbfVSIC9LMRaI+26DWFogaDgmI5wfrA4o Dmb4sSvfY7wo+Xz+622LbSYicuyVwTT/g/Ml0rMeJ2ue0xUrwgbBlnhvMQka6JI8 depmwJzLRWtO26axrl4f/y5X5xSb+C39Ju1sbSOy/znXlbpWiG6mCkP2tI62OL7T 3adWn+IzDkKxBQEej1AU7C8pq86cmbTHM/UUM2bOfHOzm8Yu0kMiqpqx0moAhuSL ZvbzaYyOP8L6ugjdbqlC6LO0qRi+0Sbt0ZnDhsTyYf9gRLllBS0YBNqXjh0ScBM7 RnqZ0tabLR5U7wHMEnEBagxxO41kOuC7HnTED0mh40TJTFfXNjqjLig/MX9SrCHb jnDvKZBzFRumsMyj0SIWKu/med3V6Ouue5uy3+aPgpIA1/prl3SSmizWPX5oOYOz /yyvNuZBBLH7jpAEMeIN3PG97XU8Le0= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bxiEmHG3N1lG for ; Sun, 8 Aug 2021 01:07:40 +0200 (CEST) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 178E9BBA for ; Sun, 8 Aug 2021 01:07:39 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx002.mykolab.com (Postfix) with ESMTPS id 81761493F for ; Sun, 8 Aug 2021 01:07:39 +0200 (CEST) Date: Sat, 07 Aug 2021 20:07:32 -0300 Message-ID: <3505131.mCAMElSiHm@popigai> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=95.128.36.41; envelope-from=bauermann@kolabnow.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, PDS_BTC_ID=0.197, PDS_BTC_MSGID=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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" Reply-to: Thiago Jung Bauermann From: Thiago Jung Bauermann via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628377691; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=FOeG8KeXC3uLmIB6UEQ27IMspoGxhLcq+jyew3cD7SE=; b=jwOk9iNIrbGAG3WwZ9NCQ1hmF6EkEKkSJzElaCc6dUvchYKyAA4K1cdE14Jbai9nVrwgmf 7DxgGYOYHKrKzDv6ZW7+7Fr7RlmBK9ScS8o9zdkc9wWDb9rtLgUVcd/BE9ZHb9WB6zRsRw Cq8eyMqNefG/1tHhzpaIEMS9VmmoCkDZs+Lg1REXrnqYYtE4Ugye8FM96OyYr/JsK8V8Ot biFw20EAnb48wuqd6HrhnUCRfgxPLe0De1GZG1rxq7P6zdj9wHSr4sGtSZzO91f/pQjY+Z 0nvQa+HmnJJOjIjVcV+ymlpWf6BuGEMkRcthZjp6q/CsDZ6Z5EJNC2XPdO67Kw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628377691; a=rsa-sha256; cv=none; b=ZLiYWLIO+/nnxeFRXF3+zBG9fT/9vPHE9Ll4iE4SbKYR6LTLJpciR5Jy31BiRzacQNn+QI ttHhPi6fwWb0s89+f6grl2UmlpQZi3PaFG0i39Opc9gu9uU2HLnbJS4R6ij84dYoXV4eNP p1rWi4K8P0ue5gezIF1HhPsoGomz+ZLYqMhcj15L1K9CIaoCvtNQ98Qnvj1GyJ6AA9X7F/ StRDnGnIEFqfB0BSB2o6wVJ+C+sqtjGR3w/Ho++PF1YaEvNjFZm9E2HNJynpLQ8tWxj7EU qauPRjGWLelFOkKLcmVyXnu07We44W3C7GPuChcE/WdXwVFZ1ihSLXLddwnrGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=FH5OXcFu; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=FH5OXcFu; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: D09DA63EE X-Spam-Score: -0.92 X-Migadu-Scanner: scn1.migadu.com X-TUID: QdgflUmh9Pen Hello, According to the CI results, gcc-4.8 hasn=E2=80=99t built successfuly in a = while: https://ci.guix.gnu.org/search?query=3Dgcc-4.8 I was able to fix the current build failure: =2D-8<---------------cut here---------------start------------->8--- In file included from ../../gcc-4.8.5/gcc/cp/except.c:1008:0: cfns.gperf: In function =E2=80=98const char* libc_name_p(const char*, unsig= ned int)=E2=80=99: cfns.gperf:101:1: error: =E2=80=98const char* libc_name_p(const char*, unsi= gned int)=E2=80=99 redeclared inline with =E2=80=98gnu_inline=E2=80=99 attr= ibute cfns.gperf:26:14: note: =E2=80=98const char* libc_name_p(const char*, unsig= ned int)=E2=80=99 previously declared here =2D-8<---------------cut here---------------end--------------->8--- by backporting a patch from GCC 4.9 (which I will send in the next email), but then I hit another failure: =2D-8<---------------cut here---------------start------------->8--- In file included from /tmp/guix-build-gcc-4.8.5.drv-0/build/powerpc64le-unk= nown-linux-gnu/libstdc++-v3/include/cstdlib:72:0, from ../../../../gcc-4.8.5/libstdc++-v3/libsupc++/del_op.c= c:38: /gnu/store/358n1m2c8fbn6nr1mib4racjh7wfqfmy-gcc-10.3.0/include/c++/stdlib.h= :38:12: error: =E2=80=98std::abort=E2=80=99 has not been declared using std::abort; ^ /gnu/store/358n1m2c8fbn6nr1mib4racjh7wfqfmy-gcc-10.3.0/include/c++/stdlib.h= :39:12: error: =E2=80=98std::atexit=E2=80=99 has not been declared using std::atexit; ^ /gnu/store/358n1m2c8fbn6nr1mib4racjh7wfqfmy-gcc-10.3.0/include/c++/stdlib.h= :40:12: error: =E2=80=98std::exit=E2=80=99 has not been declared using std::exit; ^ /gnu/store/358n1m2c8fbn6nr1mib4racjh7wfqfmy-gcc-10.3.0/include/c++/stdlib.h= :51:12: error: =E2=80=98std::div_t=E2=80=99 has not been declared using std::div_t; ^ /gnu/store/358n1m2c8fbn6nr1mib4racjh7wfqfmy-gcc-10.3.0/include/c++/stdlib.h= :52:12: error: =E2=80=98std::ldiv_t=E2=80=99 has not been declared using std::ldiv_t; ^ =E2=8B=AE =2D-8<---------------cut here---------------end--------------->8--- and so on, for several `std::` functions. Unlike the other old GCC build failures I=E2=80=99ve investigated recently, I couldn=E2=80=99t find anyone= else hitting this specific problem. So we would have to create our own patch to fix it. This message from Jakub Jelinek about a similar error in some unspecified package: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org= /message/Q2U4JFUB5RL7DU2XJZ4BDTRE4PVULOMG/ makes me think that there=E2=80=99s something in GCC 4.8=E2=80=99s libstdc+= + (probably in libsupc++) doing something wrong with which trips GCC 6 and later. However, I don=E2=80=99t think it=E2=80=99s worth making GCC 4.8 build agai= n. It=E2=80=99s not supported upstream anymore and if it=E2=80=99s needed in some bootstrap pat= h, it=E2=80=99s better to move it to =E2=80=98(gnu packages commencement)=E2= =80=99 instead. In that case, instead of fixing this build issue it=E2=80=99s likely better to just= build it with a GCC older than version 6. Is it needed for bootstrap though? The definition of =E2=80=98%bootstrap-gc= c=E2=80=99 suggests that it=E2=80=99s needed at least for armhf-linux but since aarch6= 4-linux, powerpc64le-linux and even i586-hurd use GCC 5.5, I suspect it would also work for armhf-linux as well. Therefore, my suggestion is to simply remove gcc-4.8. =2D-=20 Thanks, Thiago