
Even Windows XP stuff.






Yeah if I actively debug code I build and mach run, with the symbol path set to the appropriate objdir in VS if it needs that (usually it finds them automatically), and attach the debugger to the running process. It just works grabbing any crashes or breakpoints. I use the same method investigating reported crash addresses (but then of course running release and pointing symbols paths to the release objdir)



Not a stupid question, but I did find that depending on my build config it wanted either one or the other, so having both installed just prevents missing build prerequisites. I didn't dig deeper into why at the time.




Code: Select all
export CC=C:/PROGRA~1/MIB055~1/18/COMMUN~1/VC/Tools/MSVC/1444~1.352/bin/HostX64/x64/cl.exe
export LD=C:/PROGRA~1/MIB055~1/18/COMMUN~1/VC/Tools/MSVC/1444~1.352/bin/HostX64/x64/link.exe
Code: Select all
0:01.61 c:\mozilla-build\bin\mozmake.EXE -f client.mk MOZ_PARALLEL_BUILD=8 -s
0:10.53 Adding client.mk options from c:/Users/User/source/repos/Pale-Moon/.mozconfig:
0:10.53 CONFIG_GUESS=x86_64-pc-mingw32
0:10.53 AUTOCLOBBER=1
0:10.53 MOZ_MAKE_FLAGS=-j8
0:10.53 MOZ_OBJDIR=c:/Users/User/source/repos/build/obj-pm-x64-sse2-release
0:10.53 OBJDIR=c:/Users/User/source/repos/build/obj-pm-x64-sse2-release
0:10.53 FOUND_MOZCONFIG=c:/Users/User/source/repos/Pale-Moon/.mozconfig
0:10.70 Generating c:/Users/User/source/repos/Pale-Moon/configure
0:10.83 Generating c:/Users/User/source/repos/Pale-Moon/platform/configure
0:13.22 cd c:/Users/User/source/repos/build/obj-pm-x64-sse2-release
0:13.24 c:/Users/User/source/repos/Pale-Moon/configure
0:14.49 Reexecuting in the virtualenv
0:15.08 Adding configure options from c:\Users\User\source\repos\Pale-Moon\.mozconfig
0:15.08 --target=x86_64-pc-mingw32
0:15.08 --host=x86_64-pc-mingw32
0:15.08 --enable-application=palemoon
0:15.08 --enable-optimize=-O2 -GTs -GS- -favor:AMD64 -Qspectre -utf-8
0:15.08 --enable-official-branding
0:15.08 --enable-update-channel=release
0:15.08 --disable-updater
0:15.08 --disable-precompiled-startupcache
0:15.08 --enable-jemalloc
0:15.08 --enable-strip
0:15.08 --disable-parental-controls
0:15.08 --disable-accessibility
0:15.08 --disable-gamepad
0:15.08 --disable-webrtc
0:15.09 --enable-av1
0:15.09 CC=C:/PROGRA~1/MIB055~1/18/COMMUN~1/VC/Tools/MSVC/1444~1.352/bin/HostX64/x64/cl.exe
0:15.09 LD=C:/PROGRA~1/MIB055~1/18/COMMUN~1/VC/Tools/MSVC/1444~1.352/bin/HostX64/x64/link.exe
0:15.09 MOZILLA_OFFICIAL=1
0:15.09 MOZ_PKG_SPECIAL=sse2
0:15.09 MC_OFFICIAL=1
0:15.09 BUILD_ARCH=x64
0:15.09 WIN_UCRT_REDIST_DIR=C:/Program Files (x86)/Windows Kits/10/Redist/10.0.26100.0/ucrt/DLLs/x64
0:15.09 BUILD_64=1
0:15.09 WIN32_REDIST_DIR=C:/Program Files/Microsoft Visual Studio/18/Community/VC/Redist/MSVC/14.44.35112/x64/Microsoft.VC143.CRT
0:15.25 checking for a shell... C:/mozilla-build/msys/bin/sh.exe
0:15.66 checking for host system type... x86_64-pc-mingw32
0:16.04 checking for target system type... x86_64-pc-mingw32
0:16.11 checking whether cross compiling... no
0:16.13 checking for pkg_config... not found
0:16.13 checking for yasm... c:/mozilla-build/bin/yasm.EXE
0:16.14 checking yasm version... 1.3.0
0:16.26 Traceback (most recent call last):
0:16.27 File "c:/Users/User/source/repos/Pale-Moon/configure.py", line 32, in <module>
0:16.27 sys.exit(main(sys.argv))
0:16.27 File "c:/Users/User/source/repos/Pale-Moon/configure.py", line 24, in main
0:16.27 sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
0:16.27 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\configure\__init__.py", line 364, in run
0:16.27 func(*args)
0:16.27 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\configure\__init__.py", line 407, in _value_for
0:16.27 return self._value_for_depends(obj, need_help_dependency)
0:16.27 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\util.py", line 925, in method_call
0:16.27 cache[args] = self.func(instance, *args)
0:16.27 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\configure\__init__.py", line 417, in _value_for_depends
0:16.28 return obj.result
0:16.28 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\util.py", line 943, in __get__
0:16.28 setattr(instance, name, self.func(instance))
0:16.28 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\configure\__init__.py", line 90, in result
0:16.28 return self.func(*resolved_args)
0:16.28 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
0:16.28 return new_func(*args, **kwargs)
0:16.28 File "c:/Users/User/source/repos/Pale-Moon/platform/build/moz.configure/util.configure", line 380, in wrapper
0:16.28 return func(*args)
0:16.29 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\configure\__init__.py", line 933, in wrapped
0:16.29 return new_func(*args, **kwargs)
0:16.29 File "c:/Users/User/source/repos/Pale-Moon/platform/build/moz.configure/toolchain.configure", line 574, in provided_compiler
0:16.29 cmd = shell_split(cmd[0])
0:16.29 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\shellutil.py", line 173, in split
0:16.29 return _ClineSplitter(s).result
0:16.29 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\shellutil.py", line 61, in __init__
0:16.29 self._parse_unquoted()
0:16.29 File "c:\Users\User\source\repos\Pale-Moon\platform\python\mozbuild\mozbuild\shellutil.py", line 113, in _parse_unquoted
0:16.29 raise MetaCharacterException(match['special'])
0:16.29 mozbuild.shellutil.MetaCharacterException
0:16.30 *** Fix above errors and then restart with\
0:16.30 "c:/mozilla-build/bin/mozmake.EXE -f client.mk build"
0:16.32 mozmake.EXE[2]: *** [c:/Users/User/source/repos/Pale-Moon/client.mk;370: configure] Error 1
0:16.34 mozmake.EXE[1]: *** [c:/Users/User/source/repos/Pale-Moon/client.mk;383: c:/Users/User/source/repos/build/obj-pm-x64-sse2-release/config.status] Error 2
0:16.34 mozmake.EXE: *** [client.mk;164: build] Error 2
0:16.41 0 compiler warnings present.
Code: Select all
export CC="C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/cl.exe"
export LD="C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/link.exe"
Code: Select all
0:01.21 c:\mozilla-build\bin\mozmake.EXE -f client.mk MOZ_PARALLEL_BUILD=8 -s
0:09.44 Adding client.mk options from c:/Users/User/source/repos/Pale-Moon/.mozconfig:
0:09.44 CONFIG_GUESS=x86_64-pc-mingw32
0:09.44 AUTOCLOBBER=1
0:09.45 MOZ_MAKE_FLAGS=-j8
0:09.45 MOZ_OBJDIR=c:/Users/User/source/repos/build/obj-pm-x64-sse2-release
0:09.45 OBJDIR=c:/Users/User/source/repos/build/obj-pm-x64-sse2-release
0:09.45 FOUND_MOZCONFIG=c:/Users/User/source/repos/Pale-Moon/.mozconfig
0:11.72 cd c:/Users/User/source/repos/build/obj-pm-x64-sse2-release
0:11.74 c:/Users/User/source/repos/Pale-Moon/configure
0:12.95 Reexecuting in the virtualenv
0:13.51 Adding configure options from c:\Users\User\source\repos\Pale-Moon\.mozconfig
0:13.51 --target=x86_64-pc-mingw32
0:13.51 --host=x86_64-pc-mingw32
0:13.51 --enable-application=palemoon
0:13.51 --enable-optimize=-O2 -GTs -GS- -favor:AMD64 -Qspectre -utf-8
0:13.51 --enable-official-branding
0:13.51 --enable-update-channel=release
0:13.51 --disable-updater
0:13.52 --disable-precompiled-startupcache
0:13.52 --enable-jemalloc
0:13.52 --enable-strip
0:13.52 --disable-parental-controls
0:13.52 --disable-accessibility
0:13.52 --disable-gamepad
0:13.52 --disable-webrtc
0:13.52 --enable-av1
0:13.52 CC=C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/cl.exe
0:13.52 LD=C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/link.exe
0:13.52 MOZILLA_OFFICIAL=1
0:13.52 MOZ_PKG_SPECIAL=sse2
0:13.53 MC_OFFICIAL=1
0:13.53 BUILD_ARCH=x64
0:13.53 WIN_UCRT_REDIST_DIR=C:/Program Files (x86)/Windows Kits/10/Redist/10.0.26100.0/ucrt/DLLs/x64
0:13.53 BUILD_64=1
0:13.53 WIN32_REDIST_DIR=C:/Program Files/Microsoft Visual Studio/18/Community/VC/Redist/MSVC/14.44.35112/x64/Microsoft.VC143.CRT
0:13.69 checking for a shell... C:/mozilla-build/msys/bin/sh.exe
0:14.09 checking for host system type... x86_64-pc-mingw32
0:14.46 checking for target system type... x86_64-pc-mingw32
0:14.52 checking whether cross compiling... no
0:14.53 checking for pkg_config... not found
0:14.53 checking for yasm... c:/mozilla-build/bin/yasm.EXE
0:14.54 checking yasm version... 1.3.0
0:14.64 checking for the target C compiler... not found
0:14.65 DEBUG: _cc: Trying Studio/18/Community/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/cl.exe
0:14.65 ERROR: Cannot find the target C compiler
0:14.71 *** Fix above errors and then restart with\
0:14.71 "c:/mozilla-build/bin/mozmake.EXE -f client.mk build"
0:14.73 mozmake.EXE[2]: *** [c:/Users/User/source/repos/Pale-Moon/client.mk;370: configure] Error 1
0:14.73 mozmake.EXE[1]: *** [c:/Users/User/source/repos/Pale-Moon/client.mk;383: c:/Users/User/source/repos/build/obj-pm-x64-sse2-release/config.status] Error 2
0:14.73 mozmake.EXE: *** [client.mk;164: build] Error 2
0:14.79 0 compiler warnings present.
Code: Select all
# Tell the build system if we're building 64-bit.
# Set this to `BUILD_64=` for 32-bit, leave as-is for default 64-bit
BUILD_64=1
# 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
export MOZ_PKG_SPECIAL=sse2
mk_add_options MOZ_OBJDIR=../build/obj-pm-x64-sse2-release
# Build options
# Adjust the -j parameter if you need more or fewer parallel build tasks
# Maximum supported without build errors is around 32, and it's recommended to set this to
# number of cores in your CPU -2
mk_add_options MOZ_MAKE_FLAGS="-j8"
#ac_add_options --enable-optimize="-O2 -GTs -GS- -Qspectre -utf-8"
ac_add_options --enable-optimize="-O2 -GTs -GS- -favor:AMD64 -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-webrtc
ac_add_options --enable-av1
export CC="C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/cl.exe"
export LD="C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.44.35207/bin/HostX64/x64/link.exe"
WIN32_REDIST_DIR="C:/Program Files/Microsoft Visual Studio/18/Community/VC/Redist/MSVC/14.44.35112/$BUILD_ARCH/Microsoft.VC143.CRT"
WIN_UCRT_REDIST_DIR="C:/Program Files (x86)/Windows Kits/10/Redist/10.0.26100.0/ucrt/DLLs/$BUILD_ARCH"




Code: Select all
git checkout release
git submodule update