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

I hava some problems with the relationship between folly and fmt,I use git to install fmt then folly build by build_katran.sh go wrong like #221 while without fmt meet the problem like under #225

Closed
hedianxin opened this issue Mar 21, 2024 · 6 comments
Assignees

Comments

@hedianxin
Copy link

No description provided.

@hedianxin
Copy link
Author

/katran/_build/deps/folly/folly/Singleton.cpp:86:16: error: ‘runtime’ is not a member of ‘fmt’
86 | fmt::runtime( //
| ^~~~~~~
/root/katran/_build/deps/folly/folly/lang/SafeAssert.h:40:23: note: in definition of macro ‘FOLLY_DETAIL_SAFE_CHECK_IMPL’
40 | VA_ARGS))>::value.data};
| ^~~~~~~~~~~
/root/katran/_build/deps/folly/folly/Singleton.cpp:84:3: note: in expansion of macro ‘FOLLY_SAFE_FATAL’
84 | FOLLY_SAFE_FATAL( // May happen before registrationComplete().
| ^~~~~~~~~~~~~~~~
/root/katran/_build/deps/folly/folly/Singleton.cpp:86:16: error: ‘runtime’ is not a member of ‘fmt’
86 | fmt::runtime( //
| ^~~~~~~
/root/katran/_build/deps/folly/folly/lang/SafeAssert.h:40:23: note: in definition of macro ‘FOLLY_DETAIL_SAFE_CHECK_IMPL’
40 | VA_ARGS))>::value.data};
| ^~~~~~~~~~~
/root/katran/_build/deps/folly/folly/Singleton.cpp:84:3: note: in expansion of macro ‘FOLLY_SAFE_FATAL’
84 | FOLLY_SAFE_FATAL( // May happen before registrationComplete().
| ^~~~~~~~~~~~~~~~
/root/katran/_build/deps/folly/folly/lang/SafeAssert.h:40:36: error: template argument 1 is invalid
40 | VA_ARGS))>::value.data};
| ^
/root/katran/_build/deps/folly/folly/lang/SafeAssert.h:102:3: note: in expansion of macro ‘FOLLY_DETAIL_SAFE_CHECK_IMPL’
102 | FOLLY_DETAIL_SAFE_CHECK_IMPL(0, 0, 1, false, VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/katran/_build/deps/folly/folly/Singleton.cpp:84:3: note: in expansion of macro ‘FOLLY_SAFE_FATAL’
84 | FOLLY_SAFE_FATAL( // May happen before registrationComplete().
| ^~~~~~~~~~~~~~~~
/root/katran/_build/deps/folly/folly/Singleton.cpp:86:16: error: ‘runtime’ is not a member of ‘fmt’
86 | fmt::runtime( //
| ^~~~~~~

@lima1756
Copy link
Contributor

#223
#224

Keeping this as the main issue, please keep the conversation in a single thread so it's easier to follow and it doesn't spam us.
Looking into this

@lima1756
Copy link
Contributor

@hedianxin can you please share a copy of the full log?

You can do this by running
./build_katran.sh &>> log.txt
Once you have this upload it as a gist and share it here

@hedianxin
Copy link
Author

log.txt

@lima1756
Copy link
Contributor

I see that your libfmt-dev version is 6, can you try upgrading it to version 8

Package: libfmt-dev
Architecture: amd64
Version: 8.1.1+ds1-2

If not possible through apt, you can download the package directly from here: https://packages.ubuntu.com/source/jammy/fmtlib

@hedianxin
Copy link
Author

thx,it works

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

2 participants