Bug#1076959: onnxruntime: FTBFS: /usr/include/flatbuffers/vector.h:148:56: error: redeclared with 2 template parameters
Package: src:onnxruntime
Version: 1.16.3+dfsg-4
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary -Scmake -Dcmake
dh_update_autotools_config -O-Scmake -O-Dcmake
dh_autoreconf -O-Scmake -O-Dcmake
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# Rebuild autogenerated flatbuffers files
chmod +x onnxruntime/core/flatbuffers/schema/compile_schema.py
onnxruntime/core/flatbuffers/schema/compile_schema.py --flatc /usr/bin/flatc
dh_auto_configure -- \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-Deigen_SOURCE_PATH=/usr/include/eigen3 \
-Donnxruntime_BUILD_BENCHMARKS=ON \
-Donnxruntime_BUILD_SHARED_LIB=ON \
[... snipped ...]
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/schema/ort.fbs.h:233:14: note: ‘onnxruntime::fbs::TensorDataType’ declared here
233 | inline const TensorDataType (&EnumValuesTensorDataType())[21] {
| ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc: At global scope:
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:97:57: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
97 | flatbuffers::Offset<fbs::TypeInfo>& fbs_type_info) {
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:97:70: error: template argument 1 is invalid
97 | flatbuffers::Offset<fbs::TypeInfo>& fbs_type_info) {
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:97:57: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
97 | flatbuffers::Offset<fbs::TypeInfo>& fbs_type_info) {
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:97:70: error: template argument 1 is invalid
97 | flatbuffers::Offset<fbs::TypeInfo>& fbs_type_info) {
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:97:57: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
97 | flatbuffers::Offset<fbs::TypeInfo>& fbs_type_info) {
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:97:70: error: template argument 1 is invalid
97 | flatbuffers::Offset<fbs::TypeInfo>& fbs_type_info) {
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:97:37: error: invalid template-id
97 | flatbuffers::Offset<fbs::TypeInfo>& fbs_type_info) {
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:97:57: error: ‘fbs’ has not been declared
97 | flatbuffers::Offset<fbs::TypeInfo>& fbs_type_info) {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:97:37: error: missing template argument list after ‘flatbuffers::Offset’; template placeholder not permitted in parameter
97 | flatbuffers::Offset<fbs::TypeInfo>& fbs_type_info) {
| ^~~~~~~~~~~
| <>
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:20:8: note: ‘template<class T> struct flatbuffers::Offset’ declared here
20 | struct Offset;
| ^~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc: In function ‘onnxruntime::common::Status flatbuffers::SaveTypeInfoOrtFormat(...)’:
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:98:21: error: ‘SaveStringToOrtFormat’ was not declared in this scope; did you mean ‘flatbuffers::SaveStringToOrtFormat’?
98 | auto denotation = SaveStringToOrtFormat(builder, type_proto.has_denotation(), type_proto.denotation());
| ^~~~~~~~~~~~~~~~~~~~~
| flatbuffers::SaveStringToOrtFormat
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:19:42: note: ‘flatbuffers::SaveStringToOrtFormat’ declared here
19 | flatbuffers::Offset<flatbuffers::String> SaveStringToOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:99:21: error: ‘fbs’ has not been declared
99 | auto value_type = fbs::TypeInfoValue::tensor_type;
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:104:27: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
104 | flatbuffers::Offset<fbs::TensorTypeAndShape> fbs_tensor_type;
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:104:50: error: template argument 1 is invalid
104 | flatbuffers::Offset<fbs::TensorTypeAndShape> fbs_tensor_type;
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:106:11: error: ‘SaveTensorTypeAndShapeOrtFormat’ was not declared in this scope; did you mean ‘flatbuffers::SaveTensorTypeAndShapeOrtFormat’?
106 | SaveTensorTypeAndShapeOrtFormat(builder, type_proto.tensor_type(), fbs_tensor_type));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/include/onnxruntime/core/common/common.h:225:21: note: in definition of macro ‘ORT_RETURN_IF_ERROR_SESSIONID’
225 | auto _status = (expr); \
| ^~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:105:7: note: in expansion of macro ‘ORT_RETURN_IF_ERROR’
105 | ORT_RETURN_IF_ERROR(
| ^~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:80:15: note: ‘flatbuffers::SaveTensorTypeAndShapeOrtFormat’ declared here
80 | static Status SaveTensorTypeAndShapeOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:107:31: error: request for member ‘Union’ in ‘fbs_tensor_type’, which is of non-class type ‘int’
107 | value = fbs_tensor_type.Union();
| ^~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:110:20: error: ‘fbs’ has not been declared
110 | value_type = fbs::TypeInfoValue::sequence_type;
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:111:27: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
111 | flatbuffers::Offset<fbs::SequenceType> fbs_sequence_type;
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:111:44: error: template argument 1 is invalid
111 | flatbuffers::Offset<fbs::SequenceType> fbs_sequence_type;
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:113:11: error: ‘SaveSequenceTypeOrtFormat’ was not declared in this scope; did you mean ‘flatbuffers::SaveSequenceTypeOrtFormat’?
113 | SaveSequenceTypeOrtFormat(builder, type_proto.sequence_type(), fbs_sequence_type));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/include/onnxruntime/core/common/common.h:225:21: note: in definition of macro ‘ORT_RETURN_IF_ERROR_SESSIONID’
225 | auto _status = (expr); \
| ^~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:112:7: note: in expansion of macro ‘ORT_RETURN_IF_ERROR’
112 | ORT_RETURN_IF_ERROR(
| ^~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:61:15: note: ‘flatbuffers::SaveSequenceTypeOrtFormat’ declared here
61 | static Status SaveSequenceTypeOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:114:33: error: request for member ‘Union’ in ‘fbs_sequence_type’, which is of non-class type ‘int’
114 | value = fbs_sequence_type.Union();
| ^~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:117:20: error: ‘fbs’ has not been declared
117 | value_type = fbs::TypeInfoValue::map_type;
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:118:27: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
118 | flatbuffers::Offset<fbs::MapType> fbs_map_type;
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:118:39: error: template argument 1 is invalid
118 | flatbuffers::Offset<fbs::MapType> fbs_map_type;
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:120:11: error: ‘SaveMapTypeOrtFormat’ was not declared in this scope; did you mean ‘flatbuffers::SaveMapTypeOrtFormat’?
120 | SaveMapTypeOrtFormat(builder, type_proto.map_type(), fbs_map_type));
| ^~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/include/onnxruntime/core/common/common.h:225:21: note: in definition of macro ‘ORT_RETURN_IF_ERROR_SESSIONID’
225 | auto _status = (expr); \
| ^~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:119:7: note: in expansion of macro ‘ORT_RETURN_IF_ERROR’
119 | ORT_RETURN_IF_ERROR(
| ^~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:70:15: note: ‘flatbuffers::SaveMapTypeOrtFormat’ declared here
70 | static Status SaveMapTypeOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:121:28: error: request for member ‘Union’ in ‘fbs_map_type’, which is of non-class type ‘int’
121 | value = fbs_map_type.Union();
| ^~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:128:3: error: ‘fbs’ has not been declared
128 | fbs::TypeInfoBuilder tb(builder);
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:129:3: error: ‘tb’ was not declared in this scope; did you mean ‘tm’?
129 | tb.add_denotation(denotation);
| ^~
| tm
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:132:3: error: ‘fbs_type_info’ was not declared in this scope
132 | fbs_type_info = tb.Finish();
| ^~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc: At global scope:
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:138:51: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
138 | flatbuffers::Offset<fbs::ValueInfo>& fbs_value_info) {
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:138:65: error: template argument 1 is invalid
138 | flatbuffers::Offset<fbs::ValueInfo>& fbs_value_info) {
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:138:51: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
138 | flatbuffers::Offset<fbs::ValueInfo>& fbs_value_info) {
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:138:65: error: template argument 1 is invalid
138 | flatbuffers::Offset<fbs::ValueInfo>& fbs_value_info) {
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:138:51: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
138 | flatbuffers::Offset<fbs::ValueInfo>& fbs_value_info) {
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:138:65: error: template argument 1 is invalid
138 | flatbuffers::Offset<fbs::ValueInfo>& fbs_value_info) {
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:138:31: error: invalid template-id
138 | flatbuffers::Offset<fbs::ValueInfo>& fbs_value_info) {
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:138:51: error: ‘fbs’ has not been declared
138 | flatbuffers::Offset<fbs::ValueInfo>& fbs_value_info) {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:138:31: error: missing template argument list after ‘flatbuffers::Offset’; template placeholder not permitted in parameter
138 | flatbuffers::Offset<fbs::ValueInfo>& fbs_value_info) {
| ^~~~~~~~~~~
| <>
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:20:8: note: ‘template<class T> struct flatbuffers::Offset’ declared here
20 | struct Offset;
| ^~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc: In function ‘onnxruntime::common::Status flatbuffers::SaveValueInfoOrtFormat(...)’:
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:139:15: error: invalid use of incomplete type ‘class flatbuffers::FlatBufferBuilder’
139 | auto name = builder.CreateSharedString(value_info_proto.name());
| ^~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:17:7: note: forward declaration of ‘class flatbuffers::FlatBufferBuilder’
17 | class FlatBufferBuilder;
| ^~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:140:21: error: ‘SaveStringToOrtFormat’ was not declared in this scope; did you mean ‘flatbuffers::SaveStringToOrtFormat’?
140 | auto doc_string = SaveStringToOrtFormat(builder, value_info_proto.has_doc_string(), value_info_proto.doc_string());
| ^~~~~~~~~~~~~~~~~~~~~
| flatbuffers::SaveStringToOrtFormat
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:19:42: note: ‘flatbuffers::SaveStringToOrtFormat’ declared here
19 | flatbuffers::Offset<flatbuffers::String> SaveStringToOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:141:23: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
141 | flatbuffers::Offset<fbs::TypeInfo> type_info = 0; // 0 indicates null
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:141:36: error: template argument 1 is invalid
141 | flatbuffers::Offset<fbs::TypeInfo> type_info = 0; // 0 indicates null
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:144:9: error: ‘SaveTypeInfoOrtFormat’ was not declared in this scope; did you mean ‘flatbuffers::SaveTypeInfoOrtFormat’?
144 | SaveTypeInfoOrtFormat(builder, value_info_proto.type(), type_info));
| ^~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/include/onnxruntime/core/common/common.h:225:21: note: in definition of macro ‘ORT_RETURN_IF_ERROR_SESSIONID’
225 | auto _status = (expr); \
| ^~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:143:5: note: in expansion of macro ‘ORT_RETURN_IF_ERROR’
143 | ORT_RETURN_IF_ERROR(
| ^~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:95:15: note: ‘flatbuffers::SaveTypeInfoOrtFormat’ declared here
95 | static Status SaveTypeInfoOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:155:3: error: ‘fbs’ is not a class, namespace, or enumeration
155 | fbs::ValueInfoBuilder vb(builder);
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:156:3: error: ‘vb’ was not declared in this scope
156 | vb.add_name(name);
| ^~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:159:3: error: ‘fbs_value_info’ was not declared in this scope
159 | fbs_value_info = vb.Finish();
| ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc: At global scope:
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:170:43: error: ‘fbs’ does not name a type
170 | static Status LoadTypeInfoOrtFormat(const fbs::TypeInfo& fbs_type_info,
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:170:56: error: expected unqualified-id before ‘&’ token
170 | static Status LoadTypeInfoOrtFormat(const fbs::TypeInfo& fbs_type_info,
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:170:56: error: expected ‘)’ before ‘&’ token
170 | static Status LoadTypeInfoOrtFormat(const fbs::TypeInfo& fbs_type_info,
| ~ ^
| )
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:170:58: error: expected initializer before ‘fbs_type_info’
170 | static Status LoadTypeInfoOrtFormat(const fbs::TypeInfo& fbs_type_info,
| ^~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:173:50: error: ‘fbs’ does not name a type
173 | static Status LoadTensorDimensionOrtFormat(const fbs::Dimension& fbs_dim,
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:173:64: error: expected unqualified-id before ‘&’ token
173 | static Status LoadTensorDimensionOrtFormat(const fbs::Dimension& fbs_dim,
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:173:64: error: expected ‘)’ before ‘&’ token
173 | static Status LoadTensorDimensionOrtFormat(const fbs::Dimension& fbs_dim,
| ~ ^
| )
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:173:66: error: expected initializer before ‘fbs_dim’
173 | static Status LoadTensorDimensionOrtFormat(const fbs::Dimension& fbs_dim,
| ^~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:195:46: error: ‘fbs’ does not name a type
195 | static Status LoadTensorShapeOrtFormat(const fbs::Shape& fbs_shape, TensorShapeProto& shape_proto) {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:195:56: error: expected unqualified-id before ‘&’ token
195 | static Status LoadTensorShapeOrtFormat(const fbs::Shape& fbs_shape, TensorShapeProto& shape_proto) {
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:195:56: error: expected ‘)’ before ‘&’ token
195 | static Status LoadTensorShapeOrtFormat(const fbs::Shape& fbs_shape, TensorShapeProto& shape_proto) {
| ~ ^
| )
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:195:58: error: expected initializer before ‘fbs_shape’
195 | static Status LoadTensorShapeOrtFormat(const fbs::Shape& fbs_shape, TensorShapeProto& shape_proto) {
| ^~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:209:53: error: ‘fbs’ does not name a type
209 | static Status LoadTensorTypeAndShapeOrtFormat(const fbs::TensorTypeAndShape& fbs_tensor_type,
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:209:76: error: expected unqualified-id before ‘&’ token
209 | static Status LoadTensorTypeAndShapeOrtFormat(const fbs::TensorTypeAndShape& fbs_tensor_type,
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:209:76: error: expected ‘)’ before ‘&’ token
209 | static Status LoadTensorTypeAndShapeOrtFormat(const fbs::TensorTypeAndShape& fbs_tensor_type,
| ~ ^
| )
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:209:78: error: expected initializer before ‘fbs_tensor_type’
209 | static Status LoadTensorTypeAndShapeOrtFormat(const fbs::TensorTypeAndShape& fbs_tensor_type,
| ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:219:47: error: ‘fbs’ does not name a type
219 | static Status LoadSequenceTypeOrtFormat(const fbs::SequenceType& fbs_sequence_type,
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:219:64: error: expected unqualified-id before ‘&’ token
219 | static Status LoadSequenceTypeOrtFormat(const fbs::SequenceType& fbs_sequence_type,
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:219:64: error: expected ‘)’ before ‘&’ token
219 | static Status LoadSequenceTypeOrtFormat(const fbs::SequenceType& fbs_sequence_type,
| ~ ^
| )
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:219:66: error: expected initializer before ‘fbs_sequence_type’
219 | static Status LoadSequenceTypeOrtFormat(const fbs::SequenceType& fbs_sequence_type,
| ^~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:227:42: error: ‘fbs’ does not name a type
227 | static Status LoadMapTypeOrtFormat(const fbs::MapType& fbs_map_type,
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:227:54: error: expected unqualified-id before ‘&’ token
227 | static Status LoadMapTypeOrtFormat(const fbs::MapType& fbs_map_type,
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:227:54: error: expected ‘)’ before ‘&’ token
227 | static Status LoadMapTypeOrtFormat(const fbs::MapType& fbs_map_type,
| ~ ^
| )
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:227:56: error: expected initializer before ‘fbs_map_type’
227 | static Status LoadMapTypeOrtFormat(const fbs::MapType& fbs_map_type,
| ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:236:43: error: ‘fbs’ does not name a type
236 | static Status LoadTypeInfoOrtFormat(const fbs::TypeInfo& fbs_type_info,
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:236:56: error: expected unqualified-id before ‘&’ token
236 | static Status LoadTypeInfoOrtFormat(const fbs::TypeInfo& fbs_type_info,
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:236:56: error: expected ‘)’ before ‘&’ token
236 | static Status LoadTypeInfoOrtFormat(const fbs::TypeInfo& fbs_type_info,
| ~ ^
| )
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:236:58: error: expected initializer before ‘fbs_type_info’
236 | static Status LoadTypeInfoOrtFormat(const fbs::TypeInfo& fbs_type_info,
| ^~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:261:37: error: ‘fbs’ does not name a type
261 | Status LoadValueInfoOrtFormat(const fbs::ValueInfo& fbs_value_info,
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:261:51: error: expected unqualified-id before ‘&’ token
261 | Status LoadValueInfoOrtFormat(const fbs::ValueInfo& fbs_value_info,
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:261:51: error: expected ‘)’ before ‘&’ token
261 | Status LoadValueInfoOrtFormat(const fbs::ValueInfo& fbs_value_info,
| ~ ^
| )
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:261:53: error: expected initializer before ‘fbs_value_info’
261 | Status LoadValueInfoOrtFormat(const fbs::ValueInfo& fbs_value_info,
| ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:281:79: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
281 | Status LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<fbs::OperatorSetId>>* fbs_op_set_ids,
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:281:97: error: template argument 1 is invalid
281 | Status LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<fbs::OperatorSetId>>* fbs_op_set_ids,
| ^~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:281:79: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
281 | Status LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<fbs::OperatorSetId>>* fbs_op_set_ids,
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:281:97: error: template argument 1 is invalid
281 | Status LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<fbs::OperatorSetId>>* fbs_op_set_ids,
| ^~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:281:79: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
281 | Status LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<fbs::OperatorSetId>>* fbs_op_set_ids,
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:281:97: error: template argument 1 is invalid
281 | Status LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<fbs::OperatorSetId>>* fbs_op_set_ids,
| ^~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:281:59: error: invalid template-id
281 | Status LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<fbs::OperatorSetId>>* fbs_op_set_ids,
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:281:79: error: ‘fbs’ was not declared in this scope; did you mean ‘onnxruntime::fbs’?
281 | Status LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<fbs::OperatorSetId>>* fbs_op_set_ids,
| ^~~
| onnxruntime::fbs
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:30:11: note: ‘onnxruntime::fbs’ declared here
30 | namespace fbs {
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:282:71: error: template argument 1 is invalid
282 | std::unordered_map<std::string, int>& domain_to_version) {
| ^~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:282:71: error: template argument 1 is invalid
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:282:71: error: template argument 1 is invalid
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:281:39: error: invalid template-id
281 | Status LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<fbs::OperatorSetId>>* fbs_op_set_ids,
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:282:88: error: ‘onnxruntime::common::Status onnxruntime::fbs::utils::LoadOpsetImportOrtFormat’ redeclared as different kind of entity
282 | std::unordered_map<std::string, int>& domain_to_version) {
| ^
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:59:29: note: previous declaration ‘onnxruntime::common::Status onnxruntime::fbs::utils::LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<onnxruntime::fbs::OperatorSetId> >*, std::unordered_map<std::__cxx11::basic_string<char>, int>&)’
59 | onnxruntime::common::Status LoadOpsetImportOrtFormat(
| ^~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:281:33: error: expected primary-expression before ‘const’
281 | Status LoadOpsetImportOrtFormat(const flatbuffers::Vector<flatbuffers::Offset<fbs::OperatorSetId>>* fbs_op_set_ids,
| ^~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:305:29: error: ‘PathString’ does not name a type
305 | bool IsOrtFormatModel(const PathString& filename) {
| ^~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc: In function ‘bool flatbuffers::IsOrtFormatModel(const int&)’:
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:306:29: error: request for member ‘size’ in ‘filename’, which is of non-class type ‘const int’
306 | const auto len = filename.size();
| ^~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:309:10: error: ‘ToLowerPathChar’ was not declared in this scope; did you mean ‘onnxruntime::ToLowerPathChar’?
309 | ToLowerPathChar(filename[len - 3]) == ORT_TSTR('o') &&
| ^~~~~~~~~~~~~~~
| onnxruntime::ToLowerPathChar
In file included from /<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.h:9:
/<<PKGBUILDDIR>>/onnxruntime/core/common/path_string.h:50:17: note: ‘onnxruntime::ToLowerPathChar’ declared here
50 | inline PathChar ToLowerPathChar(PathChar c) {
| ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc: In function ‘bool flatbuffers::IsOrtFormatModelBytes(const void*, int)’:
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:316:10: error: ‘fbs’ has not been declared
316 | fbs::InferenceSessionBufferHasIdentifier(bytes);
| ^~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc: At global scope:
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:95:15: error: ‘onnxruntime::common::Status flatbuffers::SaveTypeInfoOrtFormat(...)’ defined but not used [-Werror=unused-function]
95 | static Status SaveTypeInfoOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:80:15: error: ‘onnxruntime::common::Status flatbuffers::SaveTensorTypeAndShapeOrtFormat(...)’ defined but not used [-Werror=unused-function]
80 | static Status SaveTensorTypeAndShapeOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:70:15: error: ‘onnxruntime::common::Status flatbuffers::SaveMapTypeOrtFormat(...)’ defined but not used [-Werror=unused-function]
70 | static Status SaveMapTypeOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:61:15: error: ‘onnxruntime::common::Status flatbuffers::SaveSequenceTypeOrtFormat(...)’ defined but not used [-Werror=unused-function]
61 | static Status SaveSequenceTypeOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:48:15: error: ‘onnxruntime::common::Status flatbuffers::SaveTensorShapeOrtFormat(...)’ defined but not used [-Werror=unused-function]
48 | static Status SaveTensorShapeOrtFormat(flatbuffers::FlatBufferBuilder& builder,
| ^~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc:32:44: error: ‘int flatbuffers::SaveTensorDimensionOrtFormat(FlatBufferBuilder&, const onnx::TensorShapeProto_Dimension&)’ defined but not used [-Werror=unused-function]
32 | static flatbuffers::Offset<fbs::Dimension> SaveTensorDimensionOrtFormat(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/onnxruntime_flatbuffers.dir/build.make:79: CMakeFiles/onnxruntime_flatbuffers.dir/<<PKGBUILDDIR>>/onnxruntime/core/flatbuffers/flatbuffers_utils.cc.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:904: CMakeFiles/onnxruntime_flatbuffers.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 1%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/profiler_common.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/profiler_common.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/profiler_common.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/profiler_common.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/common/profiler_common.cc
[ 1%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/status.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/status.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/status.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/status.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/common/status.cc
[ 1%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/threadpool.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/threadpool.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/threadpool.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/threadpool.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/common/threadpool.cc
[ 1%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/env.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/env.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/env.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/env.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/env.cc
[ 1%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/env_time.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/env_time.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/env_time.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/env_time.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/env_time.cc
[ 2%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc
[ 2%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/path_lib.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/path_lib.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/path_lib.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/path_lib.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/path_lib.cc
[ 2%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env.cc
[ 2%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env_time.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env_time.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env_time.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env_time.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env_time.cc
[ 2%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc
[ 2%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc
[ 2%] Building CXX object CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc.o
/usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DDISABLE_ABSEIL -DEIGEN_MPL2_ONLY -DEIGEN_USE_THREADS -DENABLE_CPU_FP16_TRAINING_OPS -DHAS_STRING_VIEW=1 -DNSYNC_ATOMIC_CPP11 -DONLY_C_LOCALE=1 -DORT_ENABLE_STREAM -DORT_NO_RTTI -DPLATFORM_POSIX -DUSE_XNNPACK=1 -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/include/onnxruntime -I/<<PKGBUILDDIR>>/include/onnxruntime/core/session -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/onnxruntime -I/usr/include/eigen3 -I/usr/include/safeint -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -O2 -g -DNDEBUG -fPIC -fno-rtti -Wall -Wextra -Wno-deprecated-copy -Wno-nonnull-compare -Werror -MD -MT CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc.o -MF CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc.o.d -o CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc.o -c /<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc
[ 2%] Linking CXX static library libonnxruntime_common.a
/usr/bin/cmake -P CMakeFiles/onnxruntime_common.dir/cmake_clean_target.cmake
/usr/bin/cmake -E cmake_link_script CMakeFiles/onnxruntime_common.dir/link.txt --verbose=1
/usr/bin/ar qc libonnxruntime_common.a "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/cpuid_info.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/cpuid_uarch.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/denormal.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/helper.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/logging/capture.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/logging/logging.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/logging/sinks/ostream_sink.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/path.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/profiler.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/profiler_common.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/status.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/common/threadpool.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/env.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/env_time.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/logging/make_platform_default_log_sink.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/path_lib.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/env_time.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/ort_mutex.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/posix/stacktrace.cc.o" "CMakeFiles/onnxruntime_common.dir/<<PKGBUILDDIR>>/onnxruntime/core/platform/telemetry.cc.o"
/usr/bin/ranlib libonnxruntime_common.a
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 2%] Built target onnxruntime_common
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202407/
About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks.
Reply to: