Skip to content
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

After some dependency update obake now breaks #148

Closed
yurivict opened this issue Dec 27, 2022 · 7 comments
Closed

After some dependency update obake now breaks #148

yurivict opened this issue Dec 27, 2022 · 7 comments

Comments

@yurivict
Copy link

[ 53% 9/15] /usr/bin/c++ -DFMT_SHARED -Dobake_EXPORTS -I/wrkdirs/usr/ports/math/obake/work/obake-0.7.0-24-gb8cc71c/include -I/wrkdirs/usr/ports/math/obake/work/.build/include -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED  -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -ftemplate-depth=1024 -fdiagnostics-show-template-tree -pthread -std=c++20 -MD -MT CMakeFiles/obake.dir/src/series.cpp.o -MF CMakeFiles/obake.dir/src/series.cpp.o.d -o CMakeFiles/obake.dir/src/series.cpp.o -c /wrkdirs/usr/ports/math/obake/work/obake-0.7.0-24-gb8cc71c/src/series.cpp
FAILED: CMakeFiles/obake.dir/src/series.cpp.o 
/usr/bin/c++ -DFMT_SHARED -Dobake_EXPORTS -I/wrkdirs/usr/ports/math/obake/work/obake-0.7.0-24-gb8cc71c/include -I/wrkdirs/usr/ports/math/obake/work/.build/include -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED  -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -ftemplate-depth=1024 -fdiagnostics-show-template-tree -pthread -std=c++20 -MD -MT CMakeFiles/obake.dir/src/series.cpp.o -MF CMakeFiles/obake.dir/src/series.cpp.o.d -o CMakeFiles/obake.dir/src/series.cpp.o -c /wrkdirs/usr/ports/math/obake/work/obake-0.7.0-24-gb8cc71c/src/series.cpp
In file included from /wrkdirs/usr/ports/math/obake/work/obake-0.7.0-24-gb8cc71c/src/series.cpp:14:
/wrkdirs/usr/ports/math/obake/work/obake-0.7.0-24-gb8cc71c/include/obake/series.hpp:306:109: error: no matching literal operator for call to 'operator""_format' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
                                                         "is not compatible with the series' symbol set, {}"_format(
                                                                                                            ^
/wrkdirs/usr/ports/math/obake/work/obake-0.7.0-24-gb8cc71c/include/obake/series.hpp:311:77: error: no matching literal operator for call to 'operator""_format' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
                                "compatible with the series' symbol set, {}"_format(detail::to_string(ss)));
                                                                            ^
/wrkdirs/usr/ports/math/obake/work/obake-0.7.0-24-gb8cc71c/include/obake/series.hpp:1862:85: error: no matching literal operator for call to 'operator""_format' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
                                                     "a non-negative integral value"_format(e));
                                                                                    ^
/wrkdirs/usr/ports/math/obake/work/obake-0.7.0-24-gb8cc71c/include/obake/series.hpp:1877:80: error: no matching literal operator for call to 'operator""_format' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
            "series/coefficient types do not support the necessary operations)"_format(::obake::type_name<rT>()));
                                                                               ^
4 errors generated.

Version: 0.7.0-24

@thierry-FreeBSD
Copy link

It looks like a deprecated header in FMTlib.

Could you try a patch similar with https://bz-attachments.freebsd.org/attachment.cgi?id=238968 ?

@yurivict
Copy link
Author

The above patch is related to spdlog, which isn't used here.
I tried to replace fmt/format.h with format but this didn't work.

@thierry-FreeBSD
Copy link

@yurivict
Copy link
Author

It builds fine with this PR.

@bluescarni
Copy link
Owner

Indeed, this is due to recent versions of the fmt dropping deprecated features.

I was planning to finalize #145 and make a new release in a couple of days, if that works for you @yurivict .

@yurivict
Copy link
Author

Thank you.

@bluescarni
Copy link
Owner

PR is up at #149 , works for me locally with fmt 9. I'll close this report and make a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants