1 (edited by tch 2023-05-13 17:31:13)

Topic: Impossible to compile IceWeasel-UXP 3.1

I am trying to compile IceWeasel-UXP 3.1 with this script:

#!/bin/sh
cd /tmp

ANAME="RB_20230320.tar.gz"
wget "https://repo.palemoon.org/MoonchildProductions/UXP/archive/""$ANAME" -O "$ANAME"
tar xzf "$ANAME"
rm "$ANAME"

cd uxp
mkdir application
cd application

ANAME="iceweasel-uxp-3.1.tar.gz"
wget "https://repo.hyperbola.info:50000/other/iceweasel-uxp/""$ANAME" -O "$ANAME"
tar xzf "$ANAME"
rm "$ANAME"
mv "iceweasel-uxp-""$2" iceweasel-uxp

cd ..
echo 'mk_add_options AUTOCLOBBER=1' > .mozconfig
echo 'mk_add_options MOZ_MAKE_FLAGS="-j7"' >> .mozconfig
echo 'ac_add_options --enable-application=iceweasel-uxp' >> .mozconfig
echo 'ac_add_options --enable-default-toolkit=cairo-gtk2' >> .mozconfig
echo 'ac_add_options --enable-alsa' >> .mozconfig
echo 'ac_add_options --disable-pulseaudio' >> .mozconfig
echo 'ac_add_options --enable-optimize=-O2' >> .mozconfig
echo 'ac_add_options --enable-strip' >> .mozconfig
echo 'ac_add_options --disable-debug' >> .mozconfig
echo 'ac_add_options --enable-release' >> .mozconfig
echo 'ac_add_options --disable-sync' >> .mozconfig
echo 'ac_add_options --disable-verify-mar' >> .mozconfig
echo 'ac_add_options --disable-updater' >> .mozconfig
echo 'ac_add_options --disable-crashreporter' >> .mozconfig
echo 'ac_add_options --disable-maintenance-service' >> .mozconfig
echo 'ac_add_options --disable-tests' >> .mozconfig
echo 'ac_add_options --disable-ipdl-tests' >> .mozconfig
sed -i "s/die('Cannot find project %s', build_app)/fake = 0/g" build/moz.configure/init.configure

./mach build
./mach package
cp ./obj-x86_64-pc-linux-gnu/dist/iceweasel-uxp-*.tar.bz2 /opt/

cd ..
rm -rf ./uxp

cd /opt
tar -xjvf iceweasel-uxp-*.tar.bz2
mv iceweasel-uxp-*.tar.bz2 /a/UTILDISK/UPGRADE/iceweasel-uxp/

It dies with these errors:

 0:11.56 checking for alsa... yes
 0:11.56 checking MOZ_ALSA_CFLAGS...
 0:11.56 checking MOZ_ALSA_LIBS... -lasound
 0:11.58 /tmp/uxp/old-configure: 12143: test: Illegal number:
 0:11.60 /tmp/uxp/old-configure: 12203: test: Illegal number:
 0:11.60 checking for wget... wget
 0:11.64 checking for valid C compiler optimization flags... yes
 0:11.69 /tmp/uxp/old-configure: 71: /tmp/subscript.coYWgu: Syntax error: Unterminated quoted string
 0:11.71 DEBUG: <truncated - see config.log for full output>
 0:11.71 DEBUG: configure:10325: checking _GTKCHECK_LIBS
 0:11.71 DEBUG: configure:10366: checking for gio-2.0 >= 2.22
 0:11.71 DEBUG: configure:10373: checking MOZ_GIO_CFLAGS
 0:11.71 DEBUG: configure:10378: checking MOZ_GIO_LIBS
 0:11.71 DEBUG: configure:10453: checking for gconf-2.0 >= 1.2.1 gobject-2.0
 0:11.71 DEBUG: configure:10460: checking MOZ_GCONF_CFLAGS
 0:11.71 DEBUG: configure:10465: checking MOZ_GCONF_LIBS
 0:11.71 DEBUG: configure:10726: checking for dbus-1 >= 0.60
 0:11.71 DEBUG: configure:10733: checking MOZ_DBUS_CFLAGS
 0:11.71 DEBUG: configure:10738: checking MOZ_DBUS_LIBS
 0:11.71 DEBUG: configure:10778: checking for dbus-glib-1 >= 0.60
 0:11.71 DEBUG: configure:10785: checking MOZ_DBUS_GLIB_CFLAGS
 0:11.71 DEBUG: configure:10790: checking MOZ_DBUS_GLIB_LIBS
 0:11.71 DEBUG: configure:10894: /usr/bin/gcc -std=gnu99 -c -flifetime-dse=1  -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -msse2 -mfpmath=sse -pthread  conftest.c 1>&5
 0:11.71 DEBUG: configure:11594: checking for alsa
 0:11.71 DEBUG: configure:11601: checking MOZ_ALSA_CFLAGS
 0:11.71 DEBUG: configure:11606: checking MOZ_ALSA_LIBS
 0:11.71 DEBUG: configure:12307: checking for wget
 0:11.71 DEBUG: configure:12632: checking for valid C compiler optimization flags
 0:11.71 DEBUG: configure:12643: /usr/bin/gcc -std=gnu99 -c -flifetime-dse=1  -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -msse2 -mfpmath=sse -pthread -O2  conftest.c 1>&5
 0:11.71 ERROR: old-configure failed
 0:11.73 *** Fix above errors and then restart with\
 0:11.74                "/usr/bin/gmake -f client.mk build"
 0:11.74 gmake: *** [client.mk:378: configure] Error 1

