Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Alexa startup /ConfigurationNode.cpp.obj error #910

Closed
1 of 7 tasks
ashishbeenu opened this issue Aug 16, 2018 · 3 comments
Closed
1 of 7 tasks

Alexa startup /ConfigurationNode.cpp.obj error #910

ashishbeenu opened this issue Aug 16, 2018 · 3 comments

Comments

@ashishbeenu
Copy link

ashishbeenu commented Aug 16, 2018

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

Briefly summarize your issue:

I am trying to enable Alexa device on my laptop to do it I followed steps from https://github.com/alexa/avs-device-sdk/wiki/Windows-Quick-Start-Guide-with-Script
but while running MinGW64 shell, with configuration as an argument: bash setup.sh config.txt
I am getting below Error message and unable to resolve it:
ayadav32@XXX787721 MINGW64 ~
$ bash setup.sh config.txt
################################################################################
################################################################################

AVS Device SDK Raspberry Pi Script - Terms and Agreements

The AVS Device SDK is dependent on several third-party libraries, environments,
and/or other software packages that are installed using this script from
third-party sources ("External Dependencies"). These are terms and conditions
associated with the External Dependencies
(available at https://github.com/alexa/avs-device-sdk/wiki/Dependencies) that
you need to agree to abide by if you choose to install the External Dependencies.

If you do not agree with every term and condition associated with the External
Dependencies, enter "QUIT" in the command line when prompted by the installer.
Else enter "AGREE".

################################################################################
################################################################################
AGREE
################################################################################
Proceeding with installation
################################################################################
[ 0%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/EventBuilder.cpp.obj
[ 2%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Configuration/ConfigurationNode.cpp.obj
In file included from C:/msys64/home/ayadav32/avs-device-sdk/AVSCommon/Utils/include/AVSCommon/Utils/Configuration/ConfigurationNode.h:26,
from C:/msys64/home/ayadav32/avs-device-sdk/AVSCommon/Utils/src/Configuration/ConfigurationNode.cpp:20:
C:/msys64/home/ayadav32/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/ayadav32/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/ayadav32/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/reader.h:1736:18: required from 'rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::IterativeParsingState rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::Transit(rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::IterativeParsingState, rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::Token, rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::IterativeParsingState, InputStream&, Handler&) [with unsigned int parseFlags = 32; InputStream = rapidjson::BasicIStreamWrapper<std::basic_istream >; Handler = rapidjson::GenericDocument<rapidjson::UTF8<> >; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]'
C:/msys64/home/ayadav32/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/reader.h:1832:58: required from 'rapidjson::ParseResult rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::IterativeParse(InputStream&, Handler&) [with unsigned int parseFlags = 32; InputStream = rapidjson::BasicIStreamWrapper<std::basic_istream >; Handler = rapidjson::GenericDocument<rapidjson::UTF8<> >; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]'
C:/msys64/home/ayadav32/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/reader.h:487:46: required from 'rapidjson::ParseResult rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::Parse(InputStream&, Handler&) [with unsigned int parseFlags = 32; InputStream = rapidjson::BasicIStreamWrapper<std::basic_istream >; Handler = rapidjson::GenericDocument<rapidjson::UTF8<> >; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]'
C:/msys64/home/ayadav32/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:2159:22: required from 'rapidjson::GenericDocument<Encoding, Allocator, StackAllocator>& rapidjson::GenericDocument<Encoding, Allocator, StackAllocator>::ParseStream(InputStream&) [with unsigned int parseFlags = 32; SourceEncoding = rapidjson::UTF8<>; InputStream = rapidjson::BasicIStreamWrapper<std::basic_istream >; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; StackAllocator = rapidjson::CrtAllocator]'
C:/msys64/home/ayadav32/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:2175:62: required from 'rapidjson::GenericDocument<Encoding, Allocator, StackAllocator>& rapidjson::GenericDocument<Encoding, Allocator, StackAllocator>::ParseStream(InputStream&) [with unsigned int parseFlags = 32; InputStream = rapidjson::BasicIStreamWrapper<std::basic_istream >; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; StackAllocator = rapidjson::CrtAllocator]'
C:/msys64/home/ayadav32/avs-device-sdk/AVSCommon/Utils/src/Configuration/ConfigurationNode.cpp:107:56: required from here
C:/msys64/home/ayadav32/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/ayadav32/avs-device-sdk/AVSCommon/Utils/include/AVSCommon/Utils/Configuration/ConfigurationNode.h:26,
from C:/msys64/home/ayadav32/avs-device-sdk/AVSCommon/Utils/src/Configuration/ConfigurationNode.cpp:20:
C:/msys64/home/ayadav32/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/ayadav32/avs-device-sdk/AVSCommon/Utils/include/AVSCommon/Utils/Configuration/ConfigurationNode.h:26,
from C:/msys64/home/ayadav32/avs-device-sdk/AVSCommon/Utils/src/Configuration/ConfigurationNode.cpp:20:
C:/msys64/home/ayadav32/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/ayadav32/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/ayadav32/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/reader.h:1766:18: required from 'rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::IterativeParsingState rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::Transit(rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::IterativeParsingState, rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::Token, rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::IterativeParsingState, InputStream&, Handler&) [with unsigned int parseFlags = 32; InputStream = rapidjson::BasicIStreamWrapper<std::basic_istream >; Handler = rapidjson::GenericDocument<rapidjson::UTF8<> >; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]'
C:/msys64/home/ayadav32/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/reader.h:1832:58: required from 'rapidjson::ParseResult rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::IterativeParse(InputStream&, Handler&) [with unsigned int parseFlags = 32; InputStream = rapidjson::BasicIStreamWrapper<std::basic_istream >; Handler = rapidjson::GenericDocument<rapidjson::UTF8<> >; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]'
C:/msys64/home/ayadav32/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/reader.h:487:46: required from 'rapidjson::ParseResult rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::Parse(InputStream&, Handler&) [with unsigned int parseFlags = 32; InputStream = rapidjson::BasicIStreamWrapper<std::basic_istream >; Handler = rapidjson::GenericDocument<rapidjson::UTF8<> >; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]'
C:/msys64/home/ayadav32/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:2159:22: required from 'rapidjson::GenericDocument<Encoding, Allocator, StackAllocator>& rapidjson::GenericDocument<Encoding, Allocator, StackAllocator>::ParseStream(InputStream&) [with unsigned int parseFlags = 32; SourceEncoding = rapidjson::UTF8<>; InputStream = rapidjson::BasicIStreamWrapper<std::basic_istream >; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; StackAllocator = rapidjson::CrtAllocator]'
C:/msys64/home/ayadav32/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:2175:62: required from 'rapidjson::GenericDocument<Encoding, Allocator, StackAllocator>& rapidjson::GenericDocument<Encoding, Allocator, StackAllocator>::ParseStream(InputStream&) [with unsigned int parseFlags = 32; InputStream = rapidjson::BasicIStreamWrapper<std::basic_istream >; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; StackAllocator = rapidjson::CrtAllocator]'
C:/msys64/home/ayadav32/avs-device-sdk/AVSCommon/Utils/src/Configuration/ConfigurationNode.cpp:107:56: required from here
C:/msys64/home/ayadav32/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/ayadav32/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 {
^~~~~~~~~~~~
In file included from C:/msys64/home/ayadav32/avs-device-sdk/AVSCommon/AVS/src/EventBuilder.cpp:18:
C:/msys64/home/ayadav32/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/ayadav32/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/ayadav32/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/ayadav32/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/ayadav32/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/ayadav32/avs-device-sdk/AVSCommon/AVS/src/EventBuilder.cpp:152:52: required from here
C:/msys64/home/ayadav32/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/ayadav32/avs-device-sdk/AVSCommon/AVS/src/EventBuilder.cpp:18:
C:/msys64/home/ayadav32/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/ayadav32/avs-device-sdk/AVSCommon/AVS/src/EventBuilder.cpp:18:
C:/msys64/home/ayadav32/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/ayadav32/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/ayadav32/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/ayadav32/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/ayadav32/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/ayadav32/avs-device-sdk/AVSCommon/AVS/src/EventBuilder.cpp:152:52: required from here
C:/msys64/home/ayadav32/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/ayadav32/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 {
^~~~~~~~~~~~
cc1plus.exe: all warnings being treated as errors
cc1plus.exe: all warnings being treated as errors
make[3]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/build.make:297: AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Configuration/ConfigurationNode.cpp.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/build.make:232: AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/EventBuilder.cpp.obj] Error 1
make[2]: *** [CMakeFiles/Makefile2:1341: AVSCommon/CMakeFiles/AVSCommon.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:7955: SampleApp/src/CMakeFiles/SampleApp.dir/rule] Error 2
make: *** [Makefile:2060: SampleApp] Error 2

What is the expected behavior?

Alexa AVS should rurn

What behavior are you observing?

I am getting error message please have a look on above ## Briefly summarize your issue: section

Provide the steps to reproduce the issue, if applicable:

Follow the instruction from URL https://github.com/alexa/avs-device-sdk/wiki/Windows-Quick-Start-Guide-with-Script
and open the MinGW64 shell, run the setup script with your configuration as an argument:

bash setup.sh config.txt

Tell us about your environment:

What version of the AVS Device SDK are you using?

  Code taken from the below location:

https://github.com/alexa/avs-device-sdk/wiki/Windows-Quick-Start-Guide-with-Script
using jdk version :
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)

Tell us what hardware you're using:

  • [x ] Laptop
  • Raspberry Pi
  • Other - tell us more:

Tell us about your OS (Type & version):

  • Linux
  • MacOS
  • Raspbian Stretch
  • Raspbian Jessy
  • Other - tell us more: I am using window 10, 64-bit OS,x64-based processor
@kjkh
Copy link

kjkh commented Aug 17, 2018

Hi @ashishbeenu,

This is to do with new warnings (-Wclass-memaccess) in more recent compilers. RapidJSON has fixed the issue in Tencent/rapidjson#1323.

There are a few possible options here (in no particular order) that can each resolve the problem:

  1. Disable the specific warning by appending -Wno-class-memaccess after -Werror (or equivalent for other compilers).
    The build options file is located at <AVS_SDK_SOURCE_DIR>/build/cmake/BuildOptions.cmake.
  2. Upgrade to the newest version of RapidJSON.
    This can be done by navigating into <AVS_SDK_SOURCE_DIR>/ThirdParty/rapidjson, and cloning the new version of the RapidJSON source directory there. Then you need to modify <AVS_SDK_SOURCE_DIR>/ThirdParty/rapidjson/CMakeLists.txt and replace rapidjson-1.1.0 with the name of the new RapidJSON source directory.
  3. Downgrade your compiler to a version before the warning was introduced.

@kjkh
Copy link

kjkh commented Sep 8, 2018

Hi @ashishbeenu,

Version 1.9 fixes this issue. Can you please retry with that version?

@kclchan
Copy link
Contributor

kclchan commented Nov 10, 2018

I am closing this issue due to inactivity. Please feel free to re-open it if it has been closed in error.

@kclchan kclchan closed this as completed Nov 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants