Open Artalus opened 1 year ago
There are two issues here:
flatbuffers
assumes abseil is present in the system when it can't find it in the stdlib. This is fine for direct users but Conan needs reproducibility - When no cppstd is defined, we'll force flatbuffers
not to use string_view
, which will solve the issue of abseilflatbuffers
is unconditionally setting CMAKE_CXX_STANDARD
to 11 if no cppstd
is defined in the Conan profile - This is bad for Conan 1, which does not model it by default, and so compilers that would by default work, won't. I'm still looking for the proper way to fix this (Probably just removing that condition).
Description
I am trying to build the
onnxruntime
package:This is all that its recipe does with flatbuffers:
While trying to compile flatbuffers for my settings, I get this error:
Package and Environment Details
Conan profile
Steps to reproduce
pacman -S abseil-cpp
in my distro)conan install flatbuffers/1.12.0@ --build=flatbuffers
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