The script '/tmp/subscript.coYWgu' contains the following bad script:

#!/bin/sh
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Welcome to the new world of configure. We're working on moving to a
# python based configure. In the meanwhile, remains of the old autoconf
# based configure is in old-configure.in.
# If you need to add something, please come talk to the build system
# peers for now.
#
# Because adding a configure file in the tree is going to conflict with
# existing configure files in people's (and automation) work trees, and
# because some automation jobs are still running autoconf and configure
# "manually", this file is actually an m4 file that is processed by
# autoconf, but doesn't call any autoconf macros. The `divert` line
# below ensures the script that follows is output by autoconf.
: "#!/bin/sh

SRCDIR=$(dirname $0)
TOPSRCDIR="$SRCDIR"
export OLD_CONFIGURE="$SRCDIR"/old-configure

which python2.7 > /dev/null && exec python2.7 "$TOPSRCDIR/configure.py" "$@" || exec python "$TOPSRCDIR/configure.py" "$@"

If i comment out the line

: "divert(0)dnl"

in 'uxp/configure.in' at line #10, then it dies with Python errors, that environmental variables 'wget' and 'dummy' are not uppercase...

I tried to use older RELBASE files, like 20210823, but it yielded the same results.

I tried to use both Python 2.7 and 3.9. Made no difference...
Compiler is GCC 10.2.1. OS is Devuan 4 on AMD64.

2 (edited by zapper 2023-05-13 19:32:56)

Re: Impossible to compile IceWeasel-UXP 3.1

tch wrote:

I am trying to compile IceWeasel-UXP 3.1 with this script:

#!/bin/sh
cd /tmp

ANAME="RB_20230320.tar.gz"
wget "[url=https://repo.palemoon.org/MoonchildProductions/UXP/archive/$ANAME]https://repo.palemoon.org/MoonchildProductions/UXP/archive/""$ANAME[/url]" -O "$ANAME"
tar xzf "$ANAME"
rm "$ANAME"

cd uxp
mkdir application
cd application

ANAME="iceweasel-uxp-3.1.tar.gz"
wget "[url=https://repo.hyperbola.info:50000/other/iceweasel-uxp/$ANAME]https://repo.hyperbola.info:50000/other/iceweasel-uxp/""$ANAME[/url]" -O "$ANAME"
tar xzf "$ANAME"
rm "$ANAME"
mv "iceweasel-uxp-""$2" iceweasel-uxp

cd ..
echo 'mk_add_options AUTOCLOBBER=1' > .mozconfig
echo 'mk_add_options MOZ_MAKE_FLAGS="-j7"' >> .mozconfig
echo 'ac_add_options --enable-application=iceweasel-uxp' >> .mozconfig
echo 'ac_add_options --enable-default-toolkit=cairo-gtk2' >> .mozconfig
echo 'ac_add_options --enable-alsa' >> .mozconfig
echo 'ac_add_options --disable-pulseaudio' >> .mozconfig
echo 'ac_add_options --enable-optimize=-O2' >> .mozconfig
echo 'ac_add_options --enable-strip' >> .mozconfig
echo 'ac_add_options --disable-debug' >> .mozconfig
echo 'ac_add_options --enable-release' >> .mozconfig
echo 'ac_add_options --disable-sync' >> .mozconfig
echo 'ac_add_options --disable-verify-mar' >> .mozconfig
echo 'ac_add_options --disable-updater' >> .mozconfig
echo 'ac_add_options --disable-crashreporter' >> .mozconfig
echo 'ac_add_options --disable-maintenance-service' >> .mozconfig
echo 'ac_add_options --disable-tests' >> .mozconfig
echo 'ac_add_options --disable-ipdl-tests' >> .mozconfig
sed -i "s/die('Cannot find project %s', build_app)/fake = 0/g" build/moz.configure/init.configure

./mach build
./mach package
cp ./obj-x86_64-pc-linux-gnu/dist/iceweasel-uxp-*.tar.bz2 /opt/

cd ..
rm -rf ./uxp

cd /opt
tar -xjvf iceweasel-uxp-*.tar.bz2
mv iceweasel-uxp-*.tar.bz2 /a/UTILDISK/UPGRADE/iceweasel-uxp/

