Dear all,

I recently tried to build HPX on my Mac OSX (macOS Sierra Version 10.12.6) with 
CMake (version 3.9.2) and Clang (Apple LLVM version 8.1.0 (clang-802.0.42), 
Target: x86_64-apple-darwin16.7.0). My CMake has some problem to configure 
newer versions of Boost, so that I chose Boost 1.65.0.


I built Boost as:


./bootstrap.sh --with-toolset=clang


and I also added the following lines into Boost's project-config.jam:


if ! clang in [ feature.values <toolset> ]
{
    using clang
    :
    : "/usr/bin/clang++"
    : <cxxflags>"-std=c++11 -fcolor-diagnostics"
      <linkflags>"-stdlib=libc++ -L/usr/lib"
    ;
}

After building Boost, I tried to build HPX (I cloned the HPX repository from 
github) as:

cd hpx
mkdir build
cd build

cmake ../ -DCMAKE_CXX_COMPILER=clang++ -DBOOST_ROOT=../../boost_1_65_0 
-DHPX_WITH_HWLOC=OFF

make -j 2


The building process went well without any error, but I got the following error 
when I tried to run any of examples provided by HPX:


./bin/fibonacci
libc++abi.dylib: terminating with uncaught exception of type 
hpx::detail::exception_with_info<hpx::exception>: new allocator failed to 
allocate memory: HPX(out_of_memory)
Abort trap: 6

I have checked libc++abi.dylib is compiled by clang, so that I have no idea how 
to solve this problem.

Could anyone help me fix it? Thank you in advance.

Best regards
Gao

_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to