build$ cmake ..
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libffi.tbd
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libcurses.tbd
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libz.tbd (found version "1.2.11")
-- Found zstd: /opt/homebrew/lib/libzstd.dylib
-- Found LibXml2: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libxml2.tbd (found version "2.9.4")
-- Found LLVM 16.0.4
-- Using LLVMConfig.cmake in: /opt/homebrew/opt/llvm@16/lib/cmake/llvm
-- Configuring done (4.5s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/ryanjoseph/Downloads/Amun-master/build
build$ make
[ 5%] Building CXX object CMakeFiles/amun.dir/src/amun_alias_table.cpp.o
[ 10%] Building CXX object CMakeFiles/amun.dir/src/amun_basic.cpp.o
[ 15%] Building CXX object CMakeFiles/amun.dir/src/amun_command.cpp.o
[ 21%] Building CXX object CMakeFiles/amun.dir/src/amun_compiler.cpp.o
In file included from /Users/ryanjoseph/Downloads/Amun-master/src/amun_compiler.cpp:4:
In file included from /Users/ryanjoseph/Downloads/Amun-master/src/../include/amun_llvm_backend.hpp:6:
/Users/ryanjoseph/Downloads/Amun-master/include/amun_llvm_builder.hpp:57:53: warning: 'getPointerElementType' is deprecated: Deprecated without replacement, see https://llvm.org/docs/OpaquePointers.html for context and migration instructions [-Wdeprecated-declarations]
auto pointer_element_type = pointer->getType()->getPointerElementType();
^
/opt/homebrew/opt/llvm@16/include/llvm/IR/Type.h:406:5: note: 'getPointerElementType' has been explicitly marked deprecated here
[[deprecated("Deprecated without replacement, see "
^
/Users/ryanjoseph/Downloads/Amun-master/src/amun_compiler.cpp:94:15: error: no template named 'Optional' in namespace 'llvm'; did you mean 'std::optional'?
auto rm = llvm::Optional<llvm::Reloc::Model>();
^~~~~~~~~~~~~~
std::optional
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/optional:590:7: note: 'std::optional' declared here
class optional
^
/Users/ryanjoseph/Downloads/Amun-master/src/amun_compiler.cpp:173:15: error: no template named 'Optional' in namespace 'llvm'; did you mean 'std::optional'?
auto rm = llvm::Optional<llvm::Reloc::Model>();
^~~~~~~~~~~~~~
std::optional
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/optional:590:7: note: 'std::optional' declared here
class optional
^
1 warning and 2 errors generated.
make[2]: *** [CMakeFiles/amun.dir/src/amun_compiler.cpp.o] Error 1
make[1]: *** [CMakeFiles/amun.dir/all] Error 2
make: *** [all] Error 2
build$