From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from USG02-BN3-obe.outbound.protection.office365.us (mail-bn3usg02on0135.outbound.protection.office365.us [23.103.208.135]) by sourceware.org (Postfix) with ESMTPS id 4C872382F99C for ; Fri, 7 Oct 2022 04:10:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4C872382F99C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=caemilusa.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=caemilusa.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector5401; d=microsoft.com; cv=none; b=rHtvQ1Oi3r7PR/RitV7TrMZBnftNHtO5Xr6R1YHdtD619haB4GkrDb8wSS6fl2TD5axapGmhfeJ2yZmeFh52fGl5UEAmVg8o0feHNNAG9pY/Rfg6QH9Yg/ydMbPR/h3hZjNuD84H//IJbX1/OHLJ4KBC8KQLuBpgsG/5i0UTcIX8o5AXQ9QBPvtbZkoGqt+iW8T8vhwAkgb5nFttNBZVwetAUKcVNWyJu7Q0o2cTLIQkbnZ92ARhc5sceKgPG0AM8KWNpyjbNRIRhG6sqZKXtZxc8x/19RAiyqtr6O01BVAj/13eblMo4uaIU7u6SttUb+AZ6Hb5xFecFCBZWVyApA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector5401; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3304rEoNX25gjnjlwLpHnCwgMxbjVYwdznHXgCsjk60=; b=AQSYjDXpzwwGy5ed1Q0B3FAcM0nJ1CFM8wJ62kTv3cM8k9+ouLO4lL2K/ddrXbQKEDgLl2cwuvAtchvdUpT6Ho/N0M9TfWlV1H/ryC9gEMezbICYvXgvteN7YHZcSQ18Fj3yf/cWjWAlNoTb3w0X7FIw9aOJ4YI4sWC5pym0n4ZUchzgcVLOONcCTYOSuaCSbQz/M3XFYcwj8mnoITomW4AAAqdJhoPA4p8uZ5LJhc6JIYT0NEX6IM/s9CWTzt/bA5akQKSHRGWUVMEe7E6EPkG12W0yZfxqQQtBlmwVdNS8c2Fjba1HwqhvExCNtIjdfwz1zJ7FwEN6ij6KvwxH1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=caemilusa.com; dmarc=pass action=none header.from=caemilusa.com; dkim=pass header.d=caemilusa.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=azucaeusa.onmicrosoft.us; s=selector1-azucaeusa-onmicrosoft-us; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3304rEoNX25gjnjlwLpHnCwgMxbjVYwdznHXgCsjk60=; b=Cdgg7hmdyv7IoROtqfMYlcJdFyxbHRoY5bwfcTZa+RKz9xpKzxkt6YckpUF17z1dNS6rRxyUDDlpKvKdyf9jtx+dE3bm9br9468DYnqf8T/qJfVloGj1qbaE3KfOO4Wy1hcS339ulZ6EiOwOiq4qeEMd6yogIul1UAEe4+zSQWU= Received: from PH1P110MB1650.NAMP110.PROD.OUTLOOK.COM (2001:489a:200:188::6) by PH1P110MB1489.NAMP110.PROD.OUTLOOK.COM (2001:489a:200:18a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.20; Fri, 7 Oct 2022 04:10:07 +0000 Received: from PH1P110MB1650.NAMP110.PROD.OUTLOOK.COM ([fe80::c42a:6956:374b:8495]) by PH1P110MB1650.NAMP110.PROD.OUTLOOK.COM ([fe80::c42a:6956:374b:8495%6]) with mapi id 15.20.5676.036; Fri, 7 Oct 2022 04:10:07 +0000 From: Andrew Goth To: "binutils@sourceware.org" Subject: @CPP_FOR_BUILD@ problem since binutils-2.38 Thread-Topic: @CPP_FOR_BUILD@ problem since binutils-2.38 Thread-Index: AQHY2gJDm9zPQ8NVAEC9FIy2V5AVTg== Date: Fri, 7 Oct 2022 04:10:07 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: a2a19886-5819-34ad-0e66-05c8c5d35424 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=caemilusa.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH1P110MB1650:EE_|PH1P110MB1489:EE_ x-ms-office365-filtering-correlation-id: 14c5ece4-29bb-48b8-6a25-08daa819d1bd x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: q4E/43fdwEtIsP8RBhg9hHqxscK5FDI0E9O61Q126NQisdfRrfWUhtaq+4hf7XMjBJhnXAzJOGKMwvO6HW/gESzFwvpW9a/nOJbXkJmTm4ZJYX5b3goBlluFDwLf4zi7z9oGc/QAUUcceKkGaqhHbO1qWvHlujCW59fWw7UQpOEDFoufoTf6sBjwvdQmqylUi+++2XGBYwV9pUEq3pdyf6/T/yRQHcL5V0+47+g2866JURBreOJnmDPcQ1f9XRenHqwCrvrJ0F0D3gJjgAHgjL5FQS9ewrghMGowGeBGuFCu5As9ytDt0TX9hyhDJYAzKoll6tC4VyMQBF9Kp0BryplUdlLmx/LkLW3eg1XmjA716wQzvcFdi1isQO0pLGM+cW2vYMCifjCt0gv1XS5chN+FT62EPM9fmteukrp6np/3x64logo7I9P28hlDxlErEWxQs54yDcTixVFlkdf7u7nBXrwVs3P8wxqxTNe67swhzA5jThkg0lRM+6MpjYuLlqm252q/wiowqS8YMGqDeSE/4i/bWPrzOiBnzWcaXge8/c0DKPsppGhBrPAQZP4npsKL9O3aJmzY7HAeJYdgl8nLsVSiQqmL2t0pHmNLluyZ7KkXLeYfQINr74ml+Z5a3so6R84RJZkNoAt2JDJsxT+JupVHLDphXt5rjb/++PIEGv1+41xe8Vzzoz4VQnvKKHmax4/3Klx9/VVjwJXxRGP8R+QmDrwZJ/KN0Qwa9ZLzcTPKz0pBLUPVxTBCnlb9QqOOO28RQrpaeU1Ry5ofRA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH1P110MB1650.NAMP110.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(451199015)(83380400001)(71200400001)(6506007)(55016003)(7696005)(52536014)(122000001)(86362001)(2906002)(498600001)(8936002)(5660300002)(76116006)(8676002)(66946007)(66446008)(66556008)(66476007)(33656002)(966005)(64756008)(186003)(6916009)(38070700005)(26005)(9686003)(38100700002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?uQwmPnFnfmoDpiz3dvgiM5eqXavXHO6Bx6Y2hdwgUFaA6vOuP9iJSbEVyH?= =?iso-8859-1?Q?A7pnVDBKVejZQZEtPN7fJUjkWgiPZ2fRoBm2Jh4Dnb2uQbE7r/2eXbxIXT?= =?iso-8859-1?Q?oHcBMqcwAJs4ey+EOOaVY7EzwyUUFnX9n8juMid887JmhwcfLiFn9hoFk6?= =?iso-8859-1?Q?ZasPoxL15mK3Zj5berQXp4chrAGljuJyZ22BdptgfKP9PRzwCCaoX/qgma?= =?iso-8859-1?Q?rpdUBsYN+rzRoTjun3u7YJWjE6WWgvlECWQXhCUxpG+dpqTj6MFIsNwshF?= =?iso-8859-1?Q?cQxmIXxBPQLmx2WdF3z9qXPPrHKRgJyHYARyzi50WH2SwFkc74H+p40p5a?= =?iso-8859-1?Q?oiEniV+bOhjYisJGtcyi3FaFh2Dh+472IIg4sBChdSjgFSI85A8g5/eowu?= =?iso-8859-1?Q?PX58NsC3f7tg20SFbjQZ8WkzJUjDYi6GD0fCippxSZw1v2baRFScleJXfk?= =?iso-8859-1?Q?Vb9czgVtRZ4aL7QEqBF1P0MpI7CNKeWHsDiAOEBbAOSx2Tm+ni+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GJnummBcQSt3WWIZd4zpq6Srm80AtfE8mtw6HrWwZhyvLPaT9gQLnY?= =?iso-8859-1?Q?MGTXN8FUZ0gtkmUlgN7RRu2enC2S0SDCqIkT4+Eb3rLrNoIu3rUvki9+x9?= =?iso-8859-1?Q?yBx13c92xtow14YWyi7JDRHqncr37EqCqdWEl828AgSo/2F0+22oE6ZafG?= =?iso-8859-1?Q?IEN7Sxo=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: caemilusa.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH1P110MB1650.NAMP110.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 14c5ece4-29bb-48b8-6a25-08daa819d1bd X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Oct 2022 04:10:07.2690 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b1f59ca3-5c75-45b4-91a0-1c96b6d41895 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH1P110MB1489 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, I'm having trouble with @CPP_FOR_BUILD@, @CPPFLAGS_FOR_BUILD@, etc. in = binutils's Makefile.in not being replaced by the configure script.=0A= =0A= This problem was introduced with version 2.38 and persists into 2.39.=0A= =0A= Here is an excerpt from the diff from 2.37 to 2.38:=0A= =0A= diff -U0 -r binutils-2.37/Makefile.in binutils-2.38/Makefile.in=0A= --- binutils-2.37/Makefile.in 2021-07-18 11:47:23.000000000 -0500=0A= +++ binutils-2.38/Makefile.in 2022-02-09 06:04:43.000000000 -0600=0A= @@ -342,0 +367,2 @@=0A= +CPP_FOR_BUILD =3D @CPP_FOR_BUILD@=0A= +CPPFLAGS_FOR_BUILD =3D @CPPFLAGS_FOR_BUILD@=0A= @@ -345,0 +372 @@=0A= +DSYMUTIL_FOR_BUILD =3D @DSYMUTIL_FOR_BUILD@=0A= @@ -347,0 +375 @@=0A= +GDC_FOR_BUILD =3D @GDC_FOR_BUILD@=0A= @@ -394,0 +423 @@=0A= +DSYMUTIL =3D @DSYMUTIL@=0A= @@ -398,0 +428 @@=0A= +OTOOL =3D @OTOOL@=0A= @@ -404,0 +435 @@=0A= +GDC =3D @GDC@=0A= =0A= Every single one of these additions to Makefile.in yields a corresponding M= akefile line that passes through unsubstituted.=0A= =0A= In configure, CPP_FOR_BUILD, etc. aren't in $ac_subst_vars. Similarly, they= 're not listed with AC_SUBST() in configure.ac, which I find most interesti= ng.=0A= =0A= This breaks my script for building binutils, gcc, etc. as a cross compiler.= The problem makes itself known during configure-isl. I embed isl-0.25 into= binutils's isl subdirectory, and it chokes due to the CPP_FOR_BUILD enviro= nment variable coming in as literally @CPP_FOR_BUILD@. My successful workar= ound has been to stick with binutils-2.37, but I can't stay behind forever.= =0A= =0A= configure:5762: checking whether the C compiler works=0A= configure:5784: gcc -g -O2 @CPPFLAGS_FOR_BUILD@ conftest.c >&5=0A= /usr/bin/ld: cannot find @CPPFLAGS_FOR_BUILD@: No such file or directory=0A= collect2: error: ld returned 1 exit status=0A= =0A= I'm building using a fresh Slackware64 15.0 install, and I'm not applying a= ny patches to binutils or isl.=0A= =0A= To double-check whether it's me or there really is something funny going on= , as well as to give you a reproducible test case I had no hand in writing = (ruling out operator error on my part), I ran Slackware's own build script = for binutils, with an "exit" immediately following the configure script. Th= is leaves me with @CPP_FOR_BUILD@ literally appearing in /tmp/binutils-2.39= /Makefile, consistent with my own experience.=0A= =0A= If you want to follow along, here is the process:=0A= (1) get https://mirrors.slackware.com/slackware/slackware-iso/slackware64-1= 5.0-iso/slackware64-15.0-install-dvd.iso=0A= (2) install onto a VM=0A= (3) boot and log in (root is fine)=0A= (4) wget -np -r -R '*.mirrorlist' -R 'index.html*' https://mirrors.slackwar= e.com/slackware/slackware-current/source/d/binutils/=0A= (5) edit binutils.SlackBuild to add "exit" after the configure command=0A= (6) run binutils.SlackBuild=0A= (7) find the results in /tmp/binutils-2.39=0A= =0A= If it weren't for the exit, this would result in a good binutils build, sin= ce @CPP_FOR_BUILD@, etc. don't affect this configuration. But try building = binutils with an in-tree isl and you'll have trouble due to isl's configure= script looking at $CPP_FOR_BUILD.=0A= =0A= I'm considering experimenting with adding more AC_SUBST() lines to configur= e.ac, downgrading to autoconf 2.69, and regenerating configure. Alas, the h= our grows late and I have other projects I must complete tonight, so I deci= ded to write up this email and move on.=