build error with gold: elfhack assertion failed Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Agent Orange

build error with gold: elfhack assertion failed

Unread post by Agent Orange » 2017-03-31, 16:01

Firefox bug 1233963 (solved) affects Pale Moon.

Attempting to build with --enable-gold gives the following error:

Code: Select all

31:07.49 ===
31:07.49 === If you get failures below, please file a bug describing the error
31:07.49 === and your environment (compiler and linker versions), and use
31:07.49 ===
31:07.49 === --disable-elf-hack until this is fixed.
31:07.49 === If you get failures below, please file a bug describing the error
31:07.49 ===
31:07.49 === and your environment (compiler and linker versions), and use
31:07.49 === --disable-elf-hack until this is fixed.
31:07.49 ===
31:07.50  0x0000000000000019 (INIT_ARRAY)         0x8440
31:07.50  0x000000000000000c (INIT)               0x4040
31:07.51 elfhack: /tmp/Pale-Moon-27.2.1_Release/build/unix/elfhack/elf.cpp:261: Elf::Elf(std::ifstream&): Assertion `segment->getFileSize() == phdr.p_filesz' failed.
31:07.51 elfhack: /tmp/Pale-Moon-27.2.1_Release/build/unix/elfhack/elf.cpp:261: Elf::Elf(std::ifstream&): Assertion `segment->getFileSize() == phdr.p_filesz' failed.
31:07.51 gmake[5]: *** [Makefile:29: test-array.so] Aborted
31:07.51 gmake[5]: *** Waiting for unfinished jobs....
31:07.51 gmake[5]: *** [Makefile:29: test-ctors.so] Aborted
31:07.51 gmake[4]: *** [/tmp/Pale-Moon-27.2.1_Release/config/recurse.mk:82: build/unix/elfhack/libs] Error 2
31:07.51 gmake[3]: *** [/tmp/Pale-Moon-27.2.1_Release/config/recurse.mk:37: libs] Error 2
31:07.51 gmake[2]: *** [/tmp/Pale-Moon-27.2.1_Release/config/rules.mk:541: default] Error 2
31:07.51 gmake[1]: *** [/tmp/Pale-Moon-27.2.1_Release/client.mk:398: realbuild] Error 2
31:07.51 gmake: *** [client.mk:171: build] Error 2
31:07.52 230 compiler warnings present.
31:08.71 Notification center failed: Install the python dbus module to get a notification when the build finishes.
Trying out their patch now; will report back in ~21 mins to see if it's a one-shot fix. :coffee:

Agent Orange

The patch fixes it

Unread post by Agent Orange » 2017-03-31, 16:30

:thumbup: dis fix it!
Image
Attachments
bug_1148523_firefox_gold.patch
Confirmed by myself to fix the problem
(1.07 KiB) Downloaded 64 times

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35574
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: build error with gold: elfhack assertion failed

Unread post by Moonchild » 2017-03-31, 16:48

Unfortunately the .patch attached was not a valid patch file, but I applied the change manually.

Thanks!
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked