This looks like a compiler bug. The offending line in the template
error message, snap.h:148:100, is just an assignment of one vector to
another. The other, about the internal compiler error, is in system
headers.
I guess the only way to fix this would be to try several different
versions of MinGW, or even try compiling with clang.
Regards, Krzysztof
2015-07-26 21:02 GMT+02:00 Christian Budde <Christian@...3256...>:
Hello,
today I wanted to build the latest trunk version for Win64, but I
encountered an issue I don't know how to fix myself.
What I did so far is to follow the instructions here:
http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape_on_Windows
http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape_on_Windows_64-bit
I also tried with more recent versions of MinGW-w64 now that Sourceforge
is back online.
Below is the error reported. It seems to be related to MinGW-w64, but
I'm not sure what code actually triggered this and how to solve it.
compile src/graphlayout.cpp
Make error line 311: problem compiling: In file included from
src/style.h:21:0,
from src/graphlayout.cpp:34:
src/style-internal.h:522:107: warning: unused parameter 'inherits'
[-Wunused-parameter]
SPIEnumBits( Glib::ustring const &name, SPStyleEnum const *enums,
unsigned value = 0, bool inherits = true ) :
^
src/style-internal.h:522:107: warning: unused parameter 'inherits'
[-Wunused-parameter]
In file included from
C:/mingw64/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from
C:/mingw64/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from
C:/mingw64/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from
C:/mingw64/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from C:/mingw64/x86_64-w64-mingw32/include/c++/ios:40,
from C:/mingw64/x86_64-w64-mingw32/include/c++/ostream:38,
from C:/mingw64/x86_64-w64-mingw32/include/c++/iostream:39,
from src/graphlayout.cpp:15:
C:/mingw64/x86_64-w64-mingw32/include/c++/type_traits: In instantiation
of 'struct std::remove_reference<SPItem*&>':
C:/mingw64/x86_64-w64-mingw32/include/c++/bits/move.h:87:5: required
by substitution of 'template<class _Tp> constexpr _Tp&& s
td::forward(typename std::remove_reference<_From>::type&&) [with _Tp =
SPItem*&]'
C:/mingw64/x86_64-w64-mingw32/include/c++/bits/stl_construct.h:75:68:
required from 'void std::_Construct(_T1*, _Args&& ...) [
with _T1 = SPItem*; _Args = SPItem*&]'
C:/mingw64/x86_64-w64-mingw32/include/c++/bits/stl_uninitialized.h:75:53:
required from 'static _ForwardIterator std::__uninit
ialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator,
_InputIterator, _ForwardIterator) [with _InputIterator = SPItem*
*; _ForwardIterator = SPItem**; bool _TrivialValueTypes = false]'
C:/mingw64/x86_64-w64-mingw32/include/c++/bits/stl_uninitialized.h:125:41:
required from '_ForwardIterator std::uninitialized_
copy(_InputIterator, _InputIterator, _ForwardIterator) [with
_InputIterator = SPItem**; _ForwardIterator = SPItem**]'
C:/mingw64/x86_64-w64-mingw32/include/c++/bits/stl_uninitialized.h:278:63:
required from '_ForwardIterator std::__uninitialize
d_copy_a(_InputIterator, _InputIterator, _ForwardIterator,
std::allocator<_Tp>&) [with _InputIterator = SPItem**; _ForwardIterat
or = SPItem**; _Tp = SPItem*]'
C:/mingw64/x86_64-w64-mingw32/include/c++/bits/vector.tcc:213:29:
required from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _A
lloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = SPItem*;
_Alloc = std::allocator<SPItem*>]'
src/snap.h:148:100: required from here
C:/mingw64/x86_64-w64-mingw32/include/c++/type_traits:1476:5: internal
compiler error: in finish_member_declaration, at cp/seman
tics.c:2828
{ typedef _Tp type; };
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <
http://sourceforge.net/projects/mingw-w64> for instructions.
Can anyone point me in the right direction here?
Kind regards,
Christian Budde
--
Christian-W. Budde
Eleonorenstr. 17
30449 Hannover
Tel.: +49 511 31048857
E-Mail: Christian@...3256...
WWW:
http://www.savioursofsoul.de/Christian
------------------------------------------------------------------------------
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel(a)lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel