@pj to build osquery you have to follow this guide https://osquery.readthedocs.io/en/latest/development/building/. We use a custom toolchain to be able to ship osquery on multiple distros; the system compiler setup might not be still fully supported, but in any case you would need clang/libc++