From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 17 Nov 2022 18:51:25 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ovj2r-00AQdO-Rz for lore@lore.pengutronix.de; Thu, 17 Nov 2022 18:51:25 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ovj2r-0000eQ-1p; Thu, 17 Nov 2022 18:51:25 +0100 Received: from mout.kundenserver.de ([212.227.126.187]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovj2Y-0000bp-Dp for ptxdist@pengutronix.de; Thu, 17 Nov 2022 18:51:09 +0100 Received: from methusalix.internal.home.lespocky.de ([92.117.41.175]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mk0FM-1pOR1q38J6-00kPj2; Thu, 17 Nov 2022 18:51:02 +0100 Received: from falbala.internal.home.lespocky.de ([192.168.243.94]) by methusalix.internal.home.lespocky.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ovj2R-00048A-R0; Thu, 17 Nov 2022 18:51:01 +0100 Date: Thu, 17 Nov 2022 18:50:58 +0100 From: Alexander Dahl To: Felix Mellmann Message-ID: Mail-Followup-To: Felix Mellmann , ptxdist@pengutronix.de References: <35a025e1-9b3b-01f5-6776-db2ce5554208@benfm.de> <20221116071710.GH30335@pengutronix.de> <55c7407e-88b8-85cb-5b3d-5556e7cdeb91@benfm.de> <20221117074550.GJ30335@pengutronix.de> <2c61d58d-3b73-45aa-eb67-e55ce576909c@benfm.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="enngsSnN0nVcVmg3" Content-Disposition: inline In-Reply-To: <2c61d58d-3b73-45aa-eb67-e55ce576909c@benfm.de> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/2.0.5 (2021-01-21) X-Scan-Signature: f1920a1153c808420521b5b755ea27fb X-Provags-ID: V03:K1:zSbl5gpoWmKCuUZm3Nojd3gkJOuXrYBxZu4oevaDKTCAzTgdhrV b0bCYVpPdWtatDuch4sXqSa4i6c+TA0Ip61QLxNfQS86nFTJWeiB/PUpmjebQdpygG5iwnu gCX54aVNHQHLwK5JExiVXm8L26CYsEBJDBCSrLeA8M/hM3aiZsOJmDFbdD5OmRmVEoXdWYb AAB2QcczDMJ6pZZsI6I5g== X-UI-Out-Filterresults: notjunk:1;V03:K0:en0iOm8MjHk=:T27R/CF2mm+8jUEsattRAO GTeyVl/lMQDcv3C36NAS2nCExJpHgBNZHZBl2Kf3yLe1RI3n3xgJwA4z8xQY/hrGqGOk0ncwz eMNb7abkzj1OOiEH5ict6TtN5SZ1Hw3swD/Pi20w7drumHucVYBRomzxdGheqEMZx4cM2iLKY 3UGgSo3tDif92BaQa0M9FoujrtVvMuOf5zXX1cJfqYRfUfBBJt0XOCJbFHh/AJvhownrnvu+Z ha4voy0LUpRPfGFGx6QS0qGx9Ko2jJjQfzwt6MYt+ZAZOKnJsKHQ8qMZxvmq31gThyYNFBFFo syink6sVnr1EkLkIOxobC8ptl5q/R8TQ47UloK2CX0C+te/0qJT3BU22t7S6aX8fuxo6tqE8g nHBmDtYZt/l5do7HvuyEVCyMMjJZN2mMplcBI2z+dwnc+y1peFrOuvnknzPcph9tHILULcU+h fcUq9rUufmNDGlMfeh49ZUS6ONXjwgMGNgm9BhLdUiUEresjEx5f0mv7Hd+GhJj/Mek8nYYba fNLMbc092+GGj+DqPiOe2zgBb81qZUAIEn03RUgXkXaoj33R3aH52kGkEB1Nkp7UCZv4iZYto sKfrNmY2idlNhHO1NvxXTQX5ZsDUBuqMGQU1uynmptRymzi80itaBHvd960pjPIwB4lo3NPVT lD5HMZzrAsTsyI7k2RVAZd7kMEbW6c25YjSfRygcGvOgIebTYCvElQhk29qTdnRDBdmmYIS9c o2h4c2+zDHEj5se7gWg/WNSdHBzqSurSa5Px5Urkl4N8IrS37hXBokfjep7RiH4Qyn9tCMehb W356dtS X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] e2fsprogs: possibly broken when using OSELAS.Toolchain 2022.10.0 X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false --enngsSnN0nVcVmg3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hei hei, Am Thu, Nov 17, 2022 at 03:52:18PM +0100 schrieb Felix Mellmann: > On 17.11.22 08:45, Michael Olbrich wrote: > > On Wed, Nov 16, 2022 at 06:40:02PM +0100, Christian Melki wrote: > > > On 11/16/22 15:08, Felix Mellmann wrote: > > > > On 16.11.22 08:17, Michael Olbrich wrote: > > > > > On Sun, Nov 13, 2022 at 06:32:01PM +0100, Felix Mellmann wrote: > > > > > > I've just run into a linker problem when building e2fsprogs 1.4= 6.5 using > > > > > > OSELAS.Toolchain 2022.10.0 (arm-v7a-linux-gnueabihf): > > > > > >=20 > > > > > >=20 > > > > > > ------------------------- > > > > > > target: e2fsprogs.compile > > > > > > ------------------------- > > > > > >=20 > > > > > > make: Entering directory > > > > > > '/PTXdist/BSP/platform-imx6/build-target/e2fsprogs-1.46.5' > > > > > > cd ./util ; make subst > > > > > > make[1]: Entering directory > > > > > > '/PTXdist/BSP/platform-imx6/build-target/e2fsprogs-1.46.5/util' > > > > > > =A0=A0 =A0CREATE dirpaths.h > > > > > > =A0=A0 =A0CC subst.c > > > > > > =A0=A0 =A0LD subst > > > > > > lto1: fatal error: bytecode stream in file 'subst.o' generated = with LTO > > > > > > version 11.2 instead of the expected 11.3 > > > > > > compilation terminated. > > > > > > lto-wrapper: fatal error: /usr/bin/gcc returned 1 exit status > > > > > > compilation terminated. > > > > > > /usr/bin/ld: error: lto-wrapper failed > > > > > > collect2: error: ld returned 1 exit status > > > > > > make[1]: *** [Makefile:369: subst] Error 1 > > > > > > make[1]: Leaving directory > > > > > > '/PTXdist/BSP/platform-imx6/build-target/e2fsprogs-1.46.5/util' > > > > > > make: *** [Makefile:194: util/subst] Error 2 > > > > > > make: Leaving directory > > > > > > '/PTXdist/BSP/platform-imx6/build-target/e2fsprogs-1.46.5' > > > > > > make: *** > > > > > > [/usr/local/lib/ptxdist-2022.11.0/rules/post/ptxd_make_world_co= mpile.make:20: > > > > > > /PTXdist/BSP/platform-imx6/state/e2fsprogs.compile] Error 2 > > > > > >=20 > > > > > > The error vanishes if ./configure is called with "--disable-lto= " instead of > > > > > > "--enable-lto". > > > > > >=20 > > > > > > As I'm no expert at this level, I hope anyone could put some hi= nts about the > > > > > > issue. > > > > > Is this a clean build? I've not seen this here with the same tool= chain and > > > > > the error looks like you're mixing compiler versions. > > > > It was a clean build, yes. But finally - ccache messed it up. After > > > > clearing the cache the build was successful. > > > >=20 > > > > Well I should loose my trust in ccache ... Please drop my patch. > > > >=20 > > > I still think that LTO should not be enabled per project like that. > > It's a good point. So I may apply the patch with a modified commit mess= age. > > I'm not sure yet. > >=20 > > > Regardless if it's working or not. > > > A global for LTO would be much better. > > Sneaking it in via compiler wrappers does not work. It breaks quite a f= ew > > packages (I tried that some time ago). But maybe a global option that > > selected packages can use to enable it conditionally. >=20 > Grepping through the packages reveals, that 8 packages explicitly disable > LTO and only e2fsprogs enables LTO. For the rest I'm unsure about the > defaults. So what should a global LTO option look like and what should be > the consequences? (i.e. replace all the enable/disable-lto with the global > option? Enforce a setting for all packages not configuring a default?) >=20 > @Michael: you propose that I should resend the patch with a different com= mit > message? Do you have a proposal? I really don't have a clue why LTO is > enabled for this peculiar package and its consequences and I unfortunately > run into a random ccache issue .. According to `git blame rules/e2fsprogs.make` that option was added with commit 471f5e0889e7 ("e2fsprogs: version bump 1.44.4 -> 1.44.6") in 2020, but the commit message is rather generic. Greets Alex --=20 /"\ ASCII RIBBON | =BBWith the first link, the chain is forged. The first \ / CAMPAIGN | speech censured, the first thought forbidden, the X AGAINST | first freedom denied, chains us all irrevocably.=AB / \ HTML MAIL | (Jean-Luc Picard, quoting Judge Aaron Satie) --enngsSnN0nVcVmg3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEwo7muQJjlc+Prwj6NK3NAHIhXMYFAmN2dHsACgkQNK3NAHIh XMZ+1BAAr81Gsq8AG7PH3glqbGOUTKRk6oZfg/EAadwhzKxzkhYmNtfrxWUKH82z Sxt7KKp/tJut4WNgdyiB4Axy/ilByorZlaY8AMqqBESBTjJtWvHZW0cigcNvEimB Lqa5iVHr7pijLyM8RQmVj7fWvCQDsuRoLlgpxsXzARV+e+rdqqo4icyJqpanNDp3 mCNujWmTp+7DgScZRdpxDCvBgCVimT5cHnMepdaFA/Fpo9KHHlqcbktJ4HbL1NnH Fx1gItyc9yGmrCVKzChHrAupZGn+59YfOBkRFGTLYIzyw3aw3py9DDy+HWW5Uzd7 BCk1hpYHW0rPMpdVtp/KkxpN48aIKkNuunMbgGFy/wzzyoN0Jn697xCD8SAn5KYw 0gaTlpEz0y/yefMRGCTF1Ac5iwYjbShGWo4yZ9QNBj3Vh1sYn3WgZ0LZXgm7BJnH BFO3nHnjYe98fLNLmwFbJtulziEucYd4jODMp1Mwg6ARuuGoL8AtFNyJ81w1l/yc phKhrjNsinOL9bK7eZKrmGPqRweIjnOLtPl7yvWY9wVXDdwlx71XCjZUB0DpBY8w CWFr8Sj4y4PesBp4TEgZdrnlKsxttkqMmYCDFqRoSy4hDF0vVUZB61+6XKRZY1k9 ZAiwajuzvNHQTl5wC4GuXbywBCVRXRBwLv/85K+ibR/bE22DZGs= =+jFx -----END PGP SIGNATURE----- --enngsSnN0nVcVmg3--