It dies with these errors:

 0:11.56 checking for alsa... yes
 0:11.56 checking MOZ_ALSA_CFLAGS...
 0:11.56 checking MOZ_ALSA_LIBS... -lasound
 0:11.58 /tmp/uxp/old-configure: 12143: test: Illegal number:
 0:11.60 /tmp/uxp/old-configure: 12203: test: Illegal number:
 0:11.60 checking for wget... wget
 0:11.64 checking for valid C compiler optimization flags... yes
 0:11.69 /tmp/uxp/old-configure: 71: /tmp/subscript.coYWgu: Syntax error: Unterminated quoted string
 0:11.71 DEBUG: <truncated - see config.log for full output>
 0:11.71 DEBUG: configure:10325: checking _GTKCHECK_LIBS
 0:11.71 DEBUG: configure:10366: checking for gio-2.0 >= 2.22
 0:11.71 DEBUG: configure:10373: checking MOZ_GIO_CFLAGS
 0:11.71 DEBUG: configure:10378: checking MOZ_GIO_LIBS
 0:11.71 DEBUG: configure:10453: checking for gconf-2.0 >= 1.2.1 gobject-2.0
 0:11.71 DEBUG: configure:10460: checking MOZ_GCONF_CFLAGS
 0:11.71 DEBUG: configure:10465: checking MOZ_GCONF_LIBS
 0:11.71 DEBUG: configure:10726: checking for dbus-1 >= 0.60
 0:11.71 DEBUG: configure:10733: checking MOZ_DBUS_CFLAGS
 0:11.71 DEBUG: configure:10738: checking MOZ_DBUS_LIBS
 0:11.71 DEBUG: configure:10778: checking for dbus-glib-1 >= 0.60
 0:11.71 DEBUG: configure:10785: checking MOZ_DBUS_GLIB_CFLAGS
 0:11.71 DEBUG: configure:10790: checking MOZ_DBUS_GLIB_LIBS
 0:11.71 DEBUG: configure:10894: /usr/bin/gcc -std=gnu99 -c -flifetime-dse=1  -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -msse2 -mfpmath=sse -pthread  conftest.c 1>&5
 0:11.71 DEBUG: configure:11594: checking for alsa
 0:11.71 DEBUG: configure:11601: checking MOZ_ALSA_CFLAGS
 0:11.71 DEBUG: configure:11606: checking MOZ_ALSA_LIBS
 0:11.71 DEBUG: configure:12307: checking for wget
 0:11.71 DEBUG: configure:12632: checking for valid C compiler optimization flags
 0:11.71 DEBUG: configure:12643: /usr/bin/gcc -std=gnu99 -c -flifetime-dse=1  -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -msse2 -mfpmath=sse -pthread -O2  conftest.c 1>&5
 0:11.71 ERROR: old-configure failed
 0:11.73 *** Fix above errors and then restart with\
 0:11.74                "/usr/bin/gmake -f client.mk build"
 0:11.74 gmake: *** [client.mk:378: configure] Error 1

The script '/tmp/subscript.coYWgu' contains the following bad script:

#!/bin/sh
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at [url]http://mozilla.org/MPL/2.0/.[/url]
#
# Welcome to the new world of configure. We're working on moving to a
# python based configure. In the meanwhile, remains of the old autoconf
# based configure is in old-configure.in.
# If you need to add something, please come talk to the build system
# peers for now.
#
# Because adding a configure file in the tree is going to conflict with
# existing configure files in people's (and automation) work trees, and
# because some automation jobs are still running autoconf and configure
# "manually", this file is actually an m4 file that is processed by
# autoconf, but doesn't call any autoconf macros. The `divert` line
# below ensures the script that follows is output by autoconf.
: "#!/bin/sh

SRCDIR=$(dirname $0)
TOPSRCDIR="$SRCDIR"
export OLD_CONFIGURE="$SRCDIR"/old-configure

which python2.7 > /dev/null && exec python2.7 "$TOPSRCDIR/configure.py" "$@" || exec python "$TOPSRCDIR/configure.py" "$@"

If i comment out the line

: "divert(0)dnl"

in 'uxp/configure.in' at line #10, then it dies with Python errors, that environmental variables 'wget' and 'dummy' are not uppercase...

I tried to use older RELBASE files, like 20210823, but it yielded the same results.

I tried to use both Python 2.7 and 3.9. Made no difference...
Compiler is GCC 10.2.1. OS is Devuan 4 on AMD64.

Which operating system are you using? If you are using Hyperbola, there are changes you might not have, such as, dbus is not needed and gio same thing.

ac_add_options --prefix=/usr
ac_add_options --enable-release
ac_add_options --enable-gold
ac_add_options --enable-pie

# Iceweasel-UXP
ac_add_options --enable-application=application/iceweasel-uxp
ac_add_options --disable-official-branding
ac_add_options --with-branding=application/iceweasel-uxp/branding/iceweasel
export MOZILLA_OFFICIAL=0
export MOZ_TELEMETRY_REPORTING=0
export MOZ_ADDON_SIGNING=1
export MOZ_REQUIRE_SIGNING=0

