Error 1 when building Pale Moon for Windows x64 Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
Theresnothinghere
Moongazer
Moongazer
Posts: 9
Joined: 2023-08-03, 12:19

Error 1 when building Pale Moon for Windows x64

Unread post by Theresnothinghere » 2023-08-03, 13:13

Hi, I've just tried to compile Pale Moon for windows x64 following this guide https://developer.palemoon.org/build/windows/
first with the AVX config and than with the default .mozconfig (with just the Visual Studio paths changed) and both attempts failed with this error:

Code: Select all

0:05.56 UnicodeDecodeError: 'charmap' codec can't decode byte 0x88 in position 124: character maps to <undefined>
0:05.56 *** Fix above errors and then restart with\
0:05.56                "c:/mozilla-build/bin/mozmake.EXE -f client.mk build"
0:05.56 mozmake.EXE: *** [client.mk;370: configure] Error 1
The build environment is a VMware vm with 8GB assigned ram running Windows Server 2016 and Visual Studio Community 2022 + 10.0.22621 SDK
Full CMD log:

Code: Select all

2016@WIN-J11JD0N4CGO /c/palemoon-source
$ ./mach build
 0:00.28 c:\mozilla-build\bin\mozmake.EXE -f client.mk MOZ_PARALLEL_BUILD=6 -s configure
 0:02.19 cd c:/build/obj-pm-x64-avx-release
 0:02.19 c:/palemoon-source/configure
 0:02.61 Reexecuting in the virtualenv
 0:02.81 Adding configure options from c:\palemoon-source\.mozconfig
 0:02.81   --target=x86_64-pc-mingw32
 0:02.81   --host=x86_64-pc-mingw32
 0:02.81   --enable-application=palemoon
 0:02.81   --enable-optimize=-O2 -GTs -GS- -Qspectre -utf-8 -arch:AVX -favor:AMD64
 0:02.81   --enable-official-branding
 0:02.81   --enable-update-channel=release
 0:02.81   --disable-updater
 0:02.81   --disable-precompiled-startupcache
 0:02.81   --enable-jemalloc
 0:02.81   --enable-strip
 0:02.81   --enable-appcompat-guid
 0:02.81   --disable-parental-controls
 0:02.81   --disable-accessibility
 0:02.81   --disable-gamepad
 0:02.81   --disable-eme
 0:02.81   --disable-webrtc
 0:02.81   --enable-av1
 0:02.81   --enable-jxl
 0:02.81   MOZ_PKG_SPECIAL=avx
 0:02.81   MOZILLA_OFFICIAL=1
 0:02.81   MC_OFFICIAL=1
 0:02.81   BUILD_ARCH=x64
 0:02.81   WIN_UCRT_REDIST_DIR=C:\Program Files (x86)\Windows Kits\10\Redist\10.0.22621.0\ucrt\DLLs\x64
 0:02.81   BUILD_64=1
 0:02.81   WIN32_REDIST_DIR=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.36.32532\x64\Microsoft.VC143.CRT
 0:02.90 checking for a shell... C:/mozilla-build/msys/bin/sh.exe
 0:03.05 checking for host system type... x86_64-pc-mingw32
 0:03.16 checking for target system type... x86_64-pc-mingw32
 0:03.16 checking whether cross compiling... no
 0:03.17 checking for pkg_config... not found
 0:03.17 checking for yasm... c:/mozilla-build/bin/yasm.EXE
 0:03.17 checking yasm version... 1.3.0
 0:03.20 checking for the target C compiler... 'C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/bin/HostX64/x64/cl.EXE'
 0:03.36 checking whether the target C compiler can be used... yes
 0:03.36 checking the target C compiler version... 19.36.32537
 0:03.39 checking the target C compiler works... yes
 0:03.39 checking for the target C++ compiler... 'C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/bin/HostX64/x64/cl.EXE'
 0:03.42 checking whether the target C++ compiler can be used... yes
 0:03.42 checking the target C++ compiler version... 19.36.32537
 0:03.44 checking the target C++ compiler works... yes
 0:03.45 checking for the host C compiler... 'C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/bin/HostX64/x64/cl.EXE'
 0:03.47 checking whether the host C compiler can be used... yes
 0:03.47 checking the host C compiler version... 19.36.32537
 0:03.50 checking the host C compiler works... yes
 0:03.50 checking for the host C++ compiler... 'C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/bin/HostX64/x64/cl.EXE'
 0:03.51 checking whether the host C++ compiler can be used... yes
 0:03.51 checking the host C++ compiler version... 19.36.32537
 0:03.55 checking the host C++ compiler works... yes
 0:03.58 checking for 64-bit OS... yes
 0:03.61 checking for Windows SDK... 0x0a00 in 'C:\Program Files (x86)\Windows Kits\10\'
 0:03.61 checking for Universal CRT SDK... 10.0.22621.0 in 'C:\Program Files (x86)\Windows Kits\10\'
 0:03.61 checking for the Debug Interface Access SDK... C:/PROGRA~1/MICROS~1/2022/COMMUN~1/DIA SDK
 0:03.61 checking for mt... 'C:/PROGRA~2/WI3CF2~1/10/bin/100226~1.0/x64/mt.exe'
 0:03.61 checking whether MT is really Microsoft Manifest Tool... yes
 0:03.61 checking for link... 'C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/bin/HostX64/x64/link.exe'
 0:03.64 checking for stdint.h... yes
 0:03.69 checking for inttypes.h... yes
 0:03.72 checking for malloc.h... yes
 0:03.75 checking for alloca.h...
 0:03.75 DEBUG: Creating `c:\users\2016\appdata\local\temp\conftest.auj661.cpp` with content:
 0:03.75 DEBUG: | #include <alloca.h>
 0:03.75 DEBUG: | int
 0:03.75 DEBUG: | main(void)
 0:03.75 DEBUG: | {
 0:03.75 DEBUG: |
 0:03.75 DEBUG: |   ;
 0:03.75 DEBUG: |   return 0;
 0:03.75 DEBUG: | }
 0:03.75 DEBUG: Executing: `cl.EXE -c 'c:\users\2016\appdata\local\temp\conftest.auj661.cpp'`
 0:03.75 DEBUG: The command returned non-zero exit status 2.
 0:03.75 DEBUG: Its output was:
 0:03.75 Traceback (most recent call last):
 0:03.75   File "c:/palemoon-source/configure.py", line 32, in <module>
 0:03.75     sys.exit(main(sys.argv))
 0:03.75   File "c:/palemoon-source/configure.py", line 24, in main
 0:03.75     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
 0:03.75   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 364, in run
 0:03.75     func(*args)
 0:03.75   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 407, in _value_for
 0:03.75     return self._value_for_depends(obj, need_help_dependency)
 0:03.75   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\util.py", line 925, in method_call
 0:03.75     cache[args] = self.func(instance, *args)
 0:03.75   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 417, in _value_for_depends
 0:03.75     return obj.result
 0:03.75   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\util.py", line 943, in __get__
 0:03.75     setattr(instance, name, self.func(instance))
 0:03.75   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 90, in result
 0:03.75     return self.func(*resolved_args)
 0:03.75   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
 0:03.75     return new_func(*args, **kwargs)
 0:03.75   File "c:/palemoon-source/platform/build/moz.configure/util.configure", line 399, in wrapper
 0:03.75     return fn(*args)
 0:03.76   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
 0:03.76     return new_func(*args, **kwargs)
 0:03.76   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 669, in wrapper
 0:03.76     ret = template(*args, **kwargs)
 0:03.76   File "c:/palemoon-source/platform/build/moz.configure/checks.configure", line 52, in wrapped
 0:03.76     ret = func(*args, **kwargs)
 0:03.76   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
 0:03.76     return new_func(*args, **kwargs)
 0:03.76   File "c:/palemoon-source/platform/build/moz.configure/compilers-util.configure", line 54, in func
 0:03.76     onerror=onerror) is not None:
 0:03.76   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
 0:03.76     return new_func(*args, **kwargs)
 0:03.76   File "c:/palemoon-source/platform/build/moz.configure/util.configure", line 187, in try_invoke_compiler
 0:03.76     return check_cmd_output(*cmd, **kwargs)
 0:03.76   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
 0:03.76     return new_func(*args, **kwargs)
 0:03.76   File "c:/palemoon-source/platform/build/moz.configure/util.configure", line 46, in check_cmd_output
 0:03.76     o.write(out)
 0:03.76   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\util.py", line 204, in write
 0:03.76     buf = buf.decode(self._encoding)
 0:03.76   File "c:\build\obj-pm-x64-avx-release\_virtualenv\lib\encodings\cp1250.py", line 15, in decode
 0:03.76     return codecs.charmap_decode(input,errors,decoding_table)
 0:03.76 UnicodeDecodeError: 'charmap' codec can't decode byte 0x88 in position 124: character maps to <undefined>
 0:03.76 *** Fix above errors and then restart with\
 0:03.76                "c:/mozilla-build/bin/mozmake.EXE -f client.mk build"
 0:03.76 mozmake.EXE: *** [client.mk;370: configure] Error 1

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35653
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Error 1 when building Pale Moon for Windows x64

