From tk @end|ng |rom tkoen|g@net  Thu Apr 25 18:11:19 2019
From: tk @end|ng |rom tkoen|g@net (=?UTF-8?Q?Thomas_K=c3=b6nig?=)
Date: Thu, 25 Apr 2019 18:11:19 +0200
Subject: [Rd] 
 configure script issue with -flto with recent gcc and system
 ar/ranlib
In-Reply-To: <494c2fb7-64fc-9336-7b86-ec36fb44f416@gmail.com>
References: <60fd285c-1aac-29ba-c867-dfc43c7de930@tkoenig.net>
 <494c2fb7-64fc-9336-7b86-ec36fb44f416@gmail.com>
Message-ID: <393de1b8-52b4-e35c-f1a3-4b550967875c@tkoenig.net>

Hi Tomas,

> On 4/23/19 2:59 PM, Thomas K?nig wrote:
>> Hi,
>>
>> there can be an issue with recent gcc where the system-installed "ar"
>> and "ranlib" commands cannot handle LTO binaries.? On compilation, this
>> manifests itself with error messages claiming that they need extra
>> plugins.

> Thanks for the report. What was the version of binutils on the system 
> with this problem? On my Ubuntu 18.04 I can use the binutils version of 
> "ar" and "ranlib" with --enable-lto without problems.? I read that with 
> recent binutils (2.25?), the LTO plugin should be loaded automatically, 
> so one does not have to use the wrappers anymore.

This was with, on x86_64-pc-linux-gnu,

GNU ar (GNU Binutils; openSUSE Leap 42.3) 2.31.1.20180828-19

and, on powerpc64le-unknown-linux-gnu,

GNU ar version 2.27-34.base.el7

both with a recent gcc 9.0.1 snapshot.

Regards

	Thomas



[Rd] configure script issue with -flto with recent gcc and system ar/ranlib
=?UTF-8?Q?Thomas_K=c3=b6nig?=