# Disable bloat
ac_add_options --disable-safe-browsing
ac_add_options --disable-url-classifier
ac_add_options --disable-eme
#ac_add_options --disable-webspeech
#ac_add_options --disable-webspeechtestbackend
ac_add_options --disable-mozril-geoloc
ac_add_options --disable-nfc
ac_add_options --disable-synth-pico
ac_add_options --disable-gamepad
ac_add_options --disable-startup-notification
ac_add_options --disable-tests
ac_add_options --disable-necko-wifi
ac_add_options --disable-dbus
ac_add_options --disable-userinfo
ac_add_options --disable-sync
ac_add_options --disable-pulseaudio

# System libraries
#ac_add_options --with-system-nspr # keep disabled for stability
#ac_add_options --with-system-nss # keep disabled for stability
#ac_add_options --with-system-icu
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --enable-system-hunspell
#ac_add_options --enable-system-sqlite # keep disabled for stability
ac_add_options --enable-system-ffi
ac_add_options --enable-system-pixman

# Features
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-gconf
ac_add_options --enable-proxy-bypass-protection
ac_add_options --disable-crashreporter
ac_add_options --disable-alsa
ac_add_options --enable-sndio
ac_add_options --disable-updater

STRIP_FLAGS="--strip-debug"

# Other
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/moz-objdir

# vim:set ft=sh:

This is what the mozconfig for making iceweasel needs to look like aka.

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

3 (edited by tch 2023-05-15 17:49:50)

Re: Impossible to compile IceWeasel-UXP 3.1

zapper wrote:

Which operating system are you using?

It wrote it in my post: Devuan 4 on AMD64. Do i still have to disable gconf and dbus?
What does enabling 'gold' do? And 'pie'? Position Independent Executable? Isn't that default?

Off: I checked notifications in for this topic, but i got no emails.

4

Re: Impossible to compile IceWeasel-UXP 3.1

tch wrote:
zapper wrote:

Which operating system are you using?

It wrote it in my post: Devuan 4 on AMD64. Do i still have to disable gconf and dbus?
What does enabling 'gold' do? And 'pie'? Position Independent Executable? Isn't that default?

Off: I checked notifications in for this topic, but i got no emails.

I don't know the specifics, but disabling gconf and dbus would remove bloat and probably add some speed even if its not needed for anything else.

I should add, been trying to contact the author of iceweasel-uxp and icedove-uxp.

Alas, he not available currently...

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

5

Re: Impossible to compile IceWeasel-UXP 3.1

Okay, my current '.mozconfig' file is this:

STRIP_FLAGS="--strip-debug"
export MOZILLA_OFFICIAL=0
export MOZ_TELEMETRY_REPORTING=0
export MOZ_ADDON_SIGNING=1
export MOZ_REQUIRE_SIGNING=0
mk_add_options AUTOCLOBBER=1
mk_add_options MOZ_MAKE_FLAGS="-j7"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/moz-objdir
ac_add_options --enable-application=iceweasel-uxp
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --enable-alsa
ac_add_options --disable-pulseaudio
ac_add_options --enable-optimize=-O2
ac_add_options --enable-strip
ac_add_options --disable-debug
ac_add_options --enable-release
ac_add_options --disable-sync
ac_add_options --disable-verify-mar
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
ac_add_options --disable-mozril-geoloc
ac_add_options --disable-nfc
ac_add_options --disable-synth-pico
ac_add_options --disable-gamepad
ac_add_options --disable-startup-notification
ac_add_options --disable-necko-wifi
ac_add_options --disable-dbus
ac_add_options --disable-userinfo
ac_add_options --disable-maintenance-service
ac_add_options --disable-tests
ac_add_options --disable-ipdl-tests
ac_add_options --disable-safe-browsing
ac_add_options --disable-url-classifier
ac_add_options --disable-eme
ac_add_options --disable-gconf
ac_add_options --disable-dbus
ac_add_options --enable-pie
ac_add_options --enable-gold

I had to remove 'ac_add_options --enable-proxy-bypass-protection', because it has caused an error:

 0:01.33 Traceback (most recent call last):
 0:01.33   File "/tmp/uxp/configure.py", line 107, in <module>
 0:01.33     sys.exit(main(sys.argv))
 0:01.33   File "/tmp/uxp/configure.py", line 26, in main
 0:01.33     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
 0:01.33   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 360, in run
 0:01.33     raise InvalidOptionError('Unknown option: %s' % without_value)
 0:01.33 mozbuild.configure.options.InvalidOptionError: Unknown option: --enable-proxy-bypass-protection
 0:01.35 *** Fix above errors and then restart with\
 0:01.35                "/usr/bin/gmake -f client.mk build"
 0:01.35 gmake: *** [client.mk:378: configure] Error 1

