Red Hat Bugzilla – Bug 915411
libWebCoreInternals.a: could not read symbols: No more archived files
Last modified: 2015-02-18 08:50:44 EST
Build of webkitgtk3-1.11.90-2.fc19 on s390x fails with
./.libs/libWebCoreInternals.a: could not read symbols: No more archived files
collect2: error: ld returned 1 exit status
make: *** [Programs/DumpRenderTree] Error 1
The last successful build of webkit (1.11.2-3.fc19) used binutils.s390x 0:188.8.131.52.6-1.fc19, will retry with these
Version-Release number of selected component (if applicable):
libWebCoreInternals.a library is surprisingly small, cca 70 KB, couldn't an 4GB overflow happen? Couldn't bug 835957 re-appear in some other form?
Please could you upload a copy of libWebCoreInternals.a for me ?
Created attachment 702484 [details]
Ah - this is a "thin" archive. Ie it does not contain the object files themselves. Instead it just contains the pathnames of the object files (relative to the archive) and a symbol table of their exported symbols.
So, no, this is not a recurrence of 835957.
The archive does appear to be corrupt however. Runnning "readelf -c" on it shows:
Index of archive libWebCoreInternals.a:
(0 entries, 0x123bc bytes in the symbol table)
readelf: Error: libWebCoreInternals.a:
symbols remain in the index symbol table, but
without corresponding entries in the index table
This *might* be an occurrence of PR 15140:
How is libWebCoreInternals.a built ? Is it just one ar command line, or is it built up with multiple invocations of ar ? If the latter, then the problem might be that sometimes the "t" ar option is being used and sometimes it is not. (This
was the problem underlying PR 15140).
Stop press - I was using an old version of readelf. The latest version tells me:
./readelf -c libWebCoreInternals.a
Index of archive libWebCoreInternals.a: (870 entries, 0x10888 bytes in the symbol table)
readelf: Error: libWebCoreInternals.a: failed to read archive header
And this carries on for a while. So the symbol table appears to be intact.
I suspect, given the linker error message, that the problem might be that one of the object files referenced by libWebCoreInternals.a has been deleted or moved, so that it can no longer be found. Is this a possible scenario ? If you run "readelf -h libWebCoreInernals.a" for example, do you get to see the headers of all of the archive members or does readelf complain about some missing files ?
I don't see any error when doing "readelf -h libWebCoreInternals.a". I can give you access to the whole chroot with the build so you can easily inspect the files yourself. Just ping me (dhorak) on #tools IRC if you are interested.
I have moved the chroot to /var/lib/mock/fedora-19-s390x.webkit/root so it doesn't clash with mock chroots I or other devels will create on the machine. Is there anything I can help you with? It's important for me to get webkit built as it blocks 1000s of other packages in the F-19 mass rebuild on s390.
Right - so the situation is this: Thin archives are broken on targets which also use 64-bit archives. (Ie s390, MIPS, IA64). The workaround is to just use ordinary archives not thin one.
The bug itself is in the ar program when it creates the index table for the archive. For 64-bit archives it always assumes that a "fat" archive is being created and so all but the first index are off by huge amounts. I have an experimental patch to fix this problem which will be in binutils-184.108.40.206.1-2.fc19, once it has been built.
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.
(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)
More information and reason for this action is here:
This message is a notice that Fedora 19 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 19. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 19 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.