rmottola / Arctic-Fox

Web Browser for Mac OS X 10.6+, Linux (PowerPC, x86, amd64, ARM, MIPS), NetBSD, OpenBSD, and Windows XP.
Other
290 stars 35 forks source link

amd64 Void Linux musl build failed, same problem with gcc12 & llvm/clang12 #125

Open vl-ms opened 1 year ago

vl-ms commented 1 year ago

After several weeks experimenting with Pale Moon, it compiled, but didn't execute due to linking errors I assume (it was unable to find the liblgpllibs which lie in the same dir). I gave up and decided to try this browser, because I don't think Pale Moon devs will provide any help when I show them my config (too different from the default). So, I'm here, trying to build this browser with the following config, not too far from what is the default linux-amd64 in the repo:

export CC="gcc"
export CXX="g++"

mk_add_options MOZ_MAKE_FLAGS="-s -j4"

ac_add_options --disable-crashreporter
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-updater
ac_add_options --disable-mozril-geoloc
ac_add_options --disable-webrtc
ac_add_options --disable-safe-browsing
ac_add_options --disable-parental-controls
ac_add_options --enable-release
ac_add_options --disable-necko-wifi
ac_add_options --disable-eme
ac_add_options --disable-gamepad
ac_add_options --disable-dbus
ac_add_options --disable-gio
ac_add_options --disable-pulseaudio
ac_add_options --disable-gstreamer
ac_add_options --enable-strip
ac_add_options --enable-install-strip
ac_add_options --enable-application=browser
ac_add_options --with-branding=browser/branding/arcticfox
ac_add_options --enable-optimize="-g0 -O2 -pipe -march=native -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"

With the following result (seems like it was truncated for some reason, but you can see the final error I suppose). I'm in no way an expert in C or C++, so I have no idea what is the problem here, but it was the same regardless of whether I used clang or gcc. I would prefer to use clang because it has more security hardening options, but if it can't be helped and I need gcc then sure, I will use it.

vl-ms commented 1 year ago

checked gcc6 available in the repos, looks like a very similar problem happens: gcc6-output.txt

rmottola commented 1 year ago

hmm.... gcc6 works fine for me on most systems, I don't know which other compiler did you attempt. I don't have void, but I do try Alpine Linux. I have issues which might me due to musl, but I don't see why.

xplshn commented 1 year ago

How can you do the compiling with Musl? Could you share your mozconfig?

rmottola commented 1 year ago

I compile with the following mozconfig on 3.17 Alpine linux. Compilation fails for errors inside mozspell/hunspell.

export CXX="g++ -march=pentium4 -mtune=pentium4"

#mk_add_options MOZ_MAKE_FLAGS="-s -j4"

ac_add_options --enable-gold
ac_add_options --disable-crashreporter
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-updater
ac_add_options --disable-mozril-geoloc
ac_add_options --disable-webrtc
ac_add_options --disable-safe-browsing
ac_add_options --disable-parental-controls
ac_add_options --enable-release
ac_add_options --disable-necko-wifi
ac_add_options --disable-eme
ac_add_options --disable-gamepad
ac_add_options --disable-dbus
ac_add_options --disable-gio
ac_add_options --disable-pulseaudio
ac_add_options --disable-gconf
ac_add_options --disable-gstreamer
#ac_add_options --enable-strip
#ac_add_options --enable-install-strip
ac_add_options --enable-application=browser
ac_add_options --with-branding=browser/branding/arcticfox
ac_add_options --enable-optimize="-O2 -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"

# System libraries
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-icu
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
#ac_add_options --enable-system-hunspell
#ac_add_options --enable-system-sqlite
ac_add_options --enable-system-ffi
ac_add_options --enable-system-pixman