New error when building


#1

I used to be able to build perfectly fine, then one time i had to uninstall most of visual studio’s crap because it loves shoving stuff on my c drive (which i only really use for windows itself as its a small ssd)
So i reinstalledthe requirements, and the build runs fine for about 30 minutes (first run, second run picking up where it leaves off fails instantly)

This is the log i get

Version: 1.10.0
Using Python 3.7
10.0.14393.0
10.0.15063.0
10.0.16299.0
10.0.17134.0
Using Windows SDK 10.0.17134.0
Using Visual Studio 2017
Using MSVC 14.1
Target OS: windows
Target arch: x64
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package opencv, excluding from build
WARNING: Could not locate thirdparty package awesomium, excluding from build
WARNING: Could not locate thirdparty package rocket, excluding from build
WARNING: Could not locate thirdparty package opus, excluding from build
WARNING: Could not locate manifest C:\Windows\WinSxS\Manifests\*_microsoft.windows.common-controls_6595b64144ccf1df_6.0.0.0_*.manifest.  You may need to reinstall the Visual C++ Redistributable.
Generating dependencies...
[T1] Building C++ object built_x64/tmp/p3display_composite2.obj
p3display_composite2.cxx
[T2] Building C++ object built_x64/tmp/p3egg_composite2.obj
p3egg_composite2.cxx
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\xutility(2414): error C2679: binary '=': no operator found which takes a right-hand operand of type 'const std::pair<const Key,Value>' (or there is no acceptable conversion)
        with
        [
            Key=int,
            Value=PT_EggVertex
        ]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\xutility(4233): note: could be 'std::back_insert_iterator<Verts> &std::back_insert_iterator<Verts>::operator =(std::back_insert_iterator<Verts> &&)'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\xutility(4233): note: or       'std::back_insert_iterator<Verts> &std::back_insert_iterator<Verts>::operator =(const std::back_insert_iterator<Verts> &)'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\xutility(4210): note: or       'std::back_insert_iterator<Verts> &std::back_insert_iterator<Verts>::operator =(EggVertex *&&)'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\xutility(4204): note: or       'std::back_insert_iterator<Verts> &std::back_insert_iterator<Verts>::operator =(EggVertex *const &)'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\xutility(2414): note: while trying to match the argument list '(std::back_insert_iterator<Verts>, const std::pair<const Key,Value>)'
        with
        [
            Key=int,
            Value=PT_EggVertex
        ]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\xutility(2434): note: see reference to function template instantiation '_OutIt std::_Copy_unchecked1<_InIt,_OutIt>(_InIt,_InIt,_OutIt,std::_General_ptr_iterator_tag)' being compiled
        with
        [
            _OutIt=std::back_insert_iterator<Verts>,
            _InIt=std::_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const int,PT_EggVertex>>>,std::_Iterator_base0>
        ]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\xutility(2445): note: see reference to function template instantiation '_OutIt std::_Copy_unchecked<std::_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<_Ty>>,std::_Iterator_base0>,_Iter>(_InIt,_InIt,_OutIt)' being compiled
        with
        [
            _OutIt=std::back_insert_iterator<Verts>,
            _Ty=std::pair<const int,PT_EggVertex>,
            _Iter=std::back_insert_iterator<Verts>,
            _InIt=std::_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const int,PT_EggVertex>>>,std::_Iterator_base0>
        ]
p:\gsgames\panda3d\panda\src\egg\eggVertexPool.cxx(680): note: see reference to function template instantiation '_OutIt std::copy<EggVertexPool::iterator,std::back_insert_iterator<Verts>>(_InIt,_InIt,_OutIt)' being compiled
        with
        [
            _OutIt=std::back_insert_iterator<Verts>,
            _InIt=EggVertexPool::iterator
        ]
The following command returned a non-zero value: cl /favor:blend /wd4996 /wd4275 /wd4273 /DWINVER=0x501 /Zc:threadSafeInit- /Fobuilt_x64/tmp/p3egg_composite2.obj /nologo /c /Ipanda/src/egg /Ibuilt_x64/tmp /Ibuilt_x64/include /Ithirdparty/win-python3.7-x64/include /Ithirdparty/win-libs-vc14-x64/eigen\include /Ithirdparty/win-libs-vc14-x64/zlib/include /Ithirdparty/win-libs-vc14-x64/extras/include /DEIGEN_NO_STATIC_ASSERT= /MD /Zi /GS- /O2 /Ob2 /Oi /Ot /fp:fast /Fdbuilt_x64/tmp/p3egg_composite2.pdb /DBUILDING_PANDAEGG /bigobj /Zm300 /DWIN32_VC /DWIN32 /D_HAS_EXCEPTIONS=0 /GR- /DWIN64_VC /DWIN64 /W3 panda/src/egg/p3egg_composite2.cxx
Storing dependency cache.
Elapsed Time: 44 sec
Build process aborting.
Build terminated.

#2

This is a bug in the latest update of the Visual C++ compiler, and was already worked around in the latest Panda3D master version:


#3

Ah that’d help.
Was building an astron build so I didn’t have that change, thanks.