Page 1 of 1

Build Fails: mozbuild.configure.options.InvalidOptionError: Unknown option: --enable-phoenix-extensions

Posted: 2021-04-21, 20:38
by miroR
I compile Pale Moon without issues usually, but this time I hit a snag.
I updated my git as per http://developer.palemoon.org/build/linux/ and I checked out:

Code: Select all

git checkout 29.2.0_RC1 && git submodule update
I received:

Code: Select all

HEAD is now at c96ecda25 Back-end branch pointer update and version bump for release.
M       platform
Submodule path 'platform': checked out 'b83c7c786566f565c82bfcb86747dd08794066d6'
But, upon starting to compile, trouble. Here's the log:
./mach build

Code: Select all

 0:01.55 /usr/bin/gmake -f client.mk -s configure
 0:02.58 Clobber not needed.
 0:03.54 Generating /Cmn/git/Pale-Moon/configure
 0:03.57 Generating /Cmn/git/Pale-Moon/platform/configure
 0:03.58 Generating /Cmn/git/Pale-Moon/platform/js/src/configure
 0:03.59 cd /Cmn/git/Pale-Moon/obj-x86_64-pc-linux-gnu
 0:03.59 /Cmn/git/Pale-Moon/configure
 0:05.88 Creating Python environment
 0:08.33 New python executable in /Cmn/git/Pale-Moon/obj-x86_64-pc-linux-gnu/_virtualenv/bin/python2.7
 0:08.33 Also creating executable in /Cmn/git/Pale-Moon/obj-x86_64-pc-linux-gnu/_virtualenv/bin/python
 0:08.33 Installing setuptools, pip, wheel...done.
 0:10.37 running build_ext
 0:10.37 building 'psutil._psutil_linux' extension
 0:10.37 creating build
 0:10.37 creating build/temp.linux-x86_64-2.7
 0:10.37 creating build/temp.linux-x86_64-2.7/psutil
 0:10.37 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_VERSION=311 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
 0:10.37 creating build/lib.linux-x86_64-2.7
 0:10.37 creating build/lib.linux-x86_64-2.7/psutil
 0:10.38 x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o -o build/lib.linux-x86_64-2.7/psutil/_psutil_linux.so
 0:10.38 building 'psutil._psutil_posix' extension
 0:10.38 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o
 0:10.38 x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o -o build/lib.linux-x86_64-2.7/psutil/_psutil_posix.so
 0:10.38 copying build/lib.linux-x86_64-2.7/psutil/_psutil_linux.so -> psutil
 0:10.38 copying build/lib.linux-x86_64-2.7/psutil/_psutil_posix.so -> psutil
 0:10.38 
 0:10.38 Reexecuting in the virtualenv
 0:10.61 Adding configure options from /Cmn/git/Pale-Moon/.mozconfig
 0:10.61   --enable-application=palemoon
 0:10.61   --enable-optimize=-O2 -w
 0:10.61   --enable-default-toolkit=cairo-gtk2
 0:10.61   --enable-jemalloc
 0:10.61   --enable-strip
 0:10.62   --enable-devtools
 0:10.62   --disable-eme
 0:10.62   --disable-webrtc
 0:10.62   --disable-gamepad
 0:10.62   --disable-tests
 0:10.62   --disable-debug
 0:10.62   --disable-necko-wifi
 0:10.62   --disable-updater
 0:10.62   --with-pthreads
 0:10.62   --enable-official-branding
 0:10.62   --enable-phoenix-extensions
 0:10.62   --x-libraries=/usr/lib64
 0:10.62   MOZ_PKG_SPECIAL=gtk2
 0:10.62   MOZILLA_OFFICIAL=1
 0:10.62   _GTK_VERSION=2
 0:10.62   _BUILD_64=1
 0:10.83 checking for a shell... /bin/sh
 0:10.92 checking for host system type... x86_64-pc-linux-gnu
 0:10.92 checking for target system type... x86_64-pc-linux-gnu
 0:10.92 Traceback (most recent call last):
 0:10.92   File "/Cmn/git/Pale-Moon/configure.py", line 32, in <module>
 0:10.92     sys.exit(main(sys.argv))
 0:10.92   File "/Cmn/git/Pale-Moon/configure.py", line 24, in main
 0:10.92     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
 0:10.92   File "/Cmn/git/Pale-Moon/platform/python/mozbuild/mozbuild/configure/__init__.py", line 360, in run
 0:10.92     raise InvalidOptionError('Unknown option: %s' % without_value)
 0:10.92 mozbuild.configure.options.InvalidOptionError: Unknown option: --enable-phoenix-extensions
 0:10.95 *** Fix above errors and then restart with\
 0:10.95                "/usr/bin/gmake -f client.mk build"
 0:10.95 gmake: *** [client.mk:370: configure] Error 1
My .mozconfig is exactly the usual one from http://developer.palemoon.org/build/linux/.
Sure, the --enable-phoenix-extensions is there, but it always worked previously... So I'm clueless.
I have no idea how to solve this. Anybody has a clue?

Re: Build Fails: mozbuild.configure.options.InvalidOptionError: Unknown option: --enable-phoenix-extensions

Posted: 2021-04-21, 21:02
by New Tobin Paradigm
I haven't updated the build instructions yet because they assume you are building current release and that flag is still valid in the current release. (Not to mention getting all three molars on the lower right extracted on Monday.)

Also, it is CLEARLY stated on the Build Intructions index that you are pretty much on your own when you roll your own build.

The solution is obvious but if you aren't smart enough to work out such a minor triviality then maybe you shouldn't be compiling the codebase.

Re: Build Fails: mozbuild.configure.options.InvalidOptionError: Unknown option: --enable-phoenix-extensions

Posted: 2021-04-21, 21:39
by miroR
Thanks for replying.
New Tobin Paradigm wrote:
2021-04-21, 21:02
I haven't updated the build instructions yet because they assume you are building current release
Yes, I checked out 29.2.0_RC1 as I wrote.
and that flag is still valid in the current release. (Not to mention getting all three molars on the lower right extracted on Monday.)
I hope at least the hurt is gone by now.
Also, it is CLEARLY stated on the Build Intructions index that you are pretty much on your own when you roll your own build.

The solution is obvious but if you aren't smart enough to work out such a minor triviality then maybe you shouldn't be compiling the codebase.
I haven't yet figured it out. But I'll try again later. Thanks anyway. Good night from Europe!

Re: Build Fails: mozbuild.configure.options.InvalidOptionError: Unknown option: --enable-phoenix-extensions

Posted: 2021-04-22, 08:14
by Moonchild
remove it from your .mozconfig

Re: Build Fails: mozbuild.configure.options.InvalidOptionError: Unknown option: --enable-phoenix-extensions

Posted: 2021-04-22, 09:05
by miroR
Moonchild wrote:
2021-04-22, 08:14
remove it from your .mozconfig
Thanks, Master!
I am passed this snag, and my Pale Moon is compiling now.
EDIT: Compiled fine, and now running:

Code: Select all

$ palemoon/palemoon-bin --version
Moonchild Productions Pale Moon 29.2.0
$
(and TLS-keylogging for me without a need for a patch).