Bug 444469 - clazy missing link to libstdc++fs
Summary: clazy missing link to libstdc++fs
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-27 05:02 UTC by Hamish Moffatt
Modified: 2021-10-27 05:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hamish Moffatt 2021-10-27 05:02:42 UTC
SUMMARY

clazy 1.10 fails to build on Debian 10 because it needs to link against libstdc++fs.


STEPS TO REPRODUCE
1. Install llvm-11, llvm-11-dev, libclang-11-dev, libclang-cpp11-dev from buster backports
2. Configure with PATH=/usr/lib/llvm-11/bin:$PATH cmake ..
3. make


OBSERVED RESULT

clazy-standalone fails to link with the error:

/usr/bin/ld: lib/ClazyPlugin.so: undefined reference to `std::filesystem::__cxx11::path::_M_find_extension() const'
/usr/bin/ld: lib/ClazyPlugin.so: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'

Adding stdc++fs to the link libraries in CMakeLists.txt fixes it.

libstdc++ is from gcc 8. It works on Debian 11 (bullseye) which has libstdc++ from gcc 10.