[Bug lto/85609] New: lto_check_version should print file name when linking a static lib

cand at gmx dot com gcc-bugzilla@gcc.gnu.org
Wed May 2 13:39:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85609

            Bug ID: 85609
           Summary: lto_check_version should print file name when linking
                    a static lib
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cand at gmx dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

The current error message is not very helpful when linking against a static lib
instead of object files:
"lto1: fatal error: bytecode stream in file 'libwebkitfltk.a' generated with
LTO version 4.0 instead of the expected 6.0"

In this case, the lib has 3268 .o files. If the file is a lib, the error
message should include the .o file's filename too.

--
Is there any way to examine a file's LTO version? I tried dumping sections with
readelf, but nothing jumped at me.


More information about the Gcc-bugs mailing list