mp-units
mp-units copied to clipboard
Cant use "freestanding": True as option
Hey, I am not able to install mp_units 2.4.0 with the option "freestanding": True. Conan fails with this message:
ERROR: mp-units/2.4.0: Error in package_info() method, line 305
"MP_UNITS_API_STD_FORMAT=" + str(int(self.options.std_format == True))
ConanException: option 'std_format' doesn't exist
Possible options are ['cxx_modules', 'import_std', 'string_view_ret', 'no_crtp', 'contracts', 'freestanding']
As far, as I understood the conan file the "import_std" option gets removed with "freestanding = True". https://github.com/mpusz/mp-units/blob/6bb399b832640bbfa2c1edd02d63024ed8635724/conanfile.py#L205 But in Line 351 (2.4.0) or 344 (master) it is used even with "freestanding = True", https://github.com/mpusz/mp-units/blob/6bb399b832640bbfa2c1edd02d63024ed8635724/conanfile.py#L344
Complete Output from Conan
conan install . -pr=/home/jannik/SoftwareEntwicklung/Tools/Conan/profiles/cortexM3_Debug
======== Input profiles ========
Profile host:
[settings]
arch=armv7
build_type=Debug
compiler=gcc
compiler.cppstd=23
compiler.libcxx=libstdc++11
compiler.version=14
os=baremetal
[conf]
tools.build:cflags=['-mcpu=cortex-m3', '-mthumb', '-mlittle-endian', '-mfloat-abi=soft', '-Wall', '-Wextra', '-Wpedantic', '-D__CORTEX_M3', '-D__STACK_SIZE=1000', '-D__HEAP_SIZE=0', '-DNO_EXCEPTIONS', '-DCUSTOM_NEW', '-g3', '-Og', '-DDEBUG']
tools.build:cxxflags=['-mcpu=cortex-m3', '-mthumb', '-mlittle-endian', '-mfloat-abi=soft', '-fno-exceptions', '-fno-rtti', '-fno-non-call-exceptions', '-fno-use-cxa-atexit', '-fno-threadsafe-statics', '-fno-use-cxa-get-exception-ptr', '-Wall', '-Wextra', '-Wpedantic', '-D__CORTEX_M3', '-DWORDS_STACK_SIZE=100', '-DNO_EXCEPTIONS', '-DCUSTOM_NEW', '-g3', '-Og', '-DDEBUG']
tools.build:exelinkflags=['-Wl,--gc-sections', '-Wl,--no-warn-rwx-segments', '-specs=nosys.specs', '-specs=nano.specs', '-Wl,--wrap=__aeabi_fadd', '-Wl,--wrap=__aeabi_dadd', '-Wl,--wrap=__aeabi_fmul', '-Wl,--wrap=__aeabi_dmul', '-Wl,--wrap=__aeabi_fsub', '-Wl,--wrap=__aeabi_dsub', '-Wl,--wrap=__aeabi_fdiv', '-Wl,--wrap=__aeabi_ddiv', '-Wl,--wrap=__aeabi_d2f]', '-Wl,--wrap=__aeabi_f2iz', '-Wl,--wrap=__aeabi_d2iz', '-Wl,--wrap=__aeabi_f2d']
tools.cmake.cmaketoolchain:generator=Ninja
tools.cmake.cmaketoolchain:user_toolchain=['/home/jannik/SoftwareEntwicklung/Tools/CMake/toolchainFiles/arm-none-eabi-gcc.cmake']
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=23
compiler.libcxx=libstdc++11
compiler.version=14
os=Linux
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
[buildenv]
CC=gcc-14
CXX=g++-14
======== Computing dependency graph ========
Graph root
conanfile.py: /home/jannik/Development/Mikrocontroller/Egas_UnitsMitMpUnits/conanfile.py
Requirements
mp-units/2.4.0#d240b6eb4886477dd3c6cc18ad161d2b - Cache
Build requirements
cmake/3.31.5#e3bab375e96b9be619fd62f6e406c5cf - Cache
Resolved version ranges
cmake/[>=3.30 <4]: cmake/3.31.5
======== Computing necessary packages ========
Requirements
mp-units/2.4.0#d240b6eb4886477dd3c6cc18ad161d2b:da39a3ee5e6b4b0d3255bfef95601890afd80709#641935b65887f37dca7957b0701d680b - Cache
Build requirements
Skipped binaries
cmake/3.31.5
======== Installing packages ========
mp-units/2.4.0: Already installed! (1 of 1)
ERROR: mp-units/2.4.0: Error in package_info() method, line 305
"MP_UNITS_API_STD_FORMAT=" + str(int(self.options.std_format == True))
ConanException: option 'std_format' doesn't exist
Possible options are ['cxx_modules', 'import_std', 'string_view_ret', 'no_crtp', 'contracts', 'freestanding']
Thanks for reporting! I am on vacation now, so if you would like to have it fixed soon, then you are welcome to submit a PR.