After i've removed that, it died with the same error messages as before:

 0:09.88 checking MOZ_ALSA_CFLAGS...
 0:09.88 checking MOZ_ALSA_LIBS... -lasound
 0:09.90 /tmp/uxp/old-configure: 12143: test: Illegal number:
 0:09.91 /tmp/uxp/old-configure: 12203: test: Illegal number:
 0:09.91 checking for wget... wget
 0:09.95 checking for valid C compiler optimization flags... yes
 0:10.01 /tmp/uxp/old-configure: 71: /tmp/subscript.sY01ZX: Syntax error: Unterminated quoted string
 0:10.02 DEBUG: <truncated - see config.log for full output>
 0:10.02 DEBUG: configure:9170: checking for valloc in malloc.h
 0:10.02 DEBUG: configure:9195: checking for valloc in unistd.h
 0:10.02 DEBUG: configure:9337: checking NSPR selection
 0:10.02 DEBUG: configure:9858: checking if app-specific confvars.sh exists
 0:10.02 DEBUG: configure:10023: checking for gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0
 0:10.02 DEBUG: configure:10030: checking MOZ_GTK2_CFLAGS
 0:10.02 DEBUG: configure:10035: checking MOZ_GTK2_LIBS
 0:10.02 DEBUG: configure:10313: checking for gtk+-2.0 >= 2.14
 0:10.03 DEBUG: configure:10320: checking _GTKCHECK_CFLAGS
 0:10.03 DEBUG: configure:10325: checking _GTKCHECK_LIBS
 0:10.03 DEBUG: configure:10366: checking for gio-2.0 >= 2.22
 0:10.03 DEBUG: configure:10373: checking MOZ_GIO_CFLAGS
 0:10.03 DEBUG: configure:10378: checking MOZ_GIO_LIBS
 0:10.03 DEBUG: configure:10894: /usr/bin/gcc -std=gnu99 -c -flifetime-dse=1  -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -msse2 -mfpmath=sse -pthread  conftest.c 1>&5
 0:10.03 DEBUG: configure:11594: checking for alsa
 0:10.03 DEBUG: configure:11601: checking MOZ_ALSA_CFLAGS
 0:10.03 DEBUG: configure:11606: checking MOZ_ALSA_LIBS
 0:10.03 DEBUG: configure:12307: checking for wget
 0:10.03 DEBUG: configure:12632: checking for valid C compiler optimization flags
 0:10.03 DEBUG: configure:12643: /usr/bin/gcc -std=gnu99 -c -flifetime-dse=1  -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pipe -msse2 -mfpmath=sse -pthread -O2  conftest.c 1>&5
 0:10.03 ERROR: old-configure failed
 0:10.05 *** Fix above errors and then restart with\
 0:10.05                "/usr/bin/gmake -f client.mk build"
 0:10.05 gmake: *** [client.mk:378: configure] Error 1

6

Re: Impossible to compile IceWeasel-UXP 3.1

Okay, i've traced the version of the change what causes the problem:
https://repo.palemoon.org/MoonchildProd … ses?page=4

Here, Pale Moon 28.8.4 works and the next release UXP - March 24, 2020 is not. Although it dies with other error messages than the newer ones:

 0:03.84 Traceback (most recent call last):
 0:03.84   File "/tmp/uxp/configure.py", line 107, in <module>
 0:03.84     sys.exit(main(sys.argv))
 0:03.84   File "/tmp/uxp/configure.py", line 26, in main
 0:03.84     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 334, in run
 0:03.84     self.include_file(path)
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 325, in include_file
 0:03.84     exec_(code, self)
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/util.py", line 59, in exec_
 0:03.84     exec(object, globals, locals)
 0:03.84   File "/tmp/uxp/moz.configure", line 7, in <module>
 0:03.84     include('build/moz.configure/init.configure')
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 627, in include_impl
 0:03.84     self.include_file(what)
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 325, in include_file
 0:03.84     exec_(code, self)
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/util.py", line 59, in exec_
 0:03.84     exec(object, globals, locals)
 0:03.84   File "/tmp/uxp/build/moz.configure/init.configure", line 653, in <module>
 0:03.84     @depends(include_project_configure, check_build_environment, '--help')
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 610, in decorator
 0:03.84     depends = DependsFunction(self, func, dependencies, when=when)
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 69, in __init__
 0:03.84     sandbox._value_for(self)
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 406, in _value_for
 0:03.84     return self._value_for_depends(obj, need_help_dependency)
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/util.py", line 925, in method_call
 0:03.84     cache[args] = self.func(instance, *args)
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 416, in _value_for_depends
 0:03.84     return obj.result
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/util.py", line 943, in __get__
 0:03.84     setattr(instance, name, self.func(instance))
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 90, in result
 0:03.84     return self.func(*resolved_args)
 0:03.84   File "/tmp/uxp/python/mozbuild/mozbuild/configure/__init__.py", line 932, in wrapped
 0:03.84     return new_func(*args, **kwargs)
 0:03.84   File "/tmp/uxp/build/moz.configure/init.configure", line 656, in build_project
 0:03.85     build_env.topsrcdir))
 0:03.85   File "/tmp/uxp/python/mozbuild/mozpack/path.py", line 31, in relpath
 0:03.85     rel = normsep(os.path.relpath(path, start))
 0:03.85   File "/tmp/uxp/moz-objdir/_virtualenv/lib/python2.7/posixpath.py", line 435, in relpath
 0:03.85     raise ValueError("no path specified")
 0:03.85 ValueError: no path specified
 0:03.85 *** Fix above errors and then restart with\
 0:03.85                "/usr/bin/gmake -f client.mk build"
 0:03.85 gmake: *** [client.mk:378: configure] Error 1
 0:00.15 /usr/bin/gmake -C . -j7 -s -w package
 0:00.16 gmake: Entering directory '/tmp/uxp/moz-objdir'
 0:00.16 gmake: *** No rule to make target 'package'.  Stop.
 0:00.16 gmake: Leaving directory '/tmp/uxp/moz-objdir'

