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

Failing to make SampleApp on MacOS - delete called on non-final [InternetConnectionMonitor.h] that has virtual functions but non-virtual destructor #880

Closed
2 of 8 tasks
jeffdeville opened this issue Jul 28, 2018 · 5 comments

Comments

@jeffdeville
Copy link

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

Briefly summarize your issue:

Following the mac installation instruction, but failing on make SampleApp -j2

What is the expected behavior?

It should make the Sample App

What behavior are you observing?

make SampleApp -j2                                                                                         ✘ 1  (docker-for-desktop)
[  1%] Built target gmock
[  1%] Built target gtest
[  1%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Network/InternetConnectionMonitor.cpp.o
[  1%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/UUIDGeneration.cpp.o
In file included from /Users/jeff/sdk-folder/sdk-source/avs-device-sdk/AVSCommon/Utils/src/Network/InternetConnectionMonitor.cpp:16:
In file included from /Users/jeff/sdk-folder/sdk-source/avs-device-sdk/AVSCommon/Utils/include/AVSCommon/Utils/Network/InternetConnectionMonitor.h:20:
/Library/Developer/CommandLineTools/usr/include/c++/v1/memory:2285:5: error: delete called on non-final
      'alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor' that has virtual functions but non-virtual destructor
      [-Werror,-Wdelete-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/memory:2598:7: note: in instantiation of member function
      'std::__1::default_delete<alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/memory:2552:19: note: in instantiation of member function
      'std::__1::unique_ptr<alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor,
      std::__1::default_delete<alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor> >::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Users/jeff/sdk-folder/sdk-source/avs-device-sdk/AVSCommon/Utils/src/Network/InternetConnectionMonitor.cpp:52:16: note: in instantiation of member
      function 'std::__1::unique_ptr<alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor,
      std::__1::default_delete<alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor> >::~unique_ptr' requested here
        return nullptr;
               ^
1 error generated.
make[3]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Network/InternetConnectionMonitor.cpp.o] Error 1
make[2]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/all] Error 2
make[1]: *** [SampleApp/src/CMakeFiles/SampleApp.dir/rule] Error 2
make: *** [SampleApp] Error 2

Provide the steps to reproduce the issue, if applicable:

I'm just following the MacOS install instructions. I did hit the issue when compiling portaudio that required me to run: ./configure --disable-mac-universal && make. Other than that, I'm just following along, and dying at

Tell us about your environment:

What version of the AVS Device SDK are you using?

  1.8.1 (plus a few commits, since it just clones master). I'm on SHA 1255f3398b9c9bdd92d8fcde89c90f19f49eb21d

Tell us what hardware you're using:

  • Desktop / Laptop - MacOS High Sierra 10.13.6
  • Raspberry Pi
  • Other - tell us more:

Tell us about your OS (Type & version):

  • Linux
  • MacOS
  • Raspbian Stretch
  • Raspbian Jessy
  • Other - tell us more:

clang -v

Apple LLVM version 10.0.0 (clang-1000.10.25.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
@jeffdeville
Copy link
Author

Note: checking out tags/v1.6 builds fine. But since InternetConnectionMonitor was added in 1.7, the build fails from there on.

@priyagsenthil
Copy link
Contributor

Hi jeffdeville,

Could you provide me the cmake options that you are using and the version of gcc that shows this problem. We have not encountered any issues compiling on MacOS. What version of Mac OS and gcc are you using. Please advise.

Thanks
Priya

@jeffdeville
Copy link
Author

jeffdeville commented Jul 31, 2018

Sure, @priyagsenthil, thank you for checking in!

I'm on MacOS High Sierra 10.13.6
CMake: 3.12.0
GCC: gcc-8.2.0.high_sierra.bottle.tar.gz (from homebrew), but it is configured with: --with-gxx-include-dir=/usr/include/c++/4.2.1, so I assume the 4.2.1 version is also important

Here's the command I'm running, now back against the master branch.

~/s/sdk-build ❯❯❯ cd ~/sdk-folder/sdk-build && cmake /Users/jeff/sdk-folder/sdk-source/avs-device-sdk -DGSTREAMER_MEDIA_PLAYER=ON -DPORTAUDIO=ON -DPORTAUDIO_LIB_PATH=/Users/jeff/sdk-folder/third-party/portaudio/lib/.libs/libportaudio.a -DPORTAUDIO_INCLUDE_DIR=/Users/jeff/sdk-folder/third-party/portaudio/include
-- The CXX compiler identification is AppleClang 10.0.0.10001025
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
No build type specified, defaulting to Release.
Creating the build directory for the AlexaClientSDK with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Checking for modules 'gstreamer-1.0>=1.8;gstreamer-app-1.0>=1.8'
--   Found gstreamer-1.0, version 1.14.2
--   Found gstreamer-app-1.0, version 1.14.2
Bluetooth implementation not supported
CMake Warning (dev) at ThirdParty/googletest-release-1.8.0/CMakeLists.txt:3 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is AppleClang 10.0.0.10001025
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning (dev) at ThirdParty/googletest-release-1.8.0/googlemock/CMakeLists.txt:40 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at ThirdParty/googletest-release-1.8.0/googletest/CMakeLists.txt:47 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /Users/jeff/.pyenv/shims/python (found version "3.7")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found CURL: /usr/lib/libcurl.dylib (found suitable version "7.54.0", minimum required is "7.43.0")
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the ACL with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the Authorization with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
Creating the build directory for the CBLAuthDelegate with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
Creating the build directory for the ADSL with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the AFML with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the BluetoothImplementations with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
Creating the build directory for the CertifiedSender with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the ContextManager with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the CapabilitiesDelegate with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the MediaPlayer with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the PlaylistParser with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the CapabilityAgents with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
Creating the build directory for the AIP with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the Alerts with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the AudioPlayer with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the Bluetooth with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the ExternalMediaPlayer with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the MRM with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
Creating the build directory for the Notifications with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the SpeakerManager with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the SpeechSynthesizer with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the Integration with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Please fill /Users/jeff/sdk-folder/sdk-build/Integration/AlexaClientSDKConfig.json before you execute integration tests.
Skipping build of NetworkIntegrationTests.cpp.
Creating the build directory for the ApplicationUtilities with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
Creating the build directory for the DefaultClient with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
Creating the build directory for the ESP with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
Creating the build directory for the RegistrationManager with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
Creating the build directory for the SampleApp with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
Creating the build directory for the Storage with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
Creating the build directory for the SQLiteStorage with build type: RELEASE
No keyword detector type specified, skipping build of keyword detector.
Bluetooth implementation not supported
-- Checking for module 'sqlite3'
--   Found sqlite3, version 3.14.0
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.14") found components:  doxygen dot
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jeff/sdk-folder/sdk-build
~/s/sdk-build ❯❯❯ make SampleApp -j4                                                                                              (docker-for-desktop)
Scanning dependencies of target gtest
Scanning dependencies of target gmock
Scanning dependencies of target AVSCommon
[  0%] Building CXX object ThirdParty/googletest-release-1.8.0/googlemock/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[  0%] Building CXX object ThirdParty/googletest-release-1.8.0/googlemock/CMakeFiles/gmock.dir/__/googletest/src/gtest-all.cc.o
[  0%] Building CXX object ThirdParty/googletest-release-1.8.0/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[  0%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/AVSDirective.cpp.o
[  0%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/AVSMessage.cpp.o
[  0%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/AVSMessageHeader.cpp.o
[  1%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/AbstractAVSConnectionManager.cpp.o
[  1%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/ExternalMediaPlayer/AdapterUtils.cpp.o
[  1%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/AlexaClientSDKInit.cpp.o
[  1%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/Attachment/Attachment.cpp.o
[  3%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/Attachment/AttachmentManager.cpp.o
[  3%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/Attachment/AttachmentUtils.cpp.o
[  3%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/Attachment/InProcessAttachment.cpp.o
[  3%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/Attachment/InProcessAttachmentReader.cpp.o
[  5%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/Attachment/InProcessAttachmentWriter.cpp.o
[  5%] Linking CXX static library libgtest.a
[  7%] Linking CXX static library libgmock.a
[  7%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/CapabilityConfiguration.cpp.o
[  7%] Built target gtest
[  7%] Built target gmock
[  7%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/CapabilityAgent.cpp.o
[  7%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/DialogUXStateAggregator.cpp.o
[  9%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/EventBuilder.cpp.o
[  9%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/ExceptionEncounteredSender.cpp.o
[  9%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/HandlerAndPolicy.cpp.o
[  9%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/MessageRequest.cpp.o
[ 11%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/NamespaceAndName.cpp.o
[ 11%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Bluetooth/SDPRecords.cpp.o
[ 11%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/BluetoothEventBus.cpp.o
[ 11%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Configuration/ConfigurationNode.cpp.o
[ 13%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/DeviceInfo.cpp.o
[ 13%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Executor.cpp.o
[ 13%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/FileUtils.cpp.o
[ 13%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/FormattedAudioStreamAdapter.cpp.o
[ 15%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/JSONUtils.cpp.o
[ 15%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/CallbackData.cpp.o
[ 15%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/CurlEasyHandleWrapper.cpp.o
[ 15%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/CurlMultiHandleWrapper.cpp.o
[ 17%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/HTTPContentFetcherFactory.cpp.o
[ 17%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/HttpPost.cpp.o
[ 17%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/HttpPut.cpp.o
[ 17%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/HTTPResponse.cpp.o
[ 19%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/LibCurlHttpContentFetcher.cpp.o
[ 19%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/LibcurlUtils/LibcurlUtils.cpp.o
[ 19%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/ConsoleLogger.cpp.o
[ 19%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/Level.cpp.o
[ 21%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/LogEntry.cpp.o
[ 21%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/LogEntryBuffer.cpp.o
[ 21%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/LogEntryStream.cpp.o
[ 21%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/Logger.cpp.o
[ 23%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/LoggerSinkManager.cpp.o
[ 23%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/LoggerUtils.cpp.o
[ 23%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/LogStringFormatter.cpp.o
[ 23%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/ModuleLogger.cpp.o
[ 25%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Logger/ThreadMoniker.cpp.o
[ 25%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/MacAddressString.cpp.o
[ 25%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Metrics.cpp.o
[ 25%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Network/InternetConnectionMonitor.cpp.o
[ 26%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/RequiresShutdown.cpp.o
[ 26%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/RetryTimer.cpp.o
[ 26%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/SafeCTimeAccess.cpp.o
In file included from /Users/jeff/sdk-folder/sdk-source/avs-device-sdk/AVSCommon/Utils/src/Network/InternetConnectionMonitor.cpp:16:
In file included from /Users/jeff/sdk-folder/sdk-source/avs-device-sdk/AVSCommon/Utils/include/AVSCommon/Utils/Network/InternetConnectionMonitor.h:20:
/Library/Developer/CommandLineTools/usr/include/c++/v1/memory:2285:5: error: delete called on non-final
      'alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor' that has virtual functions but non-virtual destructor
      [-Werror,-Wdelete-non-virtual-dtor]
    delete __ptr;
    ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/memory:2598:7: note: in instantiation of member function
      'std::__1::default_delete<alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/memory:2552:19: note: in instantiation of member function
      'std::__1::unique_ptr<alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor,
      std::__1::default_delete<alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor> >::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
/Users/jeff/sdk-folder/sdk-source/avs-device-sdk/AVSCommon/Utils/src/Network/InternetConnectionMonitor.cpp:52:16: note: in instantiation of member
      function 'std::__1::unique_ptr<alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor,
      std::__1::default_delete<alexaClientSDK::avsCommon::utils::network::InternetConnectionMonitor> >::~unique_ptr' requested here
        return nullptr;
               ^
[ 26%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Stream/StreamFunctions.cpp.o
[ 28%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Stream/Streambuf.cpp.o
1 error generated.
make[3]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/Utils/src/Network/InternetConnectionMonitor.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/all] Error 2
make[1]: *** [SampleApp/src/CMakeFiles/SampleApp.dir/rule] Error 2
make: *** [SampleApp] Error 2

@priyagsenthil
Copy link
Contributor

Hi jeffdeville,

As per https://github.com/alexa/avs-device-sdk/wiki/Dependencies to compile SDK one needs to have
GNU Compiler Collection (GCC) 4.8.5 or later OR Clang 3.9 or later. Could you upgrade to a new version of gcc and try compiling.

Thanks
Priya

@kclchan
Copy link
Contributor

kclchan commented Sep 14, 2018

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

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