From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by sourceware.org (Postfix) with ESMTPS id 91F0E384D181 for ; Wed, 15 Jun 2022 09:26:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 91F0E384D181 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=contemporary.net.au Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=contemporary.net.au Received: from nsstlmta17p.bpe.bigpond.com ([203.38.21.17]:34436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1PIS-0004D0-Lc for gcc@gcc.gnu.org; Wed, 15 Jun 2022 05:26:51 -0400 Received: from smtp.telstra.com ([10.10.24.4]) by nsstlfep17p-svc.bpe.nexus.telstra.com.au with ESMTP id <20220615092526.LNWO6554.nsstlfep17p-svc.bpe.nexus.telstra.com.au@smtp.telstra.com> for ; Wed, 15 Jun 2022 19:25:26 +1000 X-RG-Spam: Unknown X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvfedruddvuddgudegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuuffpveftpgfvgffnuffvtfetpdfqfgfvnecuuegrihhlohhuthemucegtddtnecunecujfgurhepkfffgggfvffhufgtgfesthejredttdefjeenucfhrhhomhepvehhrhhishculfhohhhnshcuoegthhhrihhssegtohhnthgvmhhpohhrrghrhidrnhgvthdrrghuqeenucggtffrrghtthgvrhhnpefgtefgvdevffdvtdefgeethfegvddtgeeijefffedtfeehtddvgfelfedvveelhfenucfkphepudefledrudeftddrvdeghedrvddttddpuddvtddrudehuddrudekvddrgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehmrghilhdrtghonhhtvghmphhorhgrrhihrdhnvghtrdgruhdpihhnvghtpedufeelrddufedtrddvgeehrddvtddtpdhmrghilhhfrhhomheptghhrhhishestghonhhtvghmphhorhgrrhihrdhnvghtrdgruhdpnhgspghrtghpthhtohepuddprhgtphhtthhopehgtggtsehgtggtrdhgnhhurdhorhhg X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-RG-VS-CLASS: clean Received: from mail.contemporary.net.au (139.130.245.200) by smtp.telstra.com (5.8.806) id 626F3068099525BB for gcc@gcc.gnu.org; Wed, 15 Jun 2022 19:25:25 +1000 Received: from [172.16.100.113] ([120.151.182.4]) (authenticated bits=0) by mail.contemporary.net.au (8.15.2/8.15.2) with ESMTPSA id 25F9PNIK077279 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 15 Jun 2022 19:25:23 +1000 (EST) (envelope-from chris@contemporary.net.au) X-Authentication-Warning: corb.contemporary.net.au: Host [120.151.182.4] claimed to be [172.16.100.113] Message-ID: Date: Wed, 15 Jun 2022 19:25:18 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Content-Language: en-US To: gcc@gcc.gnu.org From: Chris Johns Subject: Building gcc 12 cross-compiler with --enable-lto on FreeBSD fails Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Received-SPF: softfail client-ip=203.38.21.17; envelope-from=chris@contemporary.net.au; helo=nsstlmta17p.bpe.bigpond.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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2022 09:26:54 -0000 Hi, I am trying to build a cross-compiler on FreeBSD with --enable-lto because a chip vendor is using it when building controller software that is part of a system. The build I am using symlinks gmp, mpfr etc as source so they are built as part of the gcc build. The mpfr package is reporting ... build/mpfr/config.log:configure:17408: error: Link Time Optimisation is not supported (see config.log for details). Should the enable option be passed to these packages? I have assumed the enable option for LTO is for the cross compiler and not the host gcc? Thanks Chris