conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
965 stars 1.77k forks source link

[package] flatbuffers/1.12.0: abseil includes from system are used instead of Conan #19774

Open Artalus opened 1 year ago

Artalus commented 1 year ago

Description

I am trying to build the onnxruntime package:

conan create . onnxruntime/1.15.1 --build=missing -o onnxruntime:shared=True -o date:header_only=True -ks -kb

This is all that its recipe does with flatbuffers:

self.requires("flatbuffers/1.12.0")
...
if self.dependencies["flatbuffers"].options.shared:
    deps.set_property("flatbuffers", "cmake_target_name", "flatbuffers::flatbuffers")

While trying to compile flatbuffers for my settings, I get this error:

flatbuffers/1.12.0: CMake command: cmake --build "/home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/build/Release" '--' '-j8'
...
In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:217,
                 from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/src/util.cpp:4 :
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
   79 | #error "C++ versions less than C++14 are not supported."

Package and Environment Details

Conan profile

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=13
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

Logs

Click to expand log ``` flatbuffers/1.12.0: Forced build from source Installing package: flatbuffers/1.12.0 Requirements flatbuffers/1.12.0 from 'conancenter' - Cache Packages flatbuffers/1.12.0:ca2dd21bf3fe05774d1f7645d2552468636d038f - Build Installing (downloading, building) binaries... flatbuffers/1.12.0: WARN: Build folder is dirty, removing it: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f flatbuffers/1.12.0: Copying sources to build folder flatbuffers/1.12.0: Building your package in /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f flatbuffers/1.12.0: Generator txt created conanbuildinfo.txt flatbuffers/1.12.0: Calling generate() flatbuffers/1.12.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior flatbuffers/1.12.0: Preset 'release' added to CMakePresets.json. Invoke it manually using 'cmake --preset release' flatbuffers/1.12.0: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/build/Release/generators/conan_toolchain.cmake -DVERSION_MAJOR=1 -DVERSION_MINOR=12 -DVERSION_PATCH=0 -DVERSION_COMMIT=0 -DCMAKE_POLICY_DEFAULT_CMP0042=NEW -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release' flatbuffers/1.12.0: Aggregating env generators flatbuffers/1.12.0: Calling build() flatbuffers/1.12.0: apply_conandata_patches(): No patches defined in conandata flatbuffers/1.12.0: CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/build/Release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/package/ca2dd21bf3fe05774d1f7645d2552468636d038f" -DVERSION_MAJOR="1" -DVERSION_MINOR="12" -DVERSION_PATCH="0" -DVERSION_COMMIT="0" -DCMAKE_POLICY_DEFAULT_CMP0042="NEW" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src" CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using Conan toolchain: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/build/Release/generators/conan_toolchain.cmake -- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC) -- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF -- The C compiler identification is GNU 13.2.1 -- The CXX compiler identification is GNU 13.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for strtof_l -- Looking for strtof_l - found -- Looking for strtoull_l -- Looking for strtoull_l - found -- Using toolchain file: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/build/Release/generators/conan_toolchain.cmake. -- Configuring done (0.8s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: VERSION_COMMIT -- Build files have been written to: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/build/Release flatbuffers/1.12.0: CMake command: cmake --build "/home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/build/Release" '--' '-j8' [ 20%] Building CXX object CMakeFiles/flatc.dir/src/idl_gen_text.cpp.o [ 20%] Building CXX object CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o [ 20%] Building CXX object CMakeFiles/flatbuffers.dir/src/reflection.cpp.o [ 20%] Building CXX object CMakeFiles/flatbuffers.dir/src/util.cpp.o [ 20%] Building CXX object CMakeFiles/flatc.dir/src/idl_parser.cpp.o [ 20%] Building CXX object CMakeFiles/flatbuffers.dir/src/idl_gen_text.cpp.o [ 20%] Building CXX object CMakeFiles/flatc.dir/src/util.cpp.o [ 23%] Building CXX object CMakeFiles/flatc.dir/src/reflection.cpp.o In file included from /usr/include/absl/base/config.h:86, from /usr/include/absl/base/attributes.h:37, from /usr/include/absl/strings/string_view.h:39, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:217, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/src/util.cpp:40: /usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported." 79 | #error "C++ versions less than C++14 are not supported." | ^~~~~ In file included from /usr/include/absl/base/config.h:86, from /usr/include/absl/base/attributes.h:37, from /usr/include/absl/strings/string_view.h:39, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:217, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/src/util.cpp:40: /usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported." 79 | #error "C++ versions less than C++14 are not supported." | ^~~~~ In file included from /usr/include/absl/base/config.h:86, from /usr/include/absl/base/attributes.h:37, from /usr/include/absl/strings/string_view.h:39, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:217, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:20, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/reflection_generated.h:7, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/reflection.h:25, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/src/reflection.cpp:1 : /usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported." 79 | #error "C++ versions less than C++14 are not supported." | ^~~~~ In file included from /usr/include/absl/base/config.h:86, from /usr/include/absl/base/attributes.h:37, from /usr/include/absl/strings/string_view.h:39, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:217, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:20, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/src/idl_gen_text.cpp:19: /usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported." 79 | #error "C++ versions less than C++14 are not supported." | ^~~~~ In file included from /usr/include/absl/base/config.h:86, from /usr/include/absl/base/attributes.h:37, from /usr/include/absl/strings/string_view.h:39, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:217, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:20, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/src/idl_gen_text.cpp:19: /usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported." 79 | #error "C++ versions less than C++14 are not supported." | ^~~~~ In file included from /usr/include/absl/base/config.h:86, from /usr/include/absl/base/attributes.h:37, from /usr/include/absl/strings/string_view.h:39, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:217, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:20, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/reflection_generated.h:7, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/reflection.h:25, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/src/reflection.cpp:1 : /usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported." 79 | #error "C++ versions less than C++14 are not supported." | ^~~~~ In file included from /usr/include/absl/base/config.h:86, from /usr/include/absl/base/attributes.h:37, from /usr/include/absl/strings/string_view.h:39, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:217, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/idl.h:24, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/src/idl_parser.cpp:2 : /usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported." 79 | #error "C++ versions less than C++14 are not supported." | ^~~~~ In file included from /usr/include/absl/base/config.h:86, from /usr/include/absl/base/attributes.h:37, from /usr/include/absl/strings/string_view.h:39, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:217, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/idl.h:24, from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/src/idl_parser.cpp:2 : /usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported." 79 | #error "C++ versions less than C++14 are not supported." | ^~~~~ /usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type 52 | using string_view = std::string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards 52 | using string_view = std::string_view; | ^~~ /usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type 686 | inline string_view ClippedSubstr(string_view s, size_t pos, | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type 697 | constexpr string_view NullSafeStringView(const char* p) { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:219:23: error: string_view’ in namespace ‘absl’ does not name a type 219 | typedef absl::string_view string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type 52 | using string_view = std::string_view; | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:561:16: error: ‘string_view’ in namespace ‘flatbuffers’ does not name a type 561 | flatbuffers::string_view string_view() const { | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards 52 | using string_view = std::string_view; | ^~~ /usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type 686 | inline string_view ClippedSubstr(string_view s, size_t pos, | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type 697 | constexpr string_view NullSafeStringView(const char* p) { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:219:23: error: string_view’ in namespace ‘absl’ does not name a type 219 | typedef absl::string_view string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type 52 | using string_view = std::string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards 52 | using string_view = std::string_view; | ^~~ /usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type 686 | inline string_view ClippedSubstr(string_view s, size_t pos, | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type 697 | constexpr string_view NullSafeStringView(const char* p) { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:219:23: error: string_view’ in namespace ‘absl’ does not name a type 219 | typedef absl::string_view string_view; | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:561:16: error: ‘string_view’ in namespace ‘flatbuffers’ does not name a type 561 | flatbuffers::string_view string_view() const { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1487:44: error: ‘flatbuffers::string_view’ has not been declared 1487 | Offset CreateString(flatbuffers::string_view str) { | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type 52 | using string_view = std::string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards 52 | using string_view = std::string_view; | ^~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:561:16: error: ‘string_view’ in namespace ‘flatbuffers’ does not name a type 561 | flatbuffers::string_view string_view() const { | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type 686 | inline string_view ClippedSubstr(string_view s, size_t pos, | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type 697 | constexpr string_view NullSafeStringView(const char* p) { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:219:23: error: string_view’ in namespace ‘absl’ does not name a type 219 | typedef absl::string_view string_view; | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1487:44: error: ‘flatbuffers::string_view’ has not been declared 1487 | Offset CreateString(flatbuffers::string_view str) { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1487:44: error: ‘flatbuffers::string_view’ has not been declared 1487 | Offset CreateString(flatbuffers::string_view str) { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h: In member function ‘flatbuffers::Offset flatbuffers::FlatBufferBuilder::CreateString(int)’: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:29: error: request for member ‘data’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:41: error: request for member ‘size’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h: In member function ‘flatbuffers::Offset flatbuffers::FlatBufferBuilder::CreateString(int)’: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:29: error: request for member ‘data’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:41: error: request for member ‘size’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ /usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type 52 | using string_view = std::string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards 52 | using string_view = std::string_view; | ^~~ /usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type 686 | inline string_view ClippedSubstr(string_view s, size_t pos, | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h: In member function ‘flatbuffers::Offset flatbuffers::FlatBufferBuilder::CreateString(int)’: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:29: error: request for member ‘data’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:41: error: request for member ‘size’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ /usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type 697 | constexpr string_view NullSafeStringView(const char* p) { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:219:23: error: string_view’ in namespace ‘absl’ does not name a type 219 | typedef absl::string_view string_view; | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:561:16: error: ‘string_view’ in namespace ‘flatbuffers’ does not name a type 561 | flatbuffers::string_view string_view() const { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1487:44: error: ‘flatbuffers::string_view’ has not been declared 1487 | Offset CreateString(flatbuffers::string_view str) { | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type 52 | using string_view = std::string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards 52 | using string_view = std::string_view; | ^~~ /usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type 686 | inline string_view ClippedSubstr(string_view s, size_t pos, | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type 697 | constexpr string_view NullSafeStringView(const char* p) { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:219:23: error: string_view’ in namespace ‘absl’ does not name a type 219 | typedef absl::string_view string_view; | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h: In member function ‘flatbuffers::Offset flatbuffers::FlatBufferBuilder::CreateString(int)’: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:29: error: request for member ‘data’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:41: error: request for member ‘size’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ In file included from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/idl.h:25: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:561:16: error: ‘string_view’ in namespace ‘flatbuffers’ does not name a type 561 | flatbuffers::string_view string_view() const { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1487:44: error: ‘flatbuffers::string_view’ has not been declared 1487 | Offset CreateString(flatbuffers::string_view str) { | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type 52 | using string_view = std::string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards 52 | using string_view = std::string_view; | ^~~ /usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type 686 | inline string_view ClippedSubstr(string_view s, size_t pos, | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type 52 | using string_view = std::string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards 52 | using string_view = std::string_view; | ^~~ /usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type 697 | constexpr string_view NullSafeStringView(const char* p) { | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type 686 | inline string_view ClippedSubstr(string_view s, size_t pos, | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:219:23: error: string_view’ in namespace ‘absl’ does not name a type 219 | typedef absl::string_view string_view; | ^~~~~~~~~~~ /usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type 697 | constexpr string_view NullSafeStringView(const char* p) { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/base.h:219:23: error: string_view’ in namespace ‘absl’ does not name a type 219 | typedef absl::string_view string_view; | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h: In member function ‘flatbuffers::Offset flatbuffers::FlatBufferBuilder::CreateString(int)’: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:29: error: request for member ‘data’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:41: error: request for member ‘size’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ In file included from /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/idl.h:25: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:561:16: error: ‘string_view’ in namespace ‘flatbuffers’ does not name a type 561 | flatbuffers::string_view string_view() const { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1487:44: error: ‘flatbuffers::string_view’ has not been declared 1487 | Offset CreateString(flatbuffers::string_view str) { | ^~~~~~~~~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h: In member function ‘flatbuffers::Offset flatbuffers::FlatBufferBuilder::CreateString(int)’: /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:29: error: request for member ‘data’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/src/include/flatbuffers/flatbuffers.h:1488:41: error: request for member ‘size’ in ‘str’, which is of non-class type ‘int’ 1488 | return CreateString(str.data(), str.size()); | ^~~~ make[2]: *** [CMakeFiles/flatc.dir/build.make:118: CMakeFiles/flatc.dir/src/util.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/flatbuffers.dir/build.make:118: CMakeFiles/flatbuffers.dir/src/util.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/flatc.dir/build.make:104: CMakeFiles/flatc.dir/src/reflection.cpp.o] Error 1 make[2]: *** [CMakeFiles/flatbuffers.dir/build.make:104: CMakeFiles/flatbuffers.dir/src/reflection.cpp.o] Error 1 make[2]: *** [CMakeFiles/flatbuffers.dir/build.make:90: CMakeFiles/flatbuffers.dir/src/idl_gen_text.cpp.o] Error 1 make[2]: *** [CMakeFiles/flatc.dir/build.make:90: CMakeFiles/flatc.dir/src/idl_gen_text.cpp.o] Error 1 make[2]: *** [CMakeFiles/flatc.dir/build.make:76: CMakeFiles/flatc.dir/src/idl_parser.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/flatc.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/flatbuffers.dir/build.make:76: CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/flatbuffers.dir/all] Error 2 make: *** [Makefile:156: all] Error 2 flatbuffers/1.12.0: flatbuffers/1.12.0: ERROR: Package 'ca2dd21bf3fe05774d1f7645d2552468636d038f' build failed flatbuffers/1.12.0: WARN: Build folder /home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/build/Release ERROR: flatbuffers/1.12.0: Error in build() method, line 118 cmake.build() ConanException: Error 2 while executing cmake --build "/home/artalus/tmp/conan-center-index/recipes/onnxruntime/all/.conan/data/flatbuffers/1.12.0/_/_/build/ca2dd21bf3fe05774d1f7645d2552468636d038f/build/Release" '--' '-j8' ```
AbrilRBS commented 1 year ago

There are two issues here: