Skip to content

Build command failed. #6

@locoda

Description

@locoda

I cloned code and try to build on my mac, while it tells me build command failed.

My mac info:
MacBook Pro (13-inch, 2018, Four Thunderbolt 3 Ports)
System: MacOS 10.13.6
Graphics: Intel Iris Plus Graphics 655 1536 MB

Build command failed.
Error while executing process /Users/1mether/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /Users/1mether/Purdue/ece673/DeepMon/app/.externalNativeBuild/cmake/debug/armeabi-v7a --target deepmon}
[1/2] Building CXX object CMakeFiles/deepmon.dir/src/main/cpp/dm_execution_engine_gpu.cpp.o
FAILED: /Users/1mether/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++  --target=armv7-none-linux-androideabi21 --gcc-toolchain=/Users/1mether/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/1mether/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot  -Ddeepmon_EXPORTS -I../../../../../distribution/acl/include -I../../../../../distribution/openblas/include -I../../../../../distribution/jsoncpp/include -I../../../../src/main/cpp/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mfpu=vfpv3-d16 -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -std=c++11 -static-libstdc++ -O2 -mfpu=vfpv3-d16 -march=armv7-a -fPIE -fPIC -fvisibility=default -O0 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/deepmon.dir/src/main/cpp/dm_execution_engine_gpu.cpp.o -MF CMakeFiles/deepmon.dir/src/main/cpp/dm_execution_engine_gpu.cpp.o.d -o CMakeFiles/deepmon.dir/src/main/cpp/dm_execution_engine_gpu.cpp.o -c /Users/1mether/Purdue/ece673/DeepMon/app/src/main/cpp/dm_execution_engine_gpu.cpp
clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
In file included from /Users/1mether/Purdue/ece673/DeepMon/app/src/main/cpp/dm_execution_engine_gpu.cpp:26:
In file included from ../../../../src/main/cpp/include/dm_execution_engine_gpu.hpp:18:
In file included from ../../../../src/main/cpp/include/dm_blob.hpp:13:
In file included from ../../../../../distribution/acl/include/arm_compute/runtime/CL/CLFunctions.h:55:
In file included from ../../../../../distribution/acl/include/arm_compute/runtime/CL/functions/CLFastCorners.h:31:
In file included from ../../../../../distribution/acl/include/arm_compute/runtime/CL/CLArray.h:31:
../../../../../distribution/acl/include/arm_compute/runtime/CL/CLScheduler.h:186:16: warning: 'enqueueMarker' is deprecated [-Wdeprecated-declarations]
        _queue.enqueueMarker(&event);
               ^
../../../../../distribution/acl/include/CL/cl2.hpp:7905:53: note: 'enqueueMarker' has been explicitly marked deprecated here
    cl_int enqueueMarker(Event* event = NULL) const CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED
                                                    ^
../../../../../distribution/acl/include/CL/cl_platform.h:92:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /Users/1mether/Purdue/ece673/DeepMon/app/src/main/cpp/dm_execution_engine_gpu.cpp:26:
In file included from ../../../../src/main/cpp/include/dm_execution_engine_gpu.hpp:18:
In file included from ../../../../src/main/cpp/include/dm_blob.hpp:12:
In file included from ../../../../../distribution/acl/include/arm_compute/core/Types.h:27:
In file included from ../../../../../distribution/acl/include/arm_compute/core/Coordinates.h:27:
../../../../../distribution/acl/include/arm_compute/core/Dimensions.h:53:18: error: no viable conversion from 'std::__ndk1::vector<unsigned int, std::__ndk1::allocator<unsigned int> >' to 'unsigned int'
        : _id{ { dims... } }, _num_dimensions{ sizeof...(dims) }
                 ^~~~
../../../../../distribution/acl/include/arm_compute/core/TensorShape.h:47:11: note: in instantiation of function template specialization 'arm_compute::Dimensions<unsigned int>::Dimensions<std::__ndk1::vector<unsigned int, std::__ndk1::allocator<unsigned int> > >' requested here
        : Dimensions{ dims... }
          ^
/Users/1mether/Purdue/ece673/DeepMon/app/src/main/cpp/dm_execution_engine_gpu.cpp:779:31: note: in instantiation of function template specialization 'arm_compute::TensorShape::TensorShape<std::__ndk1::vector<unsigned int, std::__ndk1::allocator<unsigned int> > >' requested here
            const TensorShape tshape(blob->get_reverse_shapes());
                              ^
1 warning and 1 error generated.
ninja: build stopped: subcommand failed.

Any help is appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions