building palemoon,

General project discussion.
Use this as a last resort if your topic does not fit in any of the other boards but it still on-topic.
Forum rules
This General Discussion board is meant for topics that are still relevant to Pale Moon, web browsers, browser tech, UXP applications, and related, but don't have a more fitting board available.

Please stick to the relevance of this forum here, which focuses on everything around the Pale Moon project and its user community. "Random" subjects don't belong here, and should be posted in the Off-Topic board.
User avatar
frostknight
Keeps coming back
Keeps coming back
Posts: 860
Joined: 2022-08-10, 02:25

building palemoon,

Post by frostknight » 2025-12-19, 10:25

Two questions come to mind,

Is there a way to make it build with avx2 support instead of avx or sse4 or w/e
something like this?

ac_add_options --enable-avx2

Also, would avx2 speed up my browser? Just asking and if so, by how much?
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
Moonchild
Project founder
Project founder
Posts: 38821
Joined: 2011-08-28, 17:27
Location: Sweden

Re: building palemoon,

Post by Moonchild » 2025-12-19, 10:39

  1. Build with --enable-optimize="-O2b1 -GTs -GS- -arch:AVX2 -Qspectre -utf-8"
  2. frostknight wrote:
    2025-12-19, 10:25
    would avx2 speed up my browser? Just asking and if so, by how much?
    It would. By how much is difficult to answer. YMMV; you may not notice or you may notice. Our code base is so large and complex it's not possible to predict what the tangible effect will be at the end of the pipeline, if any.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1136
Joined: 2020-11-03, 06:47
Location: Philippines

Re: building palemoon,

Post by jobbautista9 » 2025-12-19, 10:55

For building with GCC (Moonchild's instructions is for the MSVC compiler on Windows), use the following optimization settings (courtesy of Nuck-TH's mozconfig for his AVX2 builds):

Code: Select all

ac_add_options --enable-optimize="-O2 -march=x86-64-v3 -w"
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
frostknight
Keeps coming back
Keeps coming back
Posts: 860
Joined: 2022-08-10, 02:25

Re: building palemoon,

Post by frostknight » 2025-12-19, 11:38

jobbautista9 wrote:
2025-12-19, 10:55
For building with GCC (Moonchild's instructions is for the MSVC compiler on Windows), use the following optimization settings (courtesy of Nuck-TH's mozconfig for his AVX2 builds):

Code: Select all

ac_add_options --enable-optimize="-O2 -march=x86-64-v3 -w"
How peculiar, it gave me errors when I tried that.

0:04.51 DEBUG: configure: failed program was:
0:04.51 DEBUG: #line 12920 "configure"
0:04.51 DEBUG: #include "confdefs.h"
0:04.51 DEBUG: #include <stdio.h>
0:04.51 DEBUG: int main() {
0:04.51 DEBUG: printf("Hello World\n");
0:04.51 DEBUG: ; return 0; }
0:04.51 DEBUG: configure: error: These compiler flags for C are invalid: -O2 -march=x86-64-v3 -w
0:04.51 ERROR: old-configure failed
0:04.53 *** Fix above errors and then restart with\
0:04.53 "/usr/bin/make -f client.mk build"
0:04.53 make[2]: *** [/home/user/Pale-Moon/client.mk:370: configure] Error 1
0:04.53 make[1]: *** [/home/user/Pale-Moon/client.mk:383: /home/user/Pale-Moon/obj-x86_64-pc-linux-gnu/config.status] Error 2
0:04.53 make: *** [client.mk:164: build] Error 2
0:04.58 0 compiler warnings present.

However, above that I saw the option of core-avx2 to add in place of x86-64-v3
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!