[ 3%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/HandlerAndPolicy.cpp.obj

HI,

I am trying to compile **avs-device-sdk **for window 7 by following below mentioned link.

https://github.com/alexa/avs-device-sdk/wiki/Windows-Quick-Start-Guide-with-Script

As mentioned under  Register a product-> SETUP, Point # 3, to execute command ’ 

bash setup.sh config.txt  

But after executing this command under window 7 am end up with below mentioned error 

ERROR

[1%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/EventBuilder.cpp.obj
[1%] Built target gmock
[3%] Built target gtest
In file included from C:/msys64/home/HasanA/avs-device-sdk/AVSCommon/AVS/src/EventBuilder.cpp:18:
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h: In instantiation of ‘void rapidjson::GenericValue<Encoding, Allocator>::SetObjectRaw(rapidjson::GenericValue<Encoding, Allocator>::Member*, rapidjson::SizeType, Allocator&) [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; rapidjson::GenericValue<Encoding, Allocator>::Member = rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<> >; rapidjson::SizeType = unsigned int]’:
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:2363:9: required from ‘bool rapidjson::GenericDocument<Encoding, Allocator, StackAllocator>::EndObject(rapidjson::SizeType) [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; StackAllocator = rapidjson::CrtAllocator; rapidjson::SizeType = unsigned int]’
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:1784:50: required from ‘bool rapidjson::GenericValue<Encoding, Allocator>::Accept(Handler&) const [with Handler = rapidjson::GenericDocument<rapidjson::UTF8<> >; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]’
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:2414:13: required from ‘rapidjson::GenericValue<Encoding, Allocator>::GenericValue(const rapidjson::GenericValue<Encoding, SourceAllocator>&, Allocator&) [with SourceAllocator = rapidjson::MemoryPoolAllocator<>; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]’
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:808:9: required from ‘rapidjson::GenericValue<Encoding, Allocator>& rapidjson::GenericValue<Encoding, Allocator>::CopyFrom(const rapidjson::GenericValue<Encoding, SourceAllocator>&, Allocator&) [with SourceAllocator = rapidjson::MemoryPoolAllocator<>; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]’
C:/msys64/home/HasanA/avs-device-sdk/AVSCommon/AVS/src/EventBuilder.cpp:152:52: required from here
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:1952:24: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘rapidjson::GenericValue<rapidjson::UTF8<> >::Member’ {aka ‘struct rapidjson::GenericMember<rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<> >’} with no trivial copy-assignment; use copy-assignment instead [-Werror=class-memaccess]
std::memcpy(m, members, count * sizeof(Member));

In file included from C:/msys64/home/HasanA/avs-device-sdk/AVSCommon/AVS/src/EventBuilder.cpp:18:  
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:71:8: note: 'rapidjson::GenericValue\<rapidjson::UTF8\<\> \>::Member' {aka 'struct rapidjson::GenericMember\<rapidjson::UTF8\<\>, rapidjson::MemoryPoolAllocator\<\> \>'} declared here  
struct GenericMember {  
^ ~~~~~~~~~~~~  
In file included from C:/msys64/home/HasanA/avs-device-sdk/AVSCommon/AVS/src/EventBuilder.cpp:18:  
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h: In instantiation of 'void rapidjson::GenericValue\<Encoding, Allocator\>::SetArrayRaw(rapidjson::GenericValue\<Encoding, Allocator\>\*, rapidjson::SizeType, Allocator&) [with Encoding = rapidjson::UTF8\<\>; Allocator = rapidjson::MemoryPoolAllocator\<\>; rapidjson::SizeType = unsigned int]':  
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:2371:9: required from 'bool rapidjson::GenericDocument\<Encoding, Allocator, StackAllocator\>::EndArray(rapidjson::SizeType) [with Encoding = rapidjson::UTF8\<\>; Allocator = rapidjson::MemoryPoolAllocator\<\>; StackAllocator = rapidjson::CrtAllocator; rapidjson::SizeType = unsigned int]'  
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:1792:49: required from 'bool rapidjson::GenericValue\<Encoding, Allocator\>::Accept(Handler&) const [with Handler = rapidjson::GenericDocument\<rapidjson::UTF8\<\> \>; Encoding = rapidjson::UTF8\<\>; Allocator = rapidjson::MemoryPoolAllocator\<\>]'  
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:2414:13: required from 'rapidjson::GenericValue\<Encoding, Allocator\>::GenericValue(const rapidjson::GenericValue\<Encoding, SourceAllocator\>&, Allocator&) [with SourceAllocator = rapidjson::MemoryPoolAllocator\<\>; Encoding = rapidjson::UTF8\<\>; Allocator = rapidjson::MemoryPoolAllocator\<\>]'  
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:808:9: required from 'rapidjson::GenericValue\<Encoding, Allocator\>& rapidjson::GenericValue\<Encoding, Allocator\>::CopyFrom(const rapidjson::GenericValue\<Encoding, SourceAllocator\>&, Allocator&) [with SourceAllocator = rapidjson::MemoryPoolAllocator\<\>; Encoding = rapidjson::UTF8\<\>; Allocator = rapidjson::MemoryPoolAllocator\<\>]'  
C:/msys64/home/HasanA/avs-device-sdk/AVSCommon/AVS/src/EventBuilder.cpp:152:52: required from here  
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:1939:24: error: 'void\* memcpy(void\*, const void\*, size\_t)' writing to an object of type 'class rapidjson::GenericValue\<rapidjson::UTF8\<\> \>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]  
std::memcpy(e, values, count \* sizeof(GenericValue));  
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
C:/msys64/home/HasanA/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:540:7: note: 'class rapidjson::GenericValue\<rapidjson::UTF8\<\> \>' declared here  
class GenericValue {  
^ ~~~~~~~~~~~  
<font color="#FF0000"><strong>[3%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/HandlerAndPolicy.cpp.obj</strong></font>  
<font color="#FF0000"><strong>cc1plus.exe: all warnings being treated as errors</strong></font>  
<font color="#FF0000"><strong>make[3]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/build.make:439: AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/EventBuilder.cpp.obj] Error 1</strong></font>  
<font color="#FF0000"><strong>make[3]: *** Waiting for unfinished jobs....</strong></font>  
<font color="#FF0000"><strong>make[2]: *** [CMakeFiles/Makefile2:1362: AVSCommon/CMakeFiles/AVSCommon.dir/all] Error 2</strong></font>  
<font color="#FF0000"><strong>make[1]: *** [CMakeFiles/Makefile2:8289: SampleApp/src/CMakeFiles/SampleApp.dir/rule] Error 2</strong></font>  
<font color="#FF0000"><strong>make: *** [Makefile:2138: SampleApp] Error 2</strong></font>

I tryed downgrading CMAKE version to 3.8 as well but still getting same error, please let me know what am I missing?

Please post If someone got any solution for the above error.