Package Base Details: cling-git

Git Clone URL: https://aur.archlinux.org/cling-git.git (read-only)
Submitter: hagabaka
Maintainer: eduardosm
Last Packager: eduardosm
Votes: 41
Popularity: 0.134079
First Submitted: 2013-06-08 07:00
Last Updated: 2019-04-06 18:08

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

allspark commented on 2015-12-22 12:20

because of gcc dual-abi, (cling doesn't support (yet))

the following works for me

cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/opt/cling" \
-DLLVM_TARGETS_TO_BUILD="host" \
-DLLVM_BUILD_LLVM_DYLIB=OFF \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_ENABLE_FFI=ON \
-DLLVM_BUILD_DOCS=OFF \
-DLLVM_ENABLE_SPHINX=OFF \
-DLLVM_ENABLE_DOXYGEN=OFF \
-DFFI_INCLUDE_DIR=$(pkg-config --cflags-only-I libffi | cut -c3-) \
-DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 \
"$srcdir/llvm"




-DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 uses old ABI

eduardosm commented on 2015-11-12 20:53

@racko Thanks for noting this out, I didn't realized that build instructions had changed.

racko commented on 2015-11-12 20:19

cling-git r2704.30cc58a-1 failed to build for me. I had a look at the build instructions at https://root.cern.ch/cling-build-instructions and replaced the call to make on line 53 with

cmake --build . --config Release --target clang
cmake --build . --config Release --target cling

This resolved my build errors.

Anonymous comment on 2014-03-31 21:46

gwpl, look here http://root.cern.ch/drupal/content/cling-build-instructions
build instructions have been changed

gwpl commented on 2014-02-09 13:49

llvm[4]: Compiling TerminalDisplayUnix.cpp for Release build
ClangInternalState.cpp:278:8: error: no member named 'printMacros' in 'clang::Preprocessor'
PP.printMacros(Out);

Anonymous comment on 2014-01-23 15:11

It's definitely broken for now.
I've tried to build it manually with revision 191429.

Build fails on various points.

hagabaka commented on 2013-10-22 14:05

This should be solved by removing the clang=3.3 dependency, and installing the clang headers (by not removing them in package()). Perhaps it's best to install to /opt to avoid conflict with clang.

However the package takes too long and too much disk space for me to experiment. So I have disowned it. If I do get it working in the future and no one else has adopted it, I will.

I was hoping to figure out a way to install the headers into something like /usr/lib/cling/clang to avoid conflict with clang package, but failed. The question I posted at ROOT forum is here:
http://root.cern.ch/phpBB3/viewtopic.php?f=21&t=17097&sid=2e54a7618a9da447eb32567c66171880

hauptmech commented on 2013-10-20 22:02

I get the following error:

ERROR in cling::CIFactory::createCI():
resource directory /usr/lib/clang/3.4 not found!
In file included from -:1:
In file included from input_line_2:1:
In file included from /home/teh/tmp/cling-git/src/llvm/tools/cling/include/cling/Interpreter/ValuePrinter.h:11:
In file included from /../lib64/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1/string:40:
In file included from /../lib64/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1/bits/char_traits.h:40:
In file included from /../lib64/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1/bits/postypes.h:40:
In file included from /../lib64/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1/cwchar:44:
/usr/include/wchar.h:39:11: fatal error: 'stdarg.h' file not found
# include <stdarg.h>

===========
Clang version is 3.3

svn info for the src/llvm dir:
Working Copy Root Path: /home/user/tmp/cling-git/src/llvm
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Relative URL: ^/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 191429
Node Kind: directory
Schedule: normal
Last Changed Author: aemerson
Last Changed Rev: 191428
Last Changed Date: 2013-09-26 14:22:36 +0200 (Thu, 26 Sep 2013)





hagabaka commented on 2013-09-24 00:24

No longer conflicts with clang, but instead depends on clang=3.3 and uses its headers.

This might be broken when the clang package is upgraded in the future. I'm trying to figure out how to make cling use a different path for headers. I've tried ./configure --with-clang-resource-dir, and patching CIFactory::createCI in cling/lib/Interpreter/CIFactory.cpp. But cling still uses /usr/lib/clang/3.3/.

blippy commented on 2013-09-22 19:13

I successfully installed cling-git, and the interpreter starts as expected. Where is clang installed, because when I type clang it says:
bash: clang: command not found

Do I have to install clang separately? If I type
sudo pacman -S clang
I get
:: clang and cling-git are in conflict. Remove cling-git? [y/N]
What gives?