I feel that this should be a recent bug. Because I used Visual Studio 2019 on my old computer and successfully compiled it in November 2022 and June 2023. Unfortunately, the old computer broke down and I cannot reproduce whether it is due to a configuration issue with the new computer.
(I am Chinese and this paragraph was translated using Baidu. I apologize for any inconvenience this may have caused to your reading and understanding. )
Code: Select all
2:37.88 Unified_cpp_dom_performance0.cpp
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(32): error C2061: 语法错误: 标识符“ErrorResult”
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(33): error C2511: “already_AddRefed<mozilla::dom::PerformanceMark> mozilla::dom::PerformanceMark::Constructor(const mozilla::dom::GlobalObject &,const nsAString_internal &,const mozilla::dom::PerformanceMarkOptions &)”:“mozilla::dom::PerformanceMark”中没有找到重载的成员函数
2:37.88 c:\skycity\skycity\obj-x86_64-pc-mingw32\dist\include\mozilla/dom/PerformanceMarkBinding.h(16): note: 参见“mozilla::dom::PerformanceMark”的声明
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(37): error C2065: “aRv”: 未声明的标识符
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(45): error C2061: 语法错误: 标识符“ErrorResult”
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(46): error C2511: “already_AddRefed<mozilla::dom::PerformanceMark> mozilla::dom::PerformanceMark::Constructor(JSContext *,nsIGlobalObject *,const nsAString_internal &,const mozilla::dom::PerformanceMarkOptions &)”:“mozilla::dom::PerformanceMark”中没有找到重载的成员函数
2:37.88 c:\skycity\skycity\obj-x86_64-pc-mingw32\dist\include\mozilla/dom/PerformanceMarkBinding.h(16): note: 参见“mozilla::dom::PerformanceMark”的声明
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(51): error C2065: “aRv”: 未声明的标识符
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(51): error C2228: “.ThrowTypeError”的左边必须有类/结构/联合
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(51): note: 类型是“unknown-type”
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(51): error C2059: 语法错误:“)”
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(57): error C2065: “aRv”: 未声明的标识符
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(57): error C2228: “.Throw”的左边必须有类/结构/联合
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(57): note: 类型是“unknown-type”
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(65): error C2065: “aRv”: 未声明的标识符
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(65): error C2228: “.ThrowTypeError”的左边必须有类/结构/联合
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(65): note: 类型是“unknown-type”
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(65): error C2059: 语法错误:“)”
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(76): error C2065: “aRv”: 未声明的标识符
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(77): error C2065: “aRv”: 未声明的标识符
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(77): error C2228: “.Failed”的左边必须有类/结构/联合
2:37.88 c:/skycity/skycity/platform/dom/performance/PerformanceMark.cpp(77): note: 类型是“unknown-type”
2:37.88
2:37.89 In the directory /c/skycity/skycity/obj-x86_64-pc-mingw32/dom/performance
2:37.89 The following command failed to execute properly:
2:37.89 c:/skycity/skycity/obj-x86_64-pc-mingw32/_virtualenv/Scripts/python.exe -m mozbuild.action.cl cl.EXE -FoUnified_cpp_dom_performance0.obj -c -Ic:/skycity/skycity/obj-x86_64-pc-mingw32/dist/stl_wrappers -DNDEBUG=1 -DTRIMMED=1 -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -Ic:/skycity/skycity/platform/dom/performance -Ic:/skycity/skycity/obj-x86_64-pc-mingw32/dom/performance -Ic:/skycity/skycity/platform/dom/workers -Ic:/skycity/skycity/obj-x86_64-pc-mingw32/dist/include -Ic:/skycity/skycity/obj-x86_64-pc-mingw32/dist/include/nspr -Ic:/skycity/skycity/obj-x86_64-pc-mingw32/dist/include/nss -MD -FI c:/skycity/skycity/obj-x86_64-pc-mingw32/mozilla-config.h -DMOZILLA_CLIENT -TP -nologo -wd5026 -wd5027 -Zc:sizedDealloc- -wd4752 -wd4091 -wd4577 -D_HAS_EXCEPTIONS=0 -W3 -Gy -Zc:inline -utf-8 -FS -Gw -wd4251 -wd4244 -wd4267 -wd4345 -wd4351 -wd4800 -wd4595 -we4553 -GR- -Zi -O2 -GTs -GS- -Qspectre -utf-8 -Oy -Fdgenerated.pdb c:/skycity/skycity/obj-x86_64-pc-mingw32/dom/performance/Unified_cpp_dom_performance0.cpp
2:37.92 number_scientific.cpp
2:37.97 mozmake.EXE[5]: *** [c:/skycity/skycity/platform/config/rules.mk;885: Unified_cpp_dom_performance0.obj] Error 1
2:37.99 mozmake.EXE[4]: *** [c:/skycity/skycity/platform/config/recurse.mk;71: dom/performance/target] Error 2
2:37.99 mozmake.EXE[4]: *** Waiting for unfinished jobs....
2:38.55 Unified_cpp_components_protobuf0.cpp
2:38.55 Warning: C4715 in c:\skycity\skycity\platform\toolkit\components\protobuf\src\google\protobuf\extension_set.cc: “google::protobuf::internal::`anonymous namespace'::is_packable”: 不是所有的控件路径都返回值
2:38.55 c:\skycity\skycity\platform\toolkit\components\protobuf\src\google\protobuf\extension_set.cc(74) : warning C4715: “google::protobuf::internal::`anonymous namespace'::is_packable”: 不是所有的控件路径都返回值
......
3:06.56 mozmake.EXE[3]: *** [c:/skycity/skycity/platform/config/recurse.mk;33: compile] Error 2
3:06.56 mozmake.EXE[2]: *** [c:/skycity/skycity/platform/config/rules.mk;493: default] Error 2
3:06.56 mozmake.EXE[1]: *** [c:/skycity/skycity/client.mk;407: realbuild] Error 2
3:06.56 mozmake.EXE: *** [client.mk;165: build] Error 2
3:06.59 49 compiler warnings present.
XXBJ@MSI /c/skycity/skycity
$
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=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=basilisk
# 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="-j32"
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 --disable-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/VS/2022/Preview/VC/Redist/MSVC/14.38.33030/$BUILD_ARCH/Microsoft.VC143.MFC"
WIN_UCRT_REDIST_DIR="C:/Program Files (x86)/Windows Kits/10/Redist/10.0.22621.0/ucrt/DLLs/$BUILD_ARCH"
If it's not a code error, please tell me what I should do