mainAutoconf - Support: sr #110475, ranlib: plugin needed to handle...


sr #110475: ranlib: plugin needed to handle lto object

Submitter:  R. Diez <rdiez>
Submitted:  Thu 22 Apr 2021 07:32:38 AM UTC
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup

Thu 22 Apr 2021 07:32:38 AM UTC, original submission:  

More and more people are building software with GCC's LTO nowadays.

I recently added a very simple library called libAtmelSoftwareFramework.a to this cross-compilation project of mine:

Then I got this error:

arm-none-eabi-ranlib: libAtmelSoftwareFramework.a(libAtmelSoftwareFramework_a-system_sam3x.o): plugin needed to handle lto object

The fix I came up with is to edit my top-level build script in order to add the following arguments to the ./configure invocation:


This has been a known issue for years. There are many discussions on the Internet. As a new Autoconf user, you have to search for the error message and read here and there. Example pages:

I think it is time for Autoconf to do something about this, instead of letting everybody lose time all over the place.

At the very least, this shortcoming should be documented in the Autoconf manual. Failing that, the FAQ page should mention it.

Autoconf already knows that it should not link directly with ld, so that it uses gcc as a linker wrapper, presumably because of similar issues. Is there any reason why Autoconf could not learn to use such gcc wrappers for ar and ranlib too?

R. Diez <rdiez>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rdiez (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.12