So, the last UXP which is suitable for IceWeasel-UXP to build is PM 28.8.4, which is more than three years old.

7

Re: Impossible to compile IceWeasel-UXP 3.1

I take that back. It is true, that it gets through configuration and starts to build, but then it dies:

20:33.58 /tmp/uxp/moz-objdir/dist/include/js/HashTable.h:1249:54:   required from ‘static js::detail::HashTable<T, HashPolicy, AllocPolicy>::Entry* js::detail::HashTable<T, HashPolicy, AllocPolicy>::createTable(AllocPolicy&, uint32_t, js::detail::HashTable<T, HashPolicy, AllocPolicy>::FailureBehavior) [with T = js::HashMapEntry<JS::Value, unsigned int>; HashPolicy = js::HashMap<JS::Value, unsigned int, js::jit::LIRGraph::ValueHasher, js::jit::JitAllocPolicy>::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; js::detail::HashTable<T, HashPolicy, AllocPolicy>::Entry = js::detail::HashTableEntry<js::HashMapEntry<JS::Value, unsigned int> >; uint32_t = unsigned int]’
20:33.58 /tmp/uxp/moz-objdir/dist/include/js/HashTable.h:1317:28:   required from ‘bool js::detail::HashTable<T, HashPolicy, AllocPolicy>::init(uint32_t) [with T = js::HashMapEntry<JS::Value, unsigned int>; HashPolicy = js::HashMap<JS::Value, unsigned int, js::jit::LIRGraph::ValueHasher, js::jit::JitAllocPolicy>::MapHashPolicy; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]’
20:33.58 /tmp/uxp/moz-objdir/dist/include/js/HashTable.h:92:65:   required from ‘bool js::HashMap<Key, Value, HashPolicy, AllocPolicy>::init(uint32_t) [with Key = JS::Value; Value = unsigned int; HashPolicy = js::jit::LIRGraph::ValueHasher; AllocPolicy = js::jit::JitAllocPolicy; uint32_t = unsigned int]’
20:33.58 /tmp/uxp/js/src/jit/LIR.h:1801:38:   required from here
20:33.58 Warning: -Wclass-memaccess in /tmp/uxp/js/src/jit/JitAllocPolicy.h: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘class js::detail::HashTableEntry<js::HashMapEntry<JS::Value, unsigned int> >’ with no trivial copy-assignment
20:33.58 /tmp/uxp/js/src/jit/JitAllocPolicy.h:102:19: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘class js::detail::HashTableEntry<js::HashMapEntry<JS::Value, unsigned int> >’ with no trivial copy-assignment [-Wclass-memaccess]
20:33.59   102 |             memset(p, 0, numElems * sizeof(T));
20:33.59       |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
20:33.59 In file included from /tmp/uxp/moz-objdir/dist/include/js/TracingAPI.h:12,
20:33.59                  from /tmp/uxp/moz-objdir/dist/include/js/GCPolicyAPI.h:46,
20:33.59                  from /tmp/uxp/moz-objdir/dist/include/js/GCVector.h:12,
20:33.59                  from /tmp/uxp/js/src/jscntxt.h:15,
20:33.59                  from /tmp/uxp/js/src/jit/JitFrames.h:12,
20:33.59                  from /tmp/uxp/js/src/jit/BaselineFrame.h:10,
20:33.59                  from /tmp/uxp/js/src/jit/BaselineDebugModeOSR.h:10,
20:33.59                  from /tmp/uxp/js/src/jit/BaselineDebugModeOSR.cpp:7,
20:33.59                  from /tmp/uxp/moz-objdir/js/src/Unified_cpp_js_src9.cpp:2:
20:33.59 /tmp/uxp/moz-objdir/dist/include/js/HashTable.h:788:7: note: ‘class js::detail::HashTableEntry<js::HashMapEntry<JS::Value, unsigned int> >’ declared here
20:33.59   788 | class HashTableEntry
20:33.59       |       ^~~~~~~~~~~~~~
20:48.41 libjs_static.a
20:49.52 gmake[3]: *** [/tmp/uxp/config/recurse.mk:33: compile] Error 2
20:49.52 gmake[2]: *** [/tmp/uxp/config/rules.mk:494: default] Error 2
20:49.52 gmake[1]: *** [/tmp/uxp/client.mk:414: realbuild] Error 2
20:49.52 gmake: *** [client.mk:170: build] Error 2
20:49.54 605 compiler warnings present.
20:49.64 Notification center failed: Install the python dbus module to get a notification when the build finishes.

