I've run these following commands,and try to install raspa3 on ubuntu:
$sudo apt install build-essential git cmake
$sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main'
$sudo add-apt-repository 'deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main'
$sudo apt install libllvm-18-ocaml-dev libllvm18 llvm-18 llvm-18-dev llvm-18-runtime
$sudo apt install libc++-18-dev libc++abi-18-dev libomp-18-dev pybind11-dev python3-pybind11 liblapack-dev clang-tools-18
$cd src
$vi makefile-manual and set CXX=clang++-18
$make -f makefile-manual
However, there are several errors during installation:
In module 'std_atomic' imported from foundationkit/threadpool.ixx:31:
In module 'std_private_atomic_aliases' imported from /usr/lib/llvm-18/bin/../include/c++/v1/atomic:591:
In module 'std_cstdlib' imported from /usr/lib/llvm-18/bin/../include/c++/v1/__atomic/aliases.h:21:
/usr/lib/llvm-18/bin/../include/c++/v1/stdlib.h:123:59: error: 'abs' has different definitions in different modules; definition in module 'std_cstdlib' first difference is function body
123 | _LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI double abs(double __lcpp_x) _NOEXCEPT {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124 | return __builtin_fabs(__lcpp_x);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
125 | }
| ~
/usr/lib/llvm-18/bin/../include/c++/v1/stdlib.h:123:59: note: but in '' found a different body
123 | _LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI double abs(double __lcpp_x) _NOEXCEPT {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124 | return __builtin_fabs(__lcpp_x);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
125 | }
| ~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [makefile-manual:47: foundationkit/threadpool.pcm] Error 1
How can I solve this problem?
$sudo apt install build-essential git cmake
$sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main'
$sudo add-apt-repository 'deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main'
$sudo apt install libllvm-18-ocaml-dev libllvm18 llvm-18 llvm-18-dev llvm-18-runtime
$sudo apt install libc++-18-dev libc++abi-18-dev libomp-18-dev pybind11-dev python3-pybind11 liblapack-dev clang-tools-18
$cd src
$vi makefile-manual and set CXX=clang++-18
$make -f makefile-manual
However, there are several errors during installation:
In module 'std_atomic' imported from foundationkit/threadpool.ixx:31:
In module 'std_private_atomic_aliases' imported from /usr/lib/llvm-18/bin/../include/c++/v1/atomic:591:
In module 'std_cstdlib' imported from /usr/lib/llvm-18/bin/../include/c++/v1/__atomic/aliases.h:21:
/usr/lib/llvm-18/bin/../include/c++/v1/stdlib.h:123:59: error: 'abs' has different definitions in different modules; definition in module 'std_cstdlib' first difference is function body
123 | _LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI double abs(double __lcpp_x) _NOEXCEPT {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124 | return __builtin_fabs(__lcpp_x);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
125 | }
| ~
/usr/lib/llvm-18/bin/../include/c++/v1/stdlib.h:123:59: note: but in '' found a different body
123 | _LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI double abs(double __lcpp_x) _NOEXCEPT {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124 | return __builtin_fabs(__lcpp_x);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
125 | }
| ~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [makefile-manual:47: foundationkit/threadpool.pcm] Error 1
How can I solve this problem?