Skip to content

libfmt: bump to 12.2.0#29807

Open
tru7 wants to merge 1 commit into
openwrt:masterfrom
tru7:libfmt
Open

libfmt: bump to 12.2.0#29807
tru7 wants to merge 1 commit into
openwrt:masterfrom
tru7:libfmt

Conversation

@tru7

@tru7 tru7 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

📦 Package Details

Maintainer: me
(You can find this by checking the history of the package Makefile.)

Description:

new upstream release 12.2.0


🧪 Run Testing Details

  • OpenWrt Version: snapshot
  • OpenWrt Target/Subtarget: ath79/generic, ramips/mt7620a
  • OpenWrt Device: tplink_archer-c7-v4

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable
    (e.g., subject line, commit description, etc.)
    We must try to upstream patches to reduce maintenance burden.

bump to upstream release 12.2.0

Signed-off-by: Othmar Truniger <github@truniger.ch>
@BKPepe

BKPepe commented Jun 23, 2026

Copy link
Copy Markdown
Member

This is failing for i386:

2026-06-22T14:48:14.3081640Z FAILED: [code=1] CMakeFiles/fmt.dir/src/format.cc.o 
2026-06-22T14:48:14.3086822Z /builder/staging_dir/toolchain-i386_pentium-mmx_gcc-14.3.0_musl/bin/i486-openwrt-linux-musl-g++ -DFMT_LIB_EXPORT -Dfmt_EXPORTS -I/builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/include -Os -pipe -march=pentium-mmx -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0=fmt-12.2.0 -Wl,-z,max-page-size=4096 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Wl,-z,pack-relative-relocs  -I/builder/staging_dir/toolchain-i386_pentium-mmx_gcc-14.3.0_musl/usr/include -I/builder/staging_dir/toolchain-i386_pentium-mmx_gcc-14.3.0_musl/include -I/builder/staging_dir/toolchain-i386_pentium-mmx_gcc-14.3.0_musl/include/fortify -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT CMakeFiles/fmt.dir/src/format.cc.o -MF CMakeFiles/fmt.dir/src/format.cc.o.d -o CMakeFiles/fmt.dir/src/format.cc.o -c /builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/src/format.cc
2026-06-22T14:48:14.3093276Z In file included from /builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/include/fmt/format-inl.h:28,
2026-06-22T14:48:14.3094386Z                  from /builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/src/format.cc:8:
2026-06-22T14:48:14.3096568Z /builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/include/fmt/format.h: In instantiation of 'void fmt::v12::detail::format_hexfloat(Float, fmt::v12::format_specs, buffer<char>&) [with Float = long double; typename std::enable_if<(! std::integral_constant<bool, (std::numeric_limits<_Tp>::digits == 106)>::value), int>::type <anonymous> = 0]':
2026-06-22T14:48:14.3100203Z /builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/include/fmt/format.h:3501:20:   required from 'OutputIt fmt::v12::detail::write(OutputIt, T, fmt::v12::format_specs, fmt::v12::locale_ref) [with Char = char; OutputIt = fmt::v12::basic_appender<char>; T = long double; typename std::enable_if<is_floating_point<T>::value, int>::type <anonymous> = 0]'
2026-06-22T14:48:14.3102148Z  3501 |     format_hexfloat(convert_float(value), specs, buffer);
2026-06-22T14:48:14.3102853Z       |     ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2026-06-22T14:48:14.3104816Z /builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/include/fmt/format.h:3595:21:   required from 'OutputIt fmt::v12::detail::write(OutputIt, T) [with Char = char; OutputIt = fmt::v12::basic_appender<char>; T = long double; typename std::enable_if<(is_floating_point<T>::value && (! is_fast_float<T>::value)), int>::type <anonymous> = 0]'
2026-06-22T14:48:14.3106946Z  3595 |   return write<Char>(out, value, {});
2026-06-22T14:48:14.3107472Z       |          ~~~~~~~~~~~^~~~~~~~~~~~~~~~
2026-06-22T14:48:14.3109471Z /builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/include/fmt/format.h:3685:16:   required from 'void fmt::v12::detail::default_arg_formatter<Char>::operator()(T) [with T = long double; typename std::enable_if<std::integral_constant<bool, (std::is_same<T, int>::value || 1)>::value, int>::type <anonymous> = 0; Char = char]'
2026-06-22T14:48:14.3111528Z  3685 |     write<Char>(out, value);
2026-06-22T14:48:14.3111973Z       |     ~~~~~~~~~~~^~~~~~~~~~~~
2026-06-22T14:48:14.3113506Z /builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/include/fmt/base.h:2505:52:   required from 'constexpr decltype (vis(0)) fmt::v12::basic_format_arg<Context>::visit(Visitor&&) const [with Visitor = fmt::v12::detail::default_arg_formatter<char>; Context = fmt::v12::context; decltype (vis(0)) = void]'
2026-06-22T14:48:14.3114757Z  2505 |     case detail::type::long_double_type: return vis(value_.long_double_value);
2026-06-22T14:48:14.3115186Z       |                                                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
2026-06-22T14:48:14.3115718Z /builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/include/fmt/format-inl.h:1471:29:   required from here
2026-06-22T14:48:14.3116622Z  1471 |     return args.get(0).visit(default_arg_formatter<char>{out});
2026-06-22T14:48:14.3117001Z       |            ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2026-06-22T14:48:14.3117705Z /builder/build_dir/target-i386_pentium-mmx_musl/fmt-12.2.0/include/fmt/format.h:3108:14: error: no match for 'operator~' (operand type is 'fmt::v12::detail::uint128')
2026-06-22T14:48:14.3118360Z  3108 |       f.f &= ~(inc - 1);
2026-06-22T14:48:14.3118596Z       |              ^~~~~~~~~~
2026-06-22T14:48:14.3118842Z ninja: build stopped: subcommand failed.
2026-06-22T14:48:14.3119270Z make[1]: *** [package/Makefile:198: package/feeds/packages_ci/libfmt/compile] Error 1
2026-06-22T14:48:14.3119776Z make: *** [/builder/include/toplevel.mk:226: package/libfmt/compile] Error 2

@tru7

tru7 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

I guess this needs an upstream fix - let's wait for another release

@BKPepe

BKPepe commented Jun 24, 2026

Copy link
Copy Markdown
Member

Is there any upstream issue, which we can track?

@tru7

tru7 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

Yes, i just created an issue fmtlib/fmt#4824 and was informed that it's fixed with commit fmtlib/fmt#4813 - let's wait for a new release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants