-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile] Error 2 on Alpine Linux #100
Comments
Your log is not very exhaustive, it does not show the effective error. ArcticFox currently does not complete a build for me on AlpineLinux, it goes much further than your example shows, it blows up inside the spell checker, even if I use the system supplied one, I don't know why though. What compiler are you using? Do you have python 2.7 and autoconf 2.13 installed? |
is there a file where arctic-fox can keep the compilation results to a log file ? python 2.7.18 and autoconf 2.13 are both installed .mozconfig file: export CC=gcc Clear this if not a 64bit build_BUILD_64=1 Set GTK Version to 2 or 3_GTK_VERSION=2 Standard build options for Pale Moonac_add_options --enable-application=palemoon Please see https://www.palemoon.org/redist.shtml for restrictions when using the official brandin>ac_add_options --enable-official-branding Processor architecture specific build optionsif [ -n "$_BUILD_64" ]; then export MOZ_PKG_SPECIAL=gtk$_GTK_VERSION |
Current development branch is rmottola:dev, please test on that. The build log and error show on std-out usually or can be retrieved with "mach show-log" I use as optimization flags the following when compiling with gcc 6.5 or higher (does not affect compilation success, but will lead to crashing app)
and, to attempt work around the hunspell issue:
My attempts to build on alpine 3.15 on my dev branch with the above options fail with:
|
I fixed the mallinfo issue! I backported a specific fix |
i got a cannot find <sys/queue.h> while compile. |
did you get a working articfox on alpinelinux 3.15? |
ac_add_options --enable-gold ac_add_options --with-system-nspr |
Did you try current? most fixes are in... but complete build fails tue to hunspell. I tried using system one, but it does not help (note options above). |
@nonvwvnon could you try with current git? |
Hi, I'm a maintainer of Adélie Linux which is a separate distro that also uses musl libc. I have found the issue with hunspell. The allocator redirector
…which isn't helpful, and then later
doesn't end well either. |
Looks like this patch fixes it: --- Arctic-Fox-45.1/extensions/spellcheck/hunspell/glue/hunspell_alloc_hooks.h.old 2024-09-30 19:54:44.000000000 +0000
+++ Arctic-Fox-45.1/extensions/spellcheck/hunspell/glue/hunspell_alloc_hooks.h 2024-10-22 21:46:00.494798524 +0000
@@ -47,6 +47,8 @@
* allocated using C memory allocation functions.
*/
+#include <sched.h>
+#include "mozilla/Logging.h"
#include "mozilla/mozalloc.h"
#include "mozHunspellAllocator.h" Of course, I don't recommend this, because |
Is that your only change? Just out of curiosity I tried on OpenBSD and it did not help. There I stoo have issues with realloc and memory functions due to define macros. Still need to try on Alpine itself though. |
platform: alpinelinux
File--
.mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-x86_64-unknown-linux-gnu
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 --disable-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 --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 -march=westmere"
./mach build
make[5]: Leaving directory '/root/Downloads/Arctic-Fox-39.1/obj-x86_64-unknown-linux-gnu/netwerk/ipc'
make[4]: Leaving directory '/root/Downloads/Arctic-Fox-39.1/obj-x86_64-unknown-linux-gnu'
make[3]: *** [/root/Downloads/Arctic-Fox-39.1/config/recurse.mk:33: compile] Error 2
make[3]: Leaving directory '/root/Downloads/Arctic-Fox-39.1/obj-x86_64-unknown-linux-gnu'
make[2]: *** [/root/Downloads/Arctic-Fox-39.1/config/rules.mk:548: default] Error 2
make[2]: Leaving directory '/root/Downloads/Arctic-Fox-39.1/obj-x86_64-unknown-linux-gnu'
make[1]: *** [/root/Downloads/Arctic-Fox-39.1/client.mk:399: realbuild] Error 2
The text was updated successfully, but these errors were encountered: