-
-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fmtlog broken now😢 #4806
Comments
Title: fmtlog broken now😢 |
Add this to your xmake.lua project scope: local dependencies = { "fmtlog" }
for _, dependency in ipairs(dependencies) do
add_requires(dependency)
end
add_requireconfs("fmtlog.fmt", {override = true, version = "10.2.1", configs = {cxxflags = "/utf-8"}})
target("fucking")
set_default(true)
set_kind("binary")
for _, dependency in ipairs(dependencies) do
add_packages(dependency)
end
add_files("**.cc")
target_end() |
Hello and thanks✨❤️ for solving the problem! Setting the flag in the fmt config:
|
Xmake Version
2.9.4
Operating System Version and Architecture
x64 Windows 10, Windows 11, Arch Linux
Describe Bug
A project that was successfully builed half a year ago is not being builed now. I also tested fmtlot in an empty project. I receive the message:
Well, let's say fmtlog has a new version, but xrepo packages use a fixed version, so why it broken😢 (udp: omg fmtlog use fmt 10.2.1 now, it's discouraging)
Expected Behavior
fmtlog that works out of the box
Project Configuration
Additional Information and Error Logs
$ xmake -y
checking for platform ... linux
checking for architecture ... x86_64
=> install fmtlog v2.2.1 .. failed
[ 25%] Building CXX object CMakeFiles/fmtlog-static.dir/fmtlog.cc.o
[ 50%] Building CXX object CMakeFiles/fmtlog-shared.dir/fmtlog.cc.o
In file included from /home/me/.xmake/cache/packages/2407/f/fmtlog/v2.2.1/source/fmtlog.cc:1:
In file included from /home/me/.xmake/cache/packages/2407/f/fmtlog/v2.2.1/source/fmtlog-inl.h:24:
/home/me/.xmake/cache/packages/2407/f/fmtlog/v2.2.1/source/fmtlog.h:636:15: error: no member named 'throw_format_error' in namespace 'fmt::detail'; did you mean 'fmt::throw_format_error'?
636 | if (!c) fmt::detail::throw_format_error("invalid format string");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| fmt::throw_format_error
/home/me/.xmake/packages/f/fmt/11.0.2/d396b4e809304cf1ad4202e5aa292d4c/include/fmt/base.h:737:41: note: 'fmt::throw_format_error' declared here
737 | FMT_DEPRECATED FMT_NORETURN inline void throw_format_error(
| ^
In file included from /home/me/.xmake/cache/packages/2407/f/fmtlog/v2.2.1/source/fmtlog.cc:1:
In file included from /home/me/.xmake/cache/packages/2407/f/fmtlog/v2.2.1/source/fmtlog-inl.h:24:
/home/me/.xmake/cache/packages/2407/f/fmtlog/v2.2.1/source/fmtlog.h:649:21: error: no member named 'throw_format_error' in namespace 'fmt::detail'; did you mean 'fmt::throw_format_error'?
649 | if (id < 0) fmt::detail::throw_format_error("invalid format string");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| fmt::throw_format_error
if you want to get more verbose errors, please see:
-> /home/me/.xmake/cache/packages/2407/f/fmtlog/v2.2.1/installdir.failed/logs/install.txt
error: install failed!
The text was updated successfully, but these errors were encountered: