OpenUSD
OpenUSD copied to clipboard
25.08 failing to build with vs2019
We are getting the below error when trying to build with vs2019. We are also building a reldbg and debug that are similarly failing.
cl /TP -DARCH_EXPORTS=1 -DAR_EXPORTS=1 -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DCAMERAUTIL_EXPORTS=1 -DEF_EXPORTS=1 -DESFUSD_EXPORTS=1 -DESF_EXPORTS=1 -DEXECGEOM_EXPORTS=1 -DEXECUSD_EXPORTS=1 -DEXEC_EXPORTS=1 -DGARCH_EXPORTS=1 -DGEOMUTIL_EXPORTS=1 -DGF_EXPORTS=1 -DGLF_EXPORTS=1 -DGLX_GLXEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DHDAR_EXPORTS=1 -DHDGP_EXPORTS=1 -DHDSI_EXPORTS=1 -DHDSTORM_EXPORTS=1 -DHDST_EXPORTS=1 -DHDX_EXPORTS=1 -DHD_EXPORTS=1 -DHF_EXPORTS=1 -DHGIGL_EXPORTS=1 -DHGIINTEROP_EXPORTS=1 -DHGI_EXPORTS=1 -DHIOAVIF_EXPORTS=1 -DHIO_EXPORTS=1 -DJS_EXPORTS=1 -DKIND_EXPORTS=1 -DMFB_ALT_PACKAGE_NAME=vdf -DMFB_PACKAGE_MODULE=Vdf -DMFB_PACKAGE_NAME=vdf -DNOMINMAX -DOPENEXR_DLL -DPCP_EXPORTS=1 -DPEGTL_EXPORTS=1 -DPLUG_EXPORTS=1 -DPXOSD_EXPORTS=1 -DPXR_BUILD_LOCATION=usd -DPXR_GL_SUPPORT_ENABLED -DPXR_PLUGIN_BUILD_LOCATION=../plugin/usd -DSDF_EXPORTS=1 -DSDRGLSLFX_EXPORTS=1 -DSDR_EXPORTS=1 -DTF_EXPORTS=1 -DTRACE_EXPORTS=1 -DTS_EXPORTS=1 -DUSDAPPUTILS_EXPORTS=1 -DUSDGEOMVALIDATORS_EXPORTS=1 -DUSDGEOM_EXPORTS=1 -DUSDHYDRA_EXPORTS=1 -DUSDIMAGINGGL_EXPORTS=1 -DUSDIMAGING_EXPORTS=1 -DUSDLUX_EXPORTS=1 -DUSDMEDIA_EXPORTS=1 -DUSDPHYSICSVALIDATORS_EXPORTS=1 -DUSDPHYSICS_EXPORTS=1 -DUSDPROCIMAGING_EXPORTS=1 -DUSDPROC_EXPORTS=1 -DUSDRENDER_EXPORTS=1 -DUSDRIPXRIMAGING_EXPORTS=1 -DUSDRI_EXPORTS=1 -DUSDSEMANTICS_EXPORTS=1 -DUSDSHADERS_EXPORTS=1 -DUSDSHADEVALIDATORS_EXPORTS=1 -DUSDSHADE_EXPORTS=1 -DUSDSKELIMAGING_EXPORTS=1 -DUSDSKELVALIDATORS_EXPORTS=1 -DUSDSKEL_EXPORTS=1 -DUSDUI_EXPORTS=1 -DUSDUTILSVALIDATORS_EXPORTS=1 -DUSDUTILS_EXPORTS=1 -DUSDVALIDATION_EXPORTS=1 -DUSDVOLIMAGING_EXPORTS=1 -DUSDVOL_EXPORTS=1 -DUSD_EXPORTS=1 -DVDF_EXPORTS=1 -DVT_EXPORTS=1 -DWIN32_LEAN_AND_MEAN -DWORK_EXPORTS=1 -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D__TBB_NO_IMPLICIT_LINKAGE=1 -IE:\thirdparty\usd\v25.08\lib\vc160_64_md_dll\build\v25.08\pxr\exec\vdf -IE:\thirdparty\usd\v25.08\pxr\exec\vdf -IE:\thirdparty\usd\v25.08\lib\vc160_64_md_dll\build\v25.08\include -IC:\PROGRA~2\Intel\oneAPI\tbb\20218~1.0\include /EHsc /Zc:rvalueCast /Zc:strictStrings /Zc:__cplusplus /Zc:inline- /W3 /bigobj /Zi /MP /Gm- /wd4003 /wd4244 /wd4305 /wd4267 /wd4506 /wd4091 /wd4273 /wd4180 /wd4334 /Zm150 /O2 /Ob2 /DNDEBUG -std:c++17 -MD /Yu"pxr/exec/vdf/pch.h" /FI"pxr/exec/vdf/pch.h" /Fp"E:/thirdparty/usd/v25.08/lib/vc160_64_md_dll/build/v25.08/include/pxr/exec/vdf/Release/pch.pch" /showIncludes /FoCMakeFiles\vdf.dir\dotGrapher.cpp.obj /FdCMakeFiles\vdf.dir\ /FS -c E:\thirdparty\usd\v25.08\pxr\exec\vdf\dotGrapher.cpp
dotGrapher.cpp
Traceback (most recent call last):
File "e:\thirdparty\usd\v25.08\build_scripts\build_usd.py", line 2815, in <module>
dep.installer(context,
~~~~~~~~~~~~~^^^^^^^^^
buildArgs=context.GetBuildArguments(dep),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
force=context.ForceBuildDependency(dep))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "e:\thirdparty\usd\v25.08\build_scripts\build_usd.py", line 1846, in InstallUSD
RunCMake(context, force, extraArgs, context.usdInstDir)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "e:\thirdparty\usd\v25.08\build_scripts\build_usd.py", line 462, in RunCMake
Run("cmake --build . --config {config} --target install -j {numJobs}"
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.format(config=config, numJobs=context.numJobs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "e:\thirdparty\usd\v25.08\build_scripts\build_usd.py", line 284, in Run
raise RuntimeError("Failed to run '{cmd}' in {path}.\nSee {log} for more details."
.format(cmd=cmd, path=os.getcwd(), log=os.path.abspath("log.txt")))
RuntimeError: Failed to run 'cmake --build . --config Release --target install -j 8' in e:\thirdparty\usd\v25.08\lib\vc160_64_md_dll\build\v25.08.
See e:\thirdparty\usd\v25.08\lib\vc160_64_md_dll\build\v25.08\log.txt for more details.
E:/thirdparty/usd/v25.08/pxr/exec/vdf/vectorImpl_Shared.h(42): error C2694: 'pxrInternal_v0_25_8__pxrReserved__::Vdf_VectorImplShared::~Vdf_VectorImplShared(void)': overriding virtual function has less restrictive exception specification than base class virtual member function 'pxrInternal_v0_25_8__pxrReserved__::Vdf_VectorData::~Vdf_VectorData(void)'
E:/thirdparty/usd/v25.08/pxr/exec/vdf/vectorImpl_Shared.h(42): note: see declaration of 'pxrInternal_v0_25_8__pxrReserved__::Vdf_VectorImplShared::~Vdf_VectorImplShared'
E:/thirdparty/usd/v25.08/pxr/exec/vdf/vectorData.h(58): note: see declaration of 'pxrInternal_v0_25_8__pxrReserved__::Vdf_VectorData::~Vdf_VectorData'
We are building on Windows Server 2022 21H2. The invoking command is:
py build_scripts\build_usd.py --generator="NMake Makefiles" --build-variant=release --no-python --no-materialx --build-monolithic --src lib\src --cmake-build-args="-DCMAKE_VERBOSE_MAKEFILE=1" -vvv "lib\vc160_64_md_dll" 1>"build_vc160_64_md_dll.log" 2>&1
cl version: Microsoft (R) C/C++ Optimizing Compiler Version 19.20.27508.1 for x64
Attached is the log file of the build. build_vc160_64_md_dll.log