Hi, I’m a contributor to Homebrew (package manager for macOS)
By creating a Homebrew Formula for Cling, users of Cling would be easily able to install and use cling by just running brew install cling
I created a Pull request for the same here: https://github.com/Homebrew/homebrew-core/pull/18124
According to Homebrew guidelines, a git tag in the upstream repository is to be specified in Homebrew Formula. But the latest v0.4 tag doesn’t build.
Can you please tag a version which builds?
Below are the build time errors that I’m facing in macOS Sierra 10.12.6
[ 64%] Building CXX object tools/cling/lib/MetaProcessor/CMakeFiles/obj.clingMetaProcessor.dir/MetaParser.cpp.o
Scanning dependencies of target clingUserInterface
[ 64%] Building CXX object tools/cling/lib/UserInterface/CMakeFiles/clingUserInterface.dir/UserInterface.cpp.o
In file included from /tmp/cling-20170915-21432-177gwfq/cling-0.4/src/tools/cling/lib/UserInterface/UserInterface.cpp:12:
/tmp/cling-20170915-21432-177gwfq/cling-0.4/src/tools/cling/include/cling/Interpreter/Exception.h:31:36: error: expected ';' at end of declaration list
virtual ~InterpreterException() LLVM_NOEXCEPT;
^
;
/tmp/cling-20170915-21432-177gwfq/cling-0.4/src/tools/cling/include/cling/Interpreter/Exception.h:48:37: error: expected ';' at end of declaration list
virtual ~InvalidDerefException() LLVM_NOEXCEPT;
^
;
/tmp/cling-20170915-21432-177gwfq/cling-0.4/src/tools/cling/include/cling/Interpreter/Exception.h:63:28: error: expected ';' at end of declaration list
~CompilationException() LLVM_NOEXCEPT;
^
;
[ 64%] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/MacroPPCallbacks.cpp.o
3 errors generated.
make[2]: *** [tools/cling/lib/UserInterface/CMakeFiles/clingUserInterface.dir/UserInterface.cpp.o] Error 1
make[1]: *** [tools/cling/lib/UserInterface/CMakeFiles/clingUserInterface.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 64%] Building CXX object tools/bugpoint/CMakeFiles/bugpoint.dir/OptimizerDriver.cpp.o
[ 64%] Building CXX object tools/cling/lib/MetaProcessor/CMakeFiles/obj.clingMetaProcessor.dir/MetaProcessor.cpp.o
In file included from /tmp/cling-20170915-21432-177gwfq/cling-0.4/src/tools/cling/lib/Interpreter/AutoloadCallback.cpp:28:
/tmp/cling-20170915-21432-177gwfq/cling-0.4/src/tools/cling/lib/Interpreter/DeclUnloader.h:267:5: error: unknown type name 'LLVM_CONSTEXPR'
LLVM_CONSTEXPR static bool isDefinition(void*) { return false; }
^
/tmp/cling-20170915-21432-177gwfq/cling-0.4/src/tools/cling/lib/Interpreter/DeclUnloader.h:267:20: error: expected member name or ';' after declaration specifiers
LLVM_CONSTEXPR static bool isDefinition(void*) { return false; }
~~~~~~~~~~~~~~ ^
/tmp/cling-20170915-21432-177gwfq/cling-0.4/src/tools/cling/lib/Interpreter/AutoloadCallback.cpp:127:47: error: cannot initialize a parameter of type 'bool *' with an rvalue of type 'bool'
/*SkipCache*/ false, /*OpenFile*/ false,
^~~~~
/tmp/cling-20170915-21432-177gwfq/cling-0.4/src/tools/cling/../clang/include/clang/Lex/Preprocessor.h:1766:37: note: passing argument to parameter 'IsMapped' here
bool *IsMapped,
^
[ 64%] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/clangStaticAnalyzerCheckers.dir/CheckObjCDealloc.cpp.o
[ 64%] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/clangStaticAnalyzerCore.dir/Environment.cpp.o
[ 64%] Building CXX object tools/bugpoint/CMakeFiles/bugpoint.dir/ToolRunner.cpp.o
3 errors generated.
make[2]: *** [tools/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/AutoloadCallback.cpp.o] Error 1
make[1]: *** [tools/cling/lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/all] Error 2
[ 66%] Linking CXX static library ../../../../../lib/libclangStaticAnalyzerCheckers.a
[ 66%] Built target clangStaticAnalyzerCheckers
make: *** [all] Error 2