alexeilebedev / openacr

open-source version of acr & amc
GNU General Public License v3.0
34 stars 18 forks source link

getting started on macos #72

Open xoba opened 12 months ago

xoba commented 12 months ago

seems i have to add bin/ai to my path, otherwise ai can't be run. but then i get these errors:

openacr% export PATH=~/openacr/bin:$PATH
openacr% make
ai
# selecting bootstrap file...
#   considering Darwin-clang++.release-x86_64
# make-bootstrap: running bin/bootstrap/Darwin-clang++.release-x86_64
# this script has been created using atf_ci bootstrap
# now building an abt executable which will build the rest
# setting up soft link build/coverage (default)
# setting up soft link build/debug (default)
# setting up soft link build/profile (default)
# setting up soft link build/release (default)
+ mkdir -p temp
+ mkdir -p build/release
+ mkdir -p build/release
+ clang++ -x c++ -Wno-invalid-offsetof -ffunction-sections -Wsequence-point -Wno-multichar -Wshadow -pipe -Wextra -Winit-self -Wmissing-include-dirs -Wmissing-declarations -Wno-enum-compare -Wno-array-bounds -Wno-missing-exception-spec -iquote . -Wno-vla -fpch-preprocess -c cpp/abt/build.cpp -o build/release/cpp.abt.build.o -msse4.2 -D AOS_SSE42 -O -Werror -Wreinterpret-base-class
In file included from cpp/abt/build.cpp:25:
In file included from ./include/abt.h:25:
In file included from ./include/algo.h:31:
./include/define.h:81:2: error: clang++ is no longer supported
#error clang++ is no longer supported
 ^
In file included from cpp/abt/build.cpp:25:
In file included from ./include/abt.h:25:
In file included from ./include/algo.h:59:
./include/algo/string.inl.h:241:36: error: use of enumeration in a nested name specifier is a C++11 extension [-Werror,-Wc++11-extensions]
    return curs.state != Sep_curs::State::invalid;
                                   ^
./include/algo/string.inl.h:248:81: error: use of enumeration in a nested name specifier is a C++11 extension [-Werror,-Wc++11-extensions]
inline algo::Sep_curs::Sep_curs() : sep('\0'), index(-1), state(algo::Sep_curs::State::invalid){
                                                                                ^
3 errors generated.
# ------------------------------------------------------------------
# 
Can't exec "bin/abt": No such file or directory at /Users/mra/openacr/bin/ai line 37.
error abt failed: -1. more info in txt/abt-troubleshoot.md
make: *** [default] Error 1
openacr% 

here's my mac version:

openacr% uname -a
Darwin mikes-iMac-Pro.localdomain 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST 2023; root:xnu-8792.81.3~2/RELEASE_X86_64 x86_64
openacr% 
alexeilebedev commented 12 months ago

We noticed that clang generated incorrect exception handling code, and disabled clang as a result. As far as I know, nobody has looked at how to re-enable clang beyond verifying that indeed the compiler was at fault. To add insult to injury, apple changed their development tools again, so even though OpenACR used to build on MacOS, it no longer does. Ping me on Signal and I could jump on a zoom call with you to see if we can overcome these stumbling blocks. Currently OpenACR works without an issue on Ubuntu. I also haven't checked FreeBSD recently so I don't know if it still works.