8

Re: Impossible to compile IceWeasel-UXP 3.1

Any manuals, ideas, how can i compile IW-UXP on Linux?

9

Re: Impossible to compile IceWeasel-UXP 3.1

The current version of GCC for Hyperbola Stable is 8.4.0-5, and the one for Python3 is 3.8.5-1. But you seem to be using versions that are more recent, perhaps that is the issue. However, the version of iceweasel-uxp on Hyperbola's repositories seems to be 3.0, not 3.1, so maybe your version of the web browser supports more recent compilers.

10 (edited by zapper 2023-05-25 20:25:37)

Re: Impossible to compile IceWeasel-UXP 3.1

tch wrote:

Any manuals, ideas, how can i compile IW-UXP on Linux?

I have two patches I could send you, but they need some modification just to warn you, because some no longer apply.

Just a heads up.

the icedove one, might need other changes beyond just the outdated aspect, but the iceweasel one should be good enough if the outdated parts are fixed.

If you could post newer more refined patches that would be enormously helpful!

If not, w/e.

wink

https://upload.disroot.org/r/YEFHDeXP#K … km5S+BPRo=

Almost forgot to provide link

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

11 (edited by tch 2023-06-10 10:11:55)

Re: Impossible to compile IceWeasel-UXP 3.1

MamãoMutante wrote:

The current version of GCC for Hyperbola Stable is 8.4.0-5, and the one for Python3 is 3.8.5-1. But you seem to be using versions that are more recent, perhaps that is the issue. However, the version of iceweasel-uxp on Hyperbola's repositories seems to be 3.0, not 3.1, so maybe your version of the web browser supports more recent compilers.

My error messages were either Python or Shell error messages. I doubt that this has anything to do with GCC 10.

zapper wrote:
tch wrote:

Any manuals, ideas, how can i compile IW-UXP on Linux?

I have two patches I could send you, but they need some modification just to warn you, because some no longer apply.

Just a heads up.

the icedove one, might need other changes beyond just the outdated aspect, but the iceweasel one should be good enough if the outdated parts are fixed.

If you could post newer more refined patches that would be enormously helpful!

If not, w/e.

wink

https://upload.disroot.org/r/YEFHDeXP#K … km5S+BPRo=

Almost forgot to provide link

Thanks for the patch. Although it did not help.

Why IceWeasel-UXP needs autoconf 2.13, why cannot it work with 2.69?

Update: By installing autoconf 2.13 and putting this line into .mozconfig:

export AUTOCONF="/usr/bin/autoconf2.13"

It builds successfully, but with warnings and ./mach package still fails. Also, while ./mach run works and the browser starts, the "hamburger" menu on the right side does not work.

The warnings:

22:13.94 /tmp/uxp/application/iceweasel-uxp/branding/iceweasel/pref/iceweasel-uxp-branding.js: WARNING: no preprocessor directives found
22:14.02 tab-selected-start.svg
22:14.51 /tmp/uxp/application/iceweasel-uxp/components/customizableui/CustomizableUI.jsm: WARNING: no preprocessor directives found
22:14.64 /tmp/uxp/application/iceweasel-uxp/components/search/service/nsSearchService.js: WARNING: no preprocessor directives found
22:21.08 /tmp/uxp/application/iceweasel-uxp/base/content/tab-content.js: WARNING: no preprocessor directives found
22:21.13 /tmp/uxp/application/iceweasel-uxp/base/content/urlbarBindings.xml: WARNING: no preprocessor directives found
22:21.81 /tmp/uxp/application/iceweasel-uxp/components/preferences/in-content/content.js: WARNING: no preprocessor directives found
22:24.02 /tmp/uxp/application/iceweasel-uxp/themes/linux/findBar.css: WARNING: no preprocessor directives found