Unread post by Moonchild » 2023-08-03, 22:34

Which MozillaBuild version are you using?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"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
Theresnothinghere
Moongazer
Moongazer
Posts: 9
Joined: 2023-08-03, 12:19

Re: Error 1 when building Pale Moon for Windows x64

Unread post by Theresnothinghere » 2023-08-04, 07:14


User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35653
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Error 1 when building Pale Moon for Windows x64

Unread post by Moonchild » 2023-08-04, 07:56

Hmm that should work, however I have not attempted this in a Windows Server environment, let alone server 2016 (which is the very first iteration based on the Win 10 cycle, and may not necessarily work all that well for software development - it's not exactly its intended use-case).
You may want to try and create a new VM using a recent version of Windows 10, instead.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"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
Theresnothinghere
Moongazer
Moongazer
Posts: 9
Joined: 2023-08-03, 12:19

Re: Error 1 when building Pale Moon for Windows x64

Unread post by Theresnothinghere » 2023-08-04, 17:24

I tried once more, this time with Windows 10 version 1909 and still the same error :(

Code: Select all

1909@DESKTOP-48H6TNS /c/palemoon-source
$ ./mach build
 0:00.61 c:\mozilla-build\bin\mozmake.EXE -f client.mk MOZ_PARALLEL_BUILD=8 -s configure
 0:02.34 Clobber not needed.
 0:03.97 cd c:/palemoon-source/obj-i686-pc-mingw32
 0:03.98 c:/palemoon-source/configure
 0:04.73 Creating Python environment
 0:10.55 New python executable in c:\palemoon-source\obj-i686-pc-mingw32\_virtualenv\Scripts\python2.7.exe
 0:10.55 Also creating executable in c:\palemoon-source\obj-i686-pc-mingw32\_virtualenv\Scripts\python.exe
 0:10.55 Installing setuptools, pip, wheel...done.
 0:10.84 running build_ext
 0:10.84
 0:10.84 building 'psutil._psutil_windows' extension
 0:10.84
 0:10.84 error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
 0:10.84
 0:10.84
 0:10.84 Error processing command. Ignoring because optional. (optional:setup.py:python/psutil:build_ext:--inplace)
 0:10.84 c:\palemoon-source\platform\python\mozbuild\mozbuild\virtualenv.py:376: UserWarning: Hacking environment to allow binary Python extensions to build. You can make this warning go away by installing Visual Studio 2008. You can download the Express Edition installer from http://go.microsoft.com/?linkid=7729279
 0:10.84   warnings.warn('Hacking environment to allow binary Python '
 0:10.84 Reexecuting in the virtualenv
 0:11.06 Adding configure options from c:\palemoon-source\.mozconfig
 0:11.06   --enable-application=palemoon
 0:11.06   --enable-optimize=-O2 -GTs -GS- -Qspectre -utf-8
 0:11.06   --enable-official-branding
 0:11.06   --enable-update-channel=release
 0:11.06   --disable-updater
 0:11.06   --disable-precompiled-startupcache
 0:11.06   --enable-jemalloc
 0:11.06   --enable-strip
 0:11.06   --disable-parental-controls
 0:11.06   --disable-accessibility
 0:11.06   --disable-gamepad
 0:11.06   --disable-eme
 0:11.06   --disable-webrtc
 0:11.06   --enable-av1
 0:11.06   --enable-jxl
 0:11.06   MOZILLA_OFFICIAL=1
 0:11.06   MC_OFFICIAL=1
 0:11.06   BUILD_ARCH=x86
 0:11.06   WIN_UCRT_REDIST_DIR=C:\Program Files (x86)\Windows Kits\10\Redist\10.0.22621.0\ucrt\DLLs\x64
 0:11.06   BUILD_64=
 0:11.06   WIN32_REDIST_DIR=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.36.32532\x64\Microsoft.VC143.CRT
 0:11.16 checking for a shell... C:/mozilla-build/msys/bin/sh.exe
 0:11.49 checking for host system type... i686-pc-mingw32
 0:11.49 checking for target system type... i686-pc-mingw32
 0:11.49 checking whether cross compiling... no
 0:11.49 checking for pkg_config... not found
 0:11.49 checking for yasm... c:/mozilla-build/bin/yasm.EXE
 0:11.52 checking yasm version... 1.3.0
 0:11.56 checking for the target C compiler... 'C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/bin/HostX64/x86/cl.EXE'
 0:11.88 checking whether the target C compiler can be used... yes
 0:11.88 checking the target C compiler version... 19.36.32537
 0:11.98 checking the target C compiler works... yes
 0:11.98 checking for the target C++ compiler... 'C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/bin/HostX64/x86/cl.EXE'
 0:12.08 checking whether the target C++ compiler can be used... yes
 0:12.08 checking the target C++ compiler version... 19.36.32537
 0:12.14 checking the target C++ compiler works... yes
 0:12.14 checking for the host C compiler... 'C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/bin/HostX64/x86/cl.EXE'
 0:12.17 checking whether the host C compiler can be used... yes
 0:12.17 checking the host C compiler version... 19.36.32537
 0:12.22 checking the host C compiler works... yes
 0:12.22 checking for the host C++ compiler... 'C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/bin/HostX64/x86/cl.EXE'
 0:12.25 checking whether the host C++ compiler can be used... yes
 0:12.25 checking the host C++ compiler version... 19.36.32537
 0:12.30 checking the host C++ compiler works... yes
 0:12.33 checking for 64-bit OS... no
 0:12.36 checking for Windows SDK... 0x0a00 in 'C:\Program Files (x86)\Windows Kits\10\'
 0:12.36 checking for Universal CRT SDK... 10.0.22621.0 in 'C:\Program Files (x86)\Windows Kits\10\'
 0:12.36 checking for the Debug Interface Access SDK... C:/PROGRA~1/MICROS~1/2022/COMMUN~1/DIA SDK
 0:12.36 checking for mt... 'C:/PROGRA~2/WI3CF2~1/10/bin/100226~1.0/x64/mt.exe'
 0:12.38 checking whether MT is really Microsoft Manifest Tool... yes
 0:12.38 checking for link... 'C:/PROGRA~1/MICROS~1/2022/COMMUN~1/VC/Tools/MSVC/1436~1.325/bin/HostX64/x86/link.exe'
 0:12.44 checking for stdint.h... yes
 0:12.52 checking for inttypes.h... yes
 0:12.56 checking for malloc.h... yes
 0:12.61 checking for alloca.h...
 0:12.61 DEBUG: Creating `c:\users\1909\appdata\local\temp\conftest.j2dlxg.cpp` with content:
 0:12.61 DEBUG: | #include <alloca.h>
 0:12.61 DEBUG: | int
 0:12.61 DEBUG: | main(void)
 0:12.61 DEBUG: | {
 0:12.61 DEBUG: |
 0:12.61 DEBUG: |   ;
 0:12.61 DEBUG: |   return 0;
 0:12.61 DEBUG: | }
 0:12.61 DEBUG: Executing: `cl.EXE -c 'c:\users\1909\appdata\local\temp\conftest.j2dlxg.cpp'`
 0:12.61 DEBUG: The command returned non-zero exit status 2.
 0:12.61 DEBUG: Its output was:
 0:12.62 Traceback (most recent call last):
 0:12.62   File "c:/palemoon-source/configure.py", line 32, in <module>
 0:12.62     sys.exit(main(sys.argv))
 0:12.62   File "c:/palemoon-source/configure.py", line 24, in main
 0:12.62     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 364, in run
 0:12.62     func(*args)
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 407, in _value_for
 0:12.62     return self._value_for_depends(obj, need_help_dependency)
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\util.py", line 925, in method_call
 0:12.62     cache[args] = self.func(instance, *args)
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 417, in _value_for_depends
 0:12.62     return obj.result
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\util.py", line 943, in __get__
 0:12.62     setattr(instance, name, self.func(instance))
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 90, in result
 0:12.62     return self.func(*resolved_args)
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
 0:12.62     return new_func(*args, **kwargs)
 0:12.62   File "c:/palemoon-source/platform/build/moz.configure/util.configure", line 399, in wrapper
 0:12.62     return fn(*args)
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
 0:12.62     return new_func(*args, **kwargs)
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 669, in wrapper
 0:12.62     ret = template(*args, **kwargs)
 0:12.62   File "c:/palemoon-source/platform/build/moz.configure/checks.configure", line 52, in wrapped
 0:12.62     ret = func(*args, **kwargs)
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
 0:12.62     return new_func(*args, **kwargs)
 0:12.62   File "c:/palemoon-source/platform/build/moz.configure/compilers-util.configure", line 54, in func
 0:12.62     onerror=onerror) is not None:
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
 0:12.62     return new_func(*args, **kwargs)
 0:12.62   File "c:/palemoon-source/platform/build/moz.configure/util.configure", line 187, in try_invoke_compiler
 0:12.62     return check_cmd_output(*cmd, **kwargs)
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
 0:12.62     return new_func(*args, **kwargs)
 0:12.62   File "c:/palemoon-source/platform/build/moz.configure/util.configure", line 46, in check_cmd_output
 0:12.62     o.write(out)
 0:12.62   File "c:\palemoon-source\platform\python\mozbuild\mozbuild\configure\util.py", line 204, in write
 0:12.62     buf = buf.decode(self._encoding)
 0:12.62   File "c:\palemoon-source\obj-i686-pc-mingw32\_virtualenv\lib\encodings\cp1250.py", line 15, in decode
 0:12.62     return codecs.charmap_decode(input,errors,decoding_table)
 0:12.62 UnicodeDecodeError: 'charmap' codec can't decode byte 0x88 in position 124: character maps to <undefined>
 0:12.66 *** Fix above errors and then restart with\
 0:12.66                "c:/mozilla-build/bin/mozmake.EXE -f client.mk build"
 0:12.66 mozmake.EXE: *** [client.mk;370: configure] Error 1
@Nuck-TH in the AVX thread said that they were compiling on Windows 10 LTSC which is AFAIK 1809 (older than 1909) so the version I use should work too.
All I do is:
1. install fresh Windows 10 1909
2. probably unrelated but install vmware tools and disable diagtrack telemetry
3. Connect to the internet
4. Intall Git, MozillaBuild 3.4
5. Install studio 2022 checking desktop c++ game, c++, python and both Windows 11 SDKs on the right panel
6. Dowload palemoon source using git and put .mozconfig there
7. ./mach build

.mozconfig file:

Code: Select all

# Tell the build system if we're building 64-bit.
# Set this to `BUILD_64=1` for 64-bit, leave as-is for 32-bit
BUILD_64=

# Processor architecture specific build options
if [ -n "$BUILD_64" ]; then
  BUILD_ARCH=x64
  ac_add_options --target=x86_64-pc-mingw32
  ac_add_options --host=x86_64-pc-mingw32
else
  BUILD_ARCH=x86
fi

# Automatically clobber if CLOBBER was touched
mk_add_options AUTOCLOBBER=1

# Application and target
ac_add_options --enable-application=palemoon

# Build options
# Adjust the -j parameter if you need more or fewer parallel build tasks
# Maximum supported without build errors is around 32
mk_add_options MOZ_MAKE_FLAGS="-j8"
ac_add_options --enable-optimize="-O2 -GTs -GS- -Qspectre -utf-8"

# Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding.
ac_add_options --enable-official-branding
export MC_OFFICIAL=1
export MOZILLA_OFFICIAL=1

# Only enable the internal updater if you supply automatic update infrastructure
# and have configured the relevant preferences in your branding!
ac_add_options --enable-update-channel=release
ac_add_options --disable-updater

# Enabling this only offers marginal benefits on first start and may not work on own builds
ac_add_options --disable-precompiled-startupcache

ac_add_options --enable-jemalloc
ac_add_options --enable-strip

ac_add_options --disable-parental-controls
ac_add_options --disable-accessibility
ac_add_options --disable-gamepad
ac_add_options --disable-eme
ac_add_options --disable-webrtc

ac_add_options --enable-av1
ac_add_options --enable-jxl

WIN32_REDIST_DIR="C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.36.32532\x64\Microsoft.VC143.CRT"
WIN_UCRT_REDIST_DIR="C:\Program Files (x86)\Windows Kits\10\Redist\10.0.22621.0\ucrt\DLLs\x64"
Edit: Ok, I didn't specify in mozconfig that its 64 bit this run, but it's not causing the problem because in AVX config it was ok

User avatar
Theresnothinghere
Moongazer
Moongazer
Posts: 9
Joined: 2023-08-03, 12:19

[SOLVED] Error 1 when building Pale Moon for Windows x64

Unread post by Theresnothinghere » 2024-03-25, 16:29

viewtopic.php?f=5&t=30142

The original topic has closed itself and I cannot reply there, but in the meantime i've managed to solve the problem.
To make building work I had to change Windows locale from Polish to English US. I you are troubleshooting the same issue make sure you change the locale not only in the Settings app but also in the "Administrative Language Settings" ("Administracyjne Ustawienia Języka") window.

The whole error is likely caused by the fact that in Poland ',' is a decimal separator instead of '.'

The 2 topis can be merged and marked as solved now.