Closed
Bug 1246416
Opened 8 years ago
Closed 8 years ago
Assertion failure in elfhack with gold-2.26 on linux x86_64
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1233963
People
(Reporter: zarniwhoop, Unassigned)
Details
(Whiteboard: binutils-2.26)
Attachments
(1 file)
831 bytes,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Build ID: 20160206165817 Steps to reproduce: Using gcc-5.3.0 and GNU gold (GNU Binutils 2.26.20160125) 1.11 I tried to compile firefox-44.0. Actual results: Assertion failure: # Fail if the library doesn't have INIT .dynamic info === # Fail if the library doesn't have INIT_ARRAY .dynamic info readelf -d test-ctors.so | grep '(INIT)' readelf -d test-array.so | grep '(INIT_ARRAY)' 0x000000000000000c (INIT) 0x4020 0x0000000000000019 (INIT_ARRAY) 0x9a10 /scratch/working/firefox-44.0/firefox-build-dir/build/unix/elfhack/elfhack -b -f test-ctors.so /scratch/working/firefox-44.0/firefox-build-dir/build/unix/elfhack/elfhack -b -f test-array.so elfhack: /scratch/working/firefox-44.0/build/unix/elfhack/elf.cpp:261: Elf::Elf(std::ifstream&): Assertion `segment->getFileSize() == phdr.p_filesz' failed. Makefile:18: recipe for target 'test-ctors.so' failed make[5]: *** [test-ctors.so] Aborted make[5]: *** Waiting for unfinished jobs.... elfhack: /scratch/working/firefox-44.0/build/unix/elfhack/elf.cpp:261: Elf::Elf(std::ifstream&): Assertion `segment->getFileSize() == phdr.p_filesz' failed. Makefile:18: recipe for target 'test-array.so' failed make[5]: *** [test-array.so] Aborted make[5]: Leaving directory '/scratch/working/firefox-44.0/firefox-build-dir/build/unix/elfhack' /scratch/working/firefox-44.0/config/recurse.mk:79: recipe for target 'build/unix/elfhack/libs' failed make[4]: *** [build/unix/elfhack/libs] Error 2 Expected results: Successful compilation would have been nice ;-) I did as was suggested a few lines above the part I pasted, and used --disable-elf-hack. Now that I have built and installed it, I'm filing a bug as requested. I've got the whole log from the failed build, if required, but it is 3.6 MB and 12350 lines, so for the moment I am not attaching it. I will attach the part showing the options in my mozconfig.
Reporter | ||
Comment 1•8 years ago
|
||
I've now hit the same thing using old GNU ld, so binutils-2.26 is the apparent cause of this, not gold.
Whiteboard: binutils-2.26
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•