Closed haotianmichael closed 2 years ago
Roollbacking to 83b519e6 and rebuilding, everything works well. It seems that libc++'s implementation doesn't support unsynchronized_pool_resource
? Any help would be grateful.
Clang and specifically apple-clang don't support polymorphic memory resources as seen here. Depending on your setup you can try to use the gcc compiler to compile phasar. If you use a MacBook with the new M1 processor then this will be troublesome too, since the gcc support on the M1 is not soo good in my experience. At least I also still struggle to get it running. If you have any progress in this area please let me know.
Also, feel free to check out this branch. This fixed the issues for me.
@janniclas can we close this issue?
Bug description
I try to build phasar. And
include/phasar/PhasarLLVM/Pointer/PointsToSetOwner.h
andinclude/phasar/PhasarLLVM/Pointer/LLVMPointsToSet.h
use#include <memory_resource>
, but when I usedbrew install llvm@13.0.1
to compile, it emitted errors thatfile
memory_resourcenot found
. I replaced this name withexperimental/memory_resoruce
, but it still emitted thatunsynchronized_pool_resource not found
. I did some research as follows:Steps to reproduce
experimental/memory_resource
included use class&operations innamespace pmr
etc. respectively.-std=c++17
Actual result: class&operations commented in
memory_resource
still not found.Expected result: Worked well.
Context (Environment)
Operating System:
Build Type:
Possible solution
I Googled
libc++
supported c++17's implementations onmemory_resource
But still not familiar well with c++ and libc++, So Please tell me what to do, thanks~
Example files
/usr/local/opt/llvm/include/c++/v1/experimental/memory_resource