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

Fix spdlog fmtlib #296

Merged
merged 8 commits into from
May 30, 2024
Merged

Fix spdlog fmtlib #296

merged 8 commits into from
May 30, 2024

Conversation

brettviren
Copy link
Member

@brettviren brettviren requested a review from HaiwangYu May 28, 2024 19:06
@brettviren
Copy link
Member Author

@HaiwangYu it's hard for me to test on old spdlog with built-in fmtlib but hopefully it now compiles for you.

@HaiwangYu
Copy link
Member

Now the errors changed for me (spdlog 1.8.2):
https://www.phy.bnl.gov/~yuhw/larsoft925/src/wct-latest/log

@brettviren
Copy link
Member Author

@HaiwangYu is your spdlog compiled with the bundled fmt or is there an explicit external fmt (fmtlib)? If the latter, what version of fmtlib?

@HaiwangYu
Copy link
Member

@brettviren I think it is bundled. I found this folder:

$ll $SPDLOG_FQ_DIR/include/spdlog/fmt/bundled 
total 450K
-rw-r--r-- 1 125 128 1.4K Dec 11  2020 LICENSE.rst
-rw-r--r-- 1 125 128  35K Dec 11  2020 chrono.h
-rw-r--r-- 1 125 128  24K Dec 11  2020 color.h
-rw-r--r-- 1 125 128  24K Dec 11  2020 compile.h
-rw-r--r-- 1 125 128  70K Dec 11  2020 core.h
-rw-r--r-- 1 125 128 108K Dec 11  2020 format-inl.h
-rw-r--r-- 1 125 128 130K Dec 11  2020 format.h
-rw-r--r-- 1 125 128 2.3K Dec 11  2020 locale.h
-rw-r--r-- 1 125 128  14K Dec 11  2020 os.h
-rw-r--r-- 1 125 128 5.8K Dec 11  2020 ostream.h
-rw-r--r-- 1 125 128   75 Dec 11  2020 posix.h
-rw-r--r-- 1 125 128  23K Dec 11  2020 printf.h
-rw-r--r-- 1 125 128  13K Dec 11  2020 ranges.h

@brettviren
Copy link
Member Author

@HaiwangYu sorry for the iteration on this. I have a new try which should work. Tested on various versions of spdlog/fmtlib as described in the wire-cell-spack Issue. Though, those tests were done outside of WCT so there is still room for something to go wrong.

@HaiwangYu
Copy link
Member

Hi @brettviren, it almost worked for me with only this:

../util/test/test_rayclustering.cxx:3:10: fatal error: fmt/core.h: No such file or directory
    3 | #include <fmt/core.h>
      |          ^~~~~~~~~~~~
compilation terminated.

[757/757][100%][/][==================================================================================>][4.794s]
Waf: Leaving directory `/home/yuhw/wc/larsoft925/src/wct-latest/build'
Build failed
 -> task in 'test_rayclustering' failed with exit status 1 (run with -v to display more information)

@brettviren
Copy link
Member Author

@HaiwangYu this was a stray direct include that is apparently not even needed. I just pushed a commit to remove it. Please try one more time.

@HaiwangYu
Copy link
Member

Thanks! It now compiles and Sim/SigProc seems to be correct.
wirecell pr296.pdf

@HaiwangYu HaiwangYu merged commit 2cbdbe1 into master May 30, 2024
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

Successfully merging this pull request may close these issues.

spdlog 1.12 externalizes fmt and this may break WCT build
2 participants