From unknown Mon Aug 18 14:25:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#46253 <46253@debbugs.gnu.org> To: bug#46253 <46253@debbugs.gnu.org> Subject: Status: powerpc64le: gcc-final: "configure: error: cannot compute sizeof (long long)" Reply-To: bug#46253 <46253@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:25:52 +0000 retitle 46253 powerpc64le: gcc-final: "configure: error: cannot compute siz= eof (long long)" reassign 46253 guix submitter 46253 Chris Marusich severity 46253 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 02 04:07:45 2021 Received: (at submit) by debbugs.gnu.org; 2 Feb 2021 09:07:45 +0000 Received: from localhost ([127.0.0.1]:34061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6rey-0001vq-Oy for submit@debbugs.gnu.org; Tue, 02 Feb 2021 04:07:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:55296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6rew-0001vg-Cv for submit@debbugs.gnu.org; Tue, 02 Feb 2021 04:07:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6rev-0004U2-Fb for bug-guix@gnu.org; Tue, 02 Feb 2021 04:07:42 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:45340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6ren-0000SA-Jx for bug-guix@gnu.org; Tue, 02 Feb 2021 04:07:41 -0500 Received: by mail-pl1-x62e.google.com with SMTP id b8so12095640plh.12 for ; Tue, 02 Feb 2021 01:07:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=DWAvRPQxEH4DUpQN6/DnLvVShSdUSV64wgcRohzSUE0=; b=EfkExBEjk3iFT82I+7zbC77D8YcWQ3QisaBCzcQCXckQ4EjvWO90b1eIJyyfc7Bp+z 2RvPb43e62da0/wwPcaadeMTfMPE+2sobmJk3g3lpJKzJiI/DYwoAOvDrHWAmJrutFaA bNxIQTWMZDALIu4Elg6wW4UMLCluC4qd7tlerkXkuvAzGiLAvJ55/bgStSnw5xt3UCJa x3+82UNtAETJZz3E6v6Bs6annEdZ4vEQBzdJUkRSa+sgSoBPltSFctZAReir0YJXHoxg tcbQZdWNgUWbVeHgtqbAjRrb3hdYgG4vC+EhLb/5CqW/XF5aSVVNoyXF7bg7QHeeklzO DbUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=DWAvRPQxEH4DUpQN6/DnLvVShSdUSV64wgcRohzSUE0=; b=d5zu5KlgAGb5lu9nqaCfVHvsTZsSl/EK+VzrqFuxzDEqTSlQ2IVfTBrUnRUaPiLhcZ GpZPBbupmy0TOJUp5mx3WPPvlV0oAjUepcu2V6tdACisnDDsoLwbQb1BhgJmUg27T/cF oGCq3oBVkp3tgYNTqASUpJpscg4lGBgL3Z1AmJ1TyNFlpP0fVO55WA1Yc68Obla1flT8 DZXbtjYKTbbAJO7/5uqOttq3U6zVaCz/CPM9/TDjQQBPYvsZNv1ArvekpPshLOLf175A fyGiSMzYMz0DsIK4a9Vw2KFGMiDC7KZKHxdzZ3XAIM86jz2k58uZm8nDLqY/p5xDLLmw +LBQ== X-Gm-Message-State: AOAM532sR7tu69i2dlOfRg8lIGzBMt3GfnHCfK9tZgIIE3iF1NT8R5PC eWtHW7kL8bn0mzRCnNiJF4iJEwID6M8TaQ== X-Google-Smtp-Source: ABdhPJxBF2pwKPtXXbEkU23RynN5wn0o/VOynTJI83SC1IvSW3mAp4vciJBIGZaSBSV9X5hDVgXl7A== X-Received: by 2002:a17:90b:1088:: with SMTP id gj8mr3424239pjb.35.1612256849995; Tue, 02 Feb 2021 01:07:29 -0800 (PST) Received: from garuda-lan (c-24-18-44-142.hsd1.wa.comcast.net. [24.18.44.142]) by smtp.gmail.com with ESMTPSA id c19sm21156198pfc.122.2021.02.02.01.07.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 01:07:28 -0800 (PST) From: Chris Marusich To: bug-guix@gnu.org Subject: powerpc64le: gcc-final: "configure: error: cannot compute sizeof (long long)" X-Debbugs-CC: =?utf-8?Q?=22L=C3=A9o?= Le Bouter" , Efraim Flashner Date: Tue, 02 Feb 2021 01:07:24 -0800 Message-ID: <871rdyon1v.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=cmmarusich@gmail.com; helo=mail-pl1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, On powerpc64le-linux, using commit a1cdd9de3cffb5677fc1570d9a7992bf0cbd2f34 (which is on the wip-ppc64le branch), gcc-final fails to build with the following error: =2D-8<---------------cut here---------------start------------->8--- checking size of long long... configure: error: in `/tmp/guix-build-gcc-7.5= .0.drv-0/build/gcc': configure: error: cannot compute sizeof (long long) See `config.log' for more details. =2D-8<---------------cut here---------------end--------------->8--- The file /tmp/guix-build-gcc-7.5.0.drv-0/build/gcc/config.log contains a little more info. It says: =2D-8<---------------cut here---------------start------------->8--- configure:6087: checking size of long long configure:6092: g++ -std=3Dgnu++98 -o conftest -g -Wl,-rpath=3D/gnu/stor= e/mzdwhzgk63ys7ypadfxgk1v2nh83gvwi-glibc-2.31/lib -Wl,-dynamic-linker -Wl,/= gnu/store/mzdwhzgk63ys7ypadfxgk1v2nh83gvwi-glibc-2.31/lib/ld64.so.2 -L/gnu/= store/4ya8f2bqqvaa0lw06zqskby6x8djcac7-libstdc++-7.5.0/lib -L/gnu/store/1lw= sfgsv6ka9dljwczvjrp4rg7s150v5-zlib-1.2.11/lib -Wl,-rpath=3D/gnu/store/1lwsf= gsv6ka9dljwczvjrp4rg7s150v5-zlib-1.2.11/lib conftest.cpp >&5 powerpc64le-guix-linux-gnu-ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status configure:6092: $? =3D 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define SIZEOF_VOID_P 0 | #define SIZEOF_SHORT 0 | #define SIZEOF_INT 0 | #define SIZEOF_LONG 0 | #define HAVE_LONG_LONG 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | static long int longval () { return (long int) (sizeof (long long)); } | static unsigned long int ulongval () { return (long int) (sizeof (long lo= ng)); } | #include | #include | int | main () | { |=20 | FILE *f =3D fopen ("conftest.val", "w"); | if (! f) | return 1; | if (((long int) (sizeof (long long))) < 0) | { | long int i =3D longval (); | if (i !=3D ((long int) (sizeof (long long)))) | return 1; | fprintf (f, "%ld", i); | } | else | { | unsigned long int i =3D ulongval (); | if (i !=3D ((long int) (sizeof (long long)))) | return 1; | fprintf (f, "%lu", i); | } | /* Do not output a trailing newline, as this causes \r\n confusion | on some platforms. */ | return ferror (f) || fclose (f) !=3D 0; |=20 | ; | return 0; | } configure:6096: error: in `/tmp/guix-build-gcc-7.5.0.drv-0/build/gcc': configure:6100: error: cannot compute sizeof (long long) =2D-8<---------------cut here---------------end--------------->8--- Any ideas? Perhaps we need to configure gcc in a special way for powerpc64le-linux? =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmAZFkwACgkQ3UCaFdgi Rp3/cg//SvTEVImmrczUUP+0vBHN68GfWF6/k0LezvCj+y8FiSPEk+aWMDdQccyK SiXfKeDS/vtO94haegPFDMFmgoaTzFIdSPhCXfz3fFnkLYNH/TKn5CsnGZQvWhoE EOI4JNh6a+C4dHfGPly7mkns9AZdcc+XY8/CpAGdWo7dOyCW/u4hhEfgM1omwV4v yi55mXTC2DL+4RFXjvX9w7SMffRJpOxRM74wky/hGyh4f5A5J5Wz7OCwMQ7FJ8wa eECiGYTGVQpeNcT+USHt+2oR2lhONCjzVos5rNVARcfbsbrpWHvjuIvwMu3ZQ42t W7X45eTMZJe7AI0XcQPlBPJ2Mw3dkh9hOUobBAfjBaDud1uBXnR7HMEY1fQUBgma Ypy7KgXfWJs5wQkhmEqEXbGSZb6OtesbnIdZteWLjrzcKZu2bdmEkJVpXbHz6Mft 1vaF9HgqdwIVDCXSV8jYiY/nWLkOCFP/FYXc5vldETM0449ktGqa+lKoR7Wv83LR HJFN6J4YexX/qSkTFRfIX1J5SGznxu8MyvRNgVNcF+L+AZ8iay2ADnJX2vX/mJC1 fxI/HUv3D3FndCK0vAw38sEzmQFhoR7On+V4gdDwKsI5gKb1v1sawdD/LSiUDemL C606fBzEiWOj7q9Zm/UXMsQvAP+pgtv5D9kCFJ3Y9q/74D4Mhvo= =KA/2 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 04 03:27:06 2021 Received: (at 46253-close) by debbugs.gnu.org; 4 Feb 2021 08:27:06 +0000 Received: from localhost ([127.0.0.1]:39614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7Zyk-0002jV-6k for submit@debbugs.gnu.org; Thu, 04 Feb 2021 03:27:06 -0500 Received: from mail-pf1-f177.google.com ([209.85.210.177]:36278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7Zyi-0002iT-HJ for 46253-close@debbugs.gnu.org; Thu, 04 Feb 2021 03:27:04 -0500 Received: by mail-pf1-f177.google.com with SMTP id y142so1661636pfb.3 for <46253-close@debbugs.gnu.org>; Thu, 04 Feb 2021 00:27:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=kZyK+V6Q8eUUSD4qJjQI3OpzbRgCeUWc94iFpc5qI8A=; b=JWJU3Kxsc7wg8a4vlQf5aMS6GDC5mDrsrjvtK72lq+KN398prs1YKNIFMCYgYtYxpn S1dTxRM+QucFmMoi+dpnK3V8Izg3sPI7jwYkrueIijlmgQD3eaBHIrXL7XT3LKX4YJ3W ye1rZ17UPIZlp3qqYOmxvO9zCB8PqD9kov3ltat/03az8Pt2wu1nm0F4Vn6thyxCJn81 rLKOP0uHPAieaohheeFRkzMEpXs7NGHEU/dT7GD7LQFo5Vudq4/VxDs96s0fMJcdiJva s3MJq/CU5rBTNgbKTeLNoPtUO2FUxyzqWcKy35tFtXVrcXvuzPOjemkJVPP8HjvlqVvc wizw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=kZyK+V6Q8eUUSD4qJjQI3OpzbRgCeUWc94iFpc5qI8A=; b=gYWlUY685XfgJTwpR/PKCPyHbd5S6N3iPR2R0Z/SSOK00HLs6D2AVwlbQwxn6ma/pU 7QA9wMMVQ2KXXfpgOqCQ22aRlvXD1XvnVOf+KnFqhZHBbcTDRbzBA/VgdA4Y+FrqbAP1 wZv+EcUnZX7Aiv5rBQHXBn0yEJ9hV58TpJcyPv0MmBqAt9a0Mdaf14XYSEw5mnpN1uiG sed0uNzBwj2bSX+ACBl5UtOlQcAkkOE+SDcKaQoXrsvZx6+zvmxOwqnQygGBM4s/MpXc vxul8Cx5XknTBDZD92fA30g8WBhyYfT1izGWv51gZJJ+lFu9S8uL68Ls/lv/E+5d2MRl rZ0g== X-Gm-Message-State: AOAM531cTCX6fRNCTMqAWO1LMuDn6T7lySLrQO1QuIcw6w0s9+9pBpmW OW04is+D0t9cRLLEQghkjYOwUUE/rSwowQ== X-Google-Smtp-Source: ABdhPJy4Udarg7OocXYW08jP2SBrp0sA9NYFCtoy60Zq2XqoDtVVzG6zh6ejlich6iCVHoriv3NmLA== X-Received: by 2002:a63:4504:: with SMTP id s4mr7875462pga.284.1612427217370; Thu, 04 Feb 2021 00:26:57 -0800 (PST) Received: from garuda-lan (c-24-18-44-142.hsd1.wa.comcast.net. [24.18.44.142]) by smtp.gmail.com with ESMTPSA id j17sm4810145pfh.183.2021.02.04.00.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 00:26:55 -0800 (PST) From: Chris Marusich To: 46253-close@debbugs.gnu.org Subject: Re: bug#46253: powerpc64le: gcc-final: "configure: error: cannot compute sizeof (long long)" References: <871rdyon1v.fsf@gmail.com> Date: Thu, 04 Feb 2021 00:26:50 -0800 In-Reply-To: <871rdyon1v.fsf@gmail.com> (Chris Marusich's message of "Tue, 02 Feb 2021 01:07:24 -0800") Message-ID: <87sg6cme5x.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46253-close Cc: =?utf-8?Q?L=C3=A9o_Le_Bouter?= , Efraim Flashner X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, This is fixed in the following commit: https://git.savannah.gnu.org/cgit/guix.git/commit/?h=3Dwip-ppc64le&id=3Dffc= c950261c829e76f2faf6c8ea03d3fc56a20e1 The problem was in the config.log, but I didn't see it at first: "powerpc64le-guix-linux-gnu-ld: cannot find -lstdc++" L=C3=A9o mentioned that it was probably a linking problem, and when I check= ed his commits in his own Git repository, I found this, which solved the problem: https://gitlab.com/lle-bout/guix/-/commit/070e06e8be6090a7682288c24b5686f1b= 578c001 However, that commit would have changed the way we link gcc-final with libstdc++ on all architectures. I have made a similar change that accomplishes the same thing, but only for powerpc64le-linux (or other Guix system types beginning with "powerpc64"). On existing Guix system types, we will continue to link the same as before. Using commit ffcc950261c829e76f2faf6c8ea03d3fc56a20e1, I was successful in building gcc-final. I'm closing this bug report. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmAbr8oACgkQ3UCaFdgi Rp1s9Q/+LxmNiZm4nV4cyk/MwHPcmok1sJZt3XMSeN+onn206kv6oYAR18wz/e67 XkD6ykk2tP2e12XzdxLk3DwlYS+rvPIwMk0EEF0vaRYkQ1B9k0AAJcNAy1t1Anqb sOmd8JLFdbwVzNyQ3BYBxQbbDWev+sOeGqdnlr+ohpdy9sv9f4x7XaWPtP7NDvjg +nSA9kdoZBTS8DEg8g/kGnjIfQJfyBVZK1HcQtvMUvAOH9vEjNJWW3DcG8Lr8w/5 5N2+ZSlcOflEKNOupDOz8vz4HUM1sElQWnpz2mbDgPJhrpBVr4ygVJcfF//Vww/g Z0K6q6PTdsTimE/qgvmv+e7XF2W1ki2BN8h+/3GrEWXvuMnlZs2HNtw1B6MVRlQ8 ctfxNnTbYnrEvAVUastcUWsfmdk72wTiqiC5Y/94vMmEAXwnpoFpSGLeVo4BbXBg KlMAuhWxxWSaJRkBjDnjLlEL8ou+3G2V/HC1vXuJCJLVa56sBO71gE/n4ScwsdbX 96/ch8qENVcTv6S8TMncRPJpdqHHjMoDPg1MHq48MaSST7dWl93eLtONbml6+ZOR sjAnuTFPjq0CIOJrVCvEBM5RudUcfbgG3lsloC4k+kub6cFAToRU2Dtk2LPZl01m rzQZuBIaZzxngyClv8zmK2se5ovbg6lBbkG+22vMNHXIUsWvw6k= =slnN -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 06 19:53:48 2021 Received: (at 46253) by debbugs.gnu.org; 7 Feb 2021 00:53:48 +0000 Received: from localhost ([127.0.0.1]:46693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8YKi-0006v9-A3 for submit@debbugs.gnu.org; Sat, 06 Feb 2021 19:53:48 -0500 Received: from mail-pl1-f171.google.com ([209.85.214.171]:35714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8YKg-0006ut-Q4 for 46253@debbugs.gnu.org; Sat, 06 Feb 2021 19:53:47 -0500 Received: by mail-pl1-f171.google.com with SMTP id g3so5759455plp.2 for <46253@debbugs.gnu.org>; Sat, 06 Feb 2021 16:53:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=8YolHY9cgmsf9ct6ImJo6FpS6a+0ew2zILiTizyREcg=; b=MMUpibN1e5kMBZI8exNOm2Zvyq0vYuNufi4b4I9e6XXq8WoBD/slIotCFEbHX0RVth RmgbN6PuVBnyuQfWHdi8d+giGtKJJkV8+uYi32MQrDbNoEe39JzU6yoBYhgIjbs2PzSD pcd+9UuW5iuJS9aMOL16RhHn9a0pl128XWG7kD29lEiYHWajbJHQzrPrsuOPPIBktWmH OqrWLLP0eBRZitfYSlPcrNGDFQVY0CZr94vklPyuV2qacuRdDvKAAh0Sjt8CpROdFkZh iKRz8z4ozv4zVZLqKNUAMeqj01wg1bXB8rhH7rvkzTSHyeJUfuE0hBGks7wUxwGF+swa 58eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=8YolHY9cgmsf9ct6ImJo6FpS6a+0ew2zILiTizyREcg=; b=ucnoSmWMsiKISg89UO+7Z9SAP7sHrx9hiWll7+wYbkkGQbtwC/aRAdjn4fYp/6KeFt j7ifkjva30qDH1zMbTxjbZRC+mNzZ2gGurYtU0c1u27+C9xKO+TVuP1nDS+qzqkl/kXk NJLb1VpPAWXwxyKO3ghVUKy+NwIAm+xGhPVpu1lDEro3xNeuJnOMGj72732T92yNgiIu zm94swZcesJxnwlY1G0bRNCoaJL0FjsvebxUC6NLSKUOB031dGd+BEx9wEny3CVaoccA dKZ/6HKLfpGC5K7h3jfc5uLShXQGgD/YWJUr9B/fXo+gI+3C5ZAdPnBGQAACHj7IWF4l q3zw== X-Gm-Message-State: AOAM533ARKY/Z2TbsK8odAA/4b25bBvdYCkQu5QeWsEx96Kmjju7kvV1 cAYmX5bJrCPVKtgixlgRcz92aqLbjlPA7w== X-Google-Smtp-Source: ABdhPJziRx6rNpkSNZlaEhwOYA3YFPUvwdBcW25bMFIYLMJIlxWqr5IxOTtCNpbttvVZJskVD8hQDQ== X-Received: by 2002:a17:902:eccf:b029:de:72a2:f1f8 with SMTP id a15-20020a170902eccfb02900de72a2f1f8mr10633538plh.17.1612659220766; Sat, 06 Feb 2021 16:53:40 -0800 (PST) Received: from garuda-lan (c-24-18-44-142.hsd1.wa.comcast.net. [24.18.44.142]) by smtp.gmail.com with ESMTPSA id b21sm14513247pfb.45.2021.02.06.16.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Feb 2021 16:53:39 -0800 (PST) From: Chris Marusich To: 46253@debbugs.gnu.org Subject: Re: bug#46253: powerpc64le: gcc-final: "configure: error: cannot compute sizeof (long long)" References: <871rdyon1v.fsf@gmail.com> Date: Sat, 06 Feb 2021 16:53:38 -0800 In-Reply-To: <871rdyon1v.fsf@gmail.com> (Chris Marusich's message of "Tue, 02 Feb 2021 01:07:24 -0800") Message-ID: <87im74u299.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46253 Cc: =?utf-8?Q?L=C3=A9o_Le_Bouter?= , Efraim Flashner X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Chris Marusich writes: > configure:6100: error: cannot compute sizeof (long long) It was mentioned on IRC that a better way to fix this would be to configure libstdc++ to install to /lib instead of /lib64, since in Guix we install libraries to /lib by convention, even on 64-bit systems. See: https://logs.guix.gnu.org/guix/2021-02-06.log I looked into this a bit more after that. It turns out that we do something like that already, in the original gcc package definition, for existing architectures. However, L=C3=A9o pointed out that on the rs6000 architecture (i.e., powerpc), the gcc/config/rs6000 directory's build logic hard-codes some /lib64 references. I have added a phase that replaces those hard-coded references. I should also mention that I did try to use the --libdir configure flag to tell libstdc++ to install to /lib64, but it didn't work; libstdc++ just ignored the flag and still installed its libraries in /lib64. Replacing the hard-coded references fixed it, though. In addition, I discovered that the libstdc++ package does not actually re-use the package arguments from gcc. Therefore, it was necessary to add a similar phase in the make-libstdc++ procedure. Although it is possible that, to resolve this specific bug (gcc-final: "configure: error: cannot compute sizeof (long long)"), only the make-libstdc++ change is necessary, it seems prudent to go ahead and also make the change described above for gcc, to avoid future problems. I have pushed both changes to wip-ppc64le in commit db761a593992aea441055bda260461f4302a4667 on the wip-ppc64le branch. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmAfOhIACgkQ3UCaFdgi Rp1FJQ/7B00x9Fck3OnkKKVZw3q3jknlr89zkMwWtoYSPufpdd8/6Fk7ojxBj6tC Uj7+IWg1Z9Qo+xqbofuuljzJi/F7UBRG5xI9JB8VOOGm8MXvu5B58li+HkvJWBIA AyUTLFSEpslz23sitjU6SKCko0m9dfgUOhVrcNr8/891SGD0Q6TQAtu5NCFHZ085 tNwdq9/uJyAthm+04jOD4UCuk/QJBdNzq3734336SlM9gas4+zK95umSIvf7f3pU mG96X4ZmuVkgXn3XUigJr+YpK1RALzzCPQ3NOa8LH0heu6J7iKamD5CaOFo4y0ds kzdDmouTVT1xqdPHpZaVPd5cXu9oUVzfxxrUMACqUKRhn5TrOF4735E7OqtASzrz IepOUEFilz9EyRisstvxrbRPYKrMWOiqGwI0SIhvrBMQNToB5B7uc+obhgMyabZx 9jCWwfnsKvo356h+uOtbKuuBas4r5lahf2ZPAJlWyPHaQP+E5ajxEeYVMBv/PJRK KM/gVE1fOWoz2iYsJMG9FXvOPREQ4wAHepXKmLm4p1VqJbO0bdMixiC9o0lxSQBw KMeQIfi4dNY09ENHsK7/C2uoVVeDNB6ZT4JpBnGxj+rRlPhvhX8apHlFaA8/xQmk HbIei1kU3am2OQ98VcUJK6f9392UFoEt8CE9z2PBJa+F02uYOew= =ygeq -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 14:25:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 07 Mar 2021 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator