Comments (4)
Hi @KimonoYan,
The cmake step looks fine to me, although I see you are using a newer version of cmake than I do (we use cmake 3.7.2).
Maybe more recent versions of cmake are pickier these days and report the syntax of GetDataTypeName
in TypesUtils.hpp as invalid (by missing a proper return statement at the end).
Can you try changing GetDataTypeName
as follows by adding a return statement at the end of it and see if it builds?
constexpr const char* GetDataTypeName(DataType dataType)
{
switch (dataType)
{
case DataType::Float32: return "Float32";
case DataType::QuantisedAsymm8: return "Unsigned8";
case DataType::Signed32: return "Signed32";
default: return "Unknown";
}
return "Unknown"; // <-- The change.
}
If the change above fixes your issue we may need to consider integrating it in future releases.
Let me know if that helped.
Regards
from armnn.
First of all, let me express my thanks for your reply.
I have made the above modifications according to your suggestion, but the problem has not improved.
Besides, some of the other engineering documents I refer to on the web are using cmake 3.9.1 ,no errors were encountered in the build stage.
Here's all the print information:
In file included from /home/kimono/armNN_SDK/armnn-18.05/include/armnn/IRuntime.hpp:12:0,
from /home/kimono/armNN_SDK/armnn-18.05/src/armnn/backends/ClWorkloadFactory.hpp:9,
from /home/kimono/armNN_SDK/armnn-18.05/src/armnn/backends/ClWorkloadFactory.cpp:5:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp: In function ‘constexpr const char* armnn::GetStatusAsCString(armnn::Status)’:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:26:1: error: body of constexpr function ‘constexpr const char* armnn::GetStatusAsCString(armnn::Status)’ not a return-statement
}
^
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp: In function ‘constexpr const char* armnn::GetComputeDeviceAsCString(armnn::Compute)’:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:38:1: error: body of constexpr function ‘constexpr const char* armnn::GetComputeDeviceAsCString(armnn::Compute)’ not a return-statement
}
^
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp: In function ‘constexpr const char* armnn::GetActivationFunctionAsCString(armnn::ActivationFunction)’:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:57:1: error: body of constexpr function ‘constexpr const char* armnn::GetActivationFunctionAsCString(armnn::ActivationFunction)’ not a return-statement
}
^
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp: In function ‘constexpr const char* armnn::GetPoolingAlgorithmAsCString(armnn::PoolingAlgorithm)’:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:69:1: error: body of constexpr function ‘constexpr const char* armnn::GetPoolingAlgorithmAsCString(armnn::PoolingAlgorithm)’ not a return-statement
}
^
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp: In function ‘constexpr const char* armnn::GetOutputShapeRoundingAsCString(armnn::OutputShapeRounding)’:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:81:1: error: body of constexpr function ‘constexpr const char* armnn::GetOutputShapeRoundingAsCString(armnn::OutputShapeRounding)’ not a return-statement
}
^
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp: In function ‘constexpr const char* armnn::GetPaddingMethodAsCString(armnn::PaddingMethod)’:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:93:1: error: body of constexpr function ‘constexpr const char* armnn::GetPaddingMethodAsCString(armnn::PaddingMethod)’ not a return-statement
}
^
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp: In function ‘constexpr unsigned int armnn::GetDataTypeSize(armnn::DataType)’:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:105:1: error: body of constexpr function ‘constexpr unsigned int armnn::GetDataTypeSize(armnn::DataType)’ not a return-statement
}
^
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp: In instantiation of ‘constexpr bool armnn::StrEqual(const char*, const char (&)[N]) [with int N = 7]’:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:120:31: required from here
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:116:1: error: body of constexpr function ‘constexpr bool armnn::StrEqual(const char*, const char (&)[N]) [with int N = 7]’ not a return-statement
}
^
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp: In function ‘constexpr armnn::Compute armnn::ParseComputeDevice(const char*)’:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:136:1: error: body of constexpr function ‘constexpr armnn::Compute armnn::ParseComputeDevice(const char*)’ not a return-statement
}
^
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp: In function ‘constexpr const char* armnn::GetDataTypeName(armnn::DataType)’:
/home/kimono/armNN_SDK/armnn-18.05/include/armnn/TypesUtils.hpp:148:1: error: body of constexpr function ‘constexpr const char* armnn::GetDataTypeName(armnn::DataType)’ not a return-statement
}
^
CMakeFiles/armnn.dir/build.make:62: recipe for target 'CMakeFiles/armnn.dir/src/armnn/backends/ClWorkloadFactory.cpp.o' failed
make[2]: *** [CMakeFiles/armnn.dir/src/armnn/backends/ClWorkloadFactory.cpp.o] Error 1
CMakeFiles/Makefile2:174: recipe for target 'CMakeFiles/armnn.dir/all' failed
make[1]: *** [CMakeFiles/armnn.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
from armnn.
Ignore my previous suggestion, your problem seems to be that your compiler doesn't support C++14 properly.
Specifically, constexpr
is available since gcc 5, have a look at the standard here: https://gcc.gnu.org/projects/cxx-status.html#cxx14 (at "Relaxing requirements on constexpr functions").
I would suggest that you update the compiler and retry.
from armnn.
Hi @KimonoYan,
I hope your issue is resolved now. Please open a new one if you are still having problems.
Thanks,
Surabhi
from armnn.
Related Issues (20)
- opencv failed to call opencl HOT 1
- ScatterND not support HOT 3
- Building ARM NN via Docker approach with specific GLIBC , GLIBCXX versions ... HOT 3
- Gather(ND) dim error HOT 1
- Link error on older Android devices HOT 8
- BUG: using delegate with transformer | AttributeError: 'NoneType' object has no attribute 'c_void_p' HOT 22
- About the configuration setting of externalMemoryManagementEnabled HOT 1
- The mali gpu computation capability is only used no more than 15% when inference resnet50 with ArmNN HOT 1
- onnx deployment fail HOT 7
- Another error on another model and by now it's two out of three :( HOT 22
- Unsupported Operation "Transpose" in armNN::OnnxParser while loading the onnx model file (in the goal to run inference) HOT 8
- Build Issues -Werrors on armbian 24 HOT 1
- nvalid attempt to construct ConstTensor from non-constant TensorInfo HOT 1
- Profiler service warnings seen in ArmNN v24.02 HOT 4
- Does ExecuteNetwork support "GpuAcc" runtime ? HOT 13
- Running YOLOv5 ONNX model with onnx parser of armnn fails with unsupported operation HOT 2
- Crash when support ArmNN AIDL backend based on a shim over the NNAPI Support Library
- Crash when support ArmNN AIDL backend based on a shim over the NNAPI Support Library HOT 2
- Unitests failed HOT 3
- understanding the onnx parser HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from armnn.