The errors of ./mach package:

 0:00.14 /usr/bin/gmake -C . -j7 -s -w package
 0:00.14 gmake: Entering directory '/tmp/uxp/moz-objdir'
 0:00.17 gmake[1]: Entering directory '/tmp/uxp/moz-objdir/application/iceweasel-uxp/installer'
 0:00.20 gmake[2]: Entering directory '/tmp/uxp/moz-objdir/application/iceweasel-uxp/installer'
 0:00.21 gmake[3]: Entering directory '/tmp/uxp/moz-objdir/application/iceweasel-uxp/installer'
 0:00.42 Error: /tmp/uxp/application/iceweasel-uxp/installer/package-manifest.in:415: Missing file(s): bin/components/mozProtocolHandler.js
 0:00.42 Error: /tmp/uxp/application/iceweasel-uxp/installer/package-manifest.in:416: Missing file(s): bin/components/mozProtocolHandler.manifest
 0:00.42 Error: /tmp/uxp/application/iceweasel-uxp/installer/package-manifest.in:435: Missing file(s): bin/components/CSSUnprefixingService.js
 0:00.42 Error: /tmp/uxp/application/iceweasel-uxp/installer/package-manifest.in:436: Missing file(s): bin/components/CSSUnprefixingService.manifest
 0:00.48 Error: /tmp/uxp/application/iceweasel-uxp/installer/package-manifest.in:508: Missing file(s): bin/components/privatebrowsing.xpt
 0:00.48 Error: /tmp/uxp/application/iceweasel-uxp/installer/package-manifest.in:509: Missing file(s): bin/components/PrivateBrowsing.manifest
 0:00.48 Error: /tmp/uxp/application/iceweasel-uxp/installer/package-manifest.in:510: Missing file(s): bin/components/PrivateBrowsingTrackingProtectionWhitelist.js
 0:00.98 Traceback (most recent call last):
 0:00.98   File "/tmp/uxp/toolkit/mozapps/installer/packager.py", line 423, in <module>
 0:00.98     main()
 0:00.98   File "/tmp/uxp/toolkit/mozapps/installer/packager.py", line 374, in main
 0:00.98     copier.add(mozpath.join(respath, 'removed-files'), removals)
 0:00.98   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
 0:00.98     self.gen.next()
 0:00.98   File "/tmp/uxp/python/mozbuild/mozpack/errors.py", line 131, in accumulate
 0:00.99     raise AccumulatedErrors()
 0:00.99 mozpack.errors.AccumulatedErrors
 0:01.00 gmake[3]: *** [/tmp/uxp/toolkit/mozapps/installer/packager.mk:41: stage-package] Error 1
 0:01.00 gmake[3]: Leaving directory '/tmp/uxp/moz-objdir/application/iceweasel-uxp/installer'
 0:01.00 gmake[2]: *** [/tmp/uxp/toolkit/mozapps/installer/packager.mk:82: make-package] Error 2
 0:01.00 gmake[2]: Leaving directory '/tmp/uxp/moz-objdir/application/iceweasel-uxp/installer'
 0:01.00 gmake[1]: *** [/tmp/uxp/config/rules.mk:494: default] Error 2
 0:01.00 gmake[1]: Leaving directory '/tmp/uxp/moz-objdir/application/iceweasel-uxp/installer'
 0:01.00 gmake: *** [/tmp/uxp/application/iceweasel-uxp/build.mk:9: package] Error 2
 0:01.00 gmake: Leaving directory '/tmp/uxp/moz-objdir'

12

Re: Impossible to compile IceWeasel-UXP 3.1

Found out his repo has stuff here: https://pagure.io/user/g4jc/projects

git clone the needed ones, uxp_overlays and it should be easier/more precise.

Only thing missing on that is the mozconfig ones. That I gave you.

Also, if a patch doesn't apply, I found a solution:

git apply --reject your.patch

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

13

Re: Impossible to compile IceWeasel-UXP 3.1

Made no difference, yielded the same results.

14

Re: Impossible to compile IceWeasel-UXP 3.1

tch wrote:

Made no difference, yielded the same results.

Seems I spoke too soon, same here.

I thought it would be enough, but I think this problem is a hyperbola problem possibly and not a patch problem.

Or if not that actually, it might be a UXP problem.

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

15

Re: Impossible to compile IceWeasel-UXP 3.1

I've reported this issue at the repo you've linked.

16 (edited by zapper 2023-06-17 01:15:26)

Re: Impossible to compile IceWeasel-UXP 3.1

Btw, I don't know if you know, but I am the same person from devuan who said you spelled thc wrong. tongue

But as a serious note, I hope your report helps gets a good answer.

Out of curiosity, did you mention that uxp-overlays doesn't have any mozconfig files in the mail and web browser parts?

Last edit:

I wonder if I should report that uxp overlays has no mozconfig in it, for either icedove or iceweasel

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

17

Re: Impossible to compile IceWeasel-UXP 3.1

Yes, i remember; you won a bucket of footsmell for being the 1,000,000th person who made a joke about it. You used it against dwarves.

Thanks, i already got an answer and a patch; i am actually writing this post from my freshly compiled and packaged IceWeasel-UXP.

I did not mention that, because i've no idea what did that mean...

18 (edited by zapper 2023-06-20 20:40:11)

Re: Impossible to compile IceWeasel-UXP 3.1

tch wrote:

Yes, i remember; you won a bucket of footsmell for being the 1,000,000th person who made a joke about it. You used it against dwarves.

Thanks, i already got an answer and a patch; i am actually writing this post from my freshly compiled and packaged IceWeasel-UXP.

I did not mention that, because i've no idea what did that mean...

You have no idea how much that response tickled me when I first saw it.  ;P

Btw, you saying you made a pkgbuild of the newest iceweasel-uxp? Or a deb one?


I got it running too, but not via pkgbuild. I can't figure it out for some reason. Not sure what I would need to change.

The only other thing I can think of, is, you planning to try to do the same with icedove-uxp?

I tried to compile it, but got nowhere fast due to some issues. Anywho, that's all I had to say.

Well except actually, one other thing...

mozconfig is needed to make specific changes in iceweasel-uxp and icedove-uxp, to build them correctly. That's what I meant.

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!