Closed Bug 633216 Opened 14 years ago Closed 14 years ago

elfhack fails with gcc 4.4.5 and gold 1.10

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 629635

People

(Reporter: jrmuizel, Unassigned)

References

Details

Attachments

(1 file)

(deleted), application/octet-stream
Details
elfhack gives me the following error: elfhack: /home/jrmuizel/src/mozilla-central/build/unix/elfhack/elf.cpp:285: Elf::Elf(std::ifstream&): Assertion `segment->getFileSize() == phdr.p_filesz' failed.
Did you build beta11 or mozilla-central ? If the former, this could be either bug 629638 or 629639, in which case it's fixed on mozilla-central.
I was using the git repository of mozilla-central as of hg commit 7698f12bbe7d
please attach test.so (you will have to build it by hand, as the failure will remove it)
please also give the command lines used to build test.so and test.o
Blocks: 633269
> Blocks: 633269 Strictly speaking, this is not entirely true. There are versions of gold that work fine with elfhack.
Attached file test.so (deleted) —
c++ -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -Wno-long-long -fno-strict-aliasing -fshort-wchar -pthread -pipe -fexceptions -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fno-omit-frame-pointer -fPIC -shared -Wl,-z,defs -Wl,-h,test.so -o test.so test.o
I can reproduce with your test.so. And the good news is that patches from bug 629635 fix it.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: