Package Details: cling-git r4811.19a2c1b7-1

Git Clone URL: (read-only, click to copy)
Package Base: cling-git
Description: Interactive C++ interpreter built on the top of LLVM and Clang libraries.
Upstream URL:
Licenses: custom:Cling Release License
Submitter: hagabaka
Maintainer: simonfxr
Last Packager: simonfxr
Votes: 44
Popularity: 0.000000
First Submitted: 2013-06-08 07:00 (UTC)
Last Updated: 2022-04-23 07:37 (UTC)

Latest Comments

Nestor_013 commented on 2022-04-03 14:01 (UTC) (edited on 2022-04-03 14:01 (UTC) by Nestor_013)


jupyter has been replaced by jupyter-notebook and hence the package does not build.

I guess that simply changing depends and makedepends accordingly would do it.

eduardosm commented on 2019-11-16 18:45 (UTC)

@tauroid Thanks, fixed. I wonder why cling needs the NVPTX target.

tauroid commented on 2019-11-16 16:44 (UTC)

CMake Error at tools/cling/CMakeLists.txt:178 (message):
  NVPTX backend is not activated

  Please enable it via -DLLVM_TARGETS_TO_BUILD="host;NVPTX"

changing the relevant line (44) in PKGBUILD yields working install for me




jdc commented on 2019-04-25 03:14 (UTC)

I ran into a cryptic error message, but found it it was because I didn't have libc++ installed. With that out of the way, it works great!

maximaman commented on 2019-02-02 20:58 (UTC)

I have encountered the following error while trying to build the package:

/home/sid/src/aur/cling-git/src/llvm/tools/cling/lib/Interpreter/Interpreter.cpp: In constructor ‘cling::Interpreter::Interpreter(int, const char* const*, const char*, bool, const cling::Interpreter*)’:
/home/sid/src/aur/cling-git/src/llvm/tools/cling/lib/Interpreter/Interpreter.cpp:309:13: error: ‘class clang::CompilerInvocation’ has no member named ‘addOverlay’
In file included from /home/sid/src/aur/cling-git/src/llvm/include/llvm/ADT/STLExtras.h:32,
                 from /home/sid/src/aur/cling-git/src/llvm/include/llvm/ADT/StringRef.h:13,
                 from /home/sid/src/aur/cling-git/src/llvm/tools/cling/include/cling/Interpreter/Interpreter.h:15,
                 from /home/sid/src/aur/cling-git/src/llvm/tools/cling/lib/Interpreter/Interpreter.cpp:10:
/home/sid/src/aur/cling-git/src/llvm/include/llvm/ADT/SmallVector.h: In instantiation of ‘void llvm::SmallVectorTemplateBase<T, true>::push_back(const T&) [with T = std::pair<clang::IdentifierInfo*, clang::SourceLocation>]’:
/home/sid/src/aur/cling-git/src/llvm/tools/cling/lib/Interpreter/Interpreter.cpp:833:53:   required from here

eduardosm commented on 2016-11-25 10:22 (UTC)

@marmistrz Please, try the new version I've just uploaded.

marmistrz commented on 2016-11-24 22:04 (UTC)

error: patch failed: tools/Jupyter/kernel/ error: tools/Jupyter/kernel/ patch does not apply

ralonso commented on 2016-04-11 04:01 (UTC)

It seems the jupyter diff no longer applies to the current git version of tools/Jupyter/kernel/

eduardosm commented on 2016-03-23 19:33 (UTC)

@NeoZelux The package is in the base-devel group, and according to the wiki there shouldn't be packages from that group in makedepends.

NeoZelux commented on 2016-03-22 20:58 (UTC)

Hi, I think you should add pkg-config as a build dependency.

fenuks commented on 2016-03-22 06:34 (UTC) (edited on 2016-03-22 06:36 (UTC) by fenuks)

@eduardosm After your comment, I removed all the cloned repos, re-downloaded it, and now cling builds! Thank you, and sorry for false alarm.

valexey commented on 2016-02-27 13:01 (UTC)

@eduardosm Thanks. It works.

eduardosm commented on 2016-02-27 09:42 (UTC)

@valexey Try to use "Download snapshot", unpack, run "makepkg" and then "pacman -U"

valexey commented on 2016-02-27 09:35 (UTC)

@eduardosm pacaur -S cling-git

eduardosm commented on 2016-02-26 19:39 (UTC)

@valexey Which command are you using to install it? The .SRCINFO is up to date with the PKGBUILD.

valexey commented on 2016-02-26 18:29 (UTC)

Can not install cling: ==> Leaving fakeroot environment. ==> Finished making: cling-git r2856.9bf8506-1 (Fri Feb 26 21:22:06 MSK 2016) ==> Cleaning up... :: Installing cling-git package(s)... :: cling-git package(s) failed to install. Check .SRCINFO for mismatching data with PKGBUILD. How to fix it?

gdolle commented on 2016-02-24 14:08 (UTC) (edited on 2016-02-24 14:12 (UTC) by gdolle)

I have tested the jupyter notebook, it works quite well. `jupyter notebook --ip=localhost` to get the standard output. However, if you restart the kernel or rerun cells, sometimes kernel and/or the standard output seems to crash, you have to restart the kernel+clear output or restart the notebook server to make it work again (I guess it's a cling notebook bug).

eduardosm commented on 2016-02-17 14:09 (UTC) (edited on 2016-02-17 14:10 (UTC) by eduardosm)

@tlater I have included it now, but I haven't tested it and I'm not sure if I did it correctly because I hadn't heard about Jupyter before. Could you please test it?

commented on 2016-02-16 23:36 (UTC)

Cling includes a jupyter kernel, but I can't find it in /opt/cling - is this or could this be included here as well?

eduardosm commented on 2015-12-22 19:17 (UTC)

@allspark Thanks. I have just updated the PKGBUILD.

allspark commented on 2015-12-22 18:37 (UTC)

i don't have the original error message but it was something like: "cannot find symbol/function print(...)" when i entered e.g. 2 or "foo"

eduardosm commented on 2015-12-22 12:55 (UTC)

@allspark What issues were you getting because of gcc dual ABI?

allspark commented on 2015-12-22 12:20 (UTC)

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 (UTC)

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

racko commented on 2015-11-12 20:19 (UTC)

cling-git r2704.30cc58a-1 failed to build for me. I had a look at the build instructions at 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.

commented on 2014-03-31 21:46 (UTC)

gwpl, look here build instructions have been changed

gwpl commented on 2014-02-09 13:49 (UTC)

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

commented on 2014-01-23 15:11 (UTC)

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 (UTC)

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:

hauptmech commented on 2013-10-20 22:02 (UTC)

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: Relative URL: ^/llvm/trunk Repository Root: 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 (UTC)

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/.

alucryd commented on 2013-08-28 09:40 (UTC)

thestinger: Processing the aurdupes, it seems upstream has moved to git. I'll be merging this into cling-git.

hagabaka commented on 2013-06-08 07:03 (UTC)

I've created a PKGBUILD based on this to build from cling's git repository:

Earnest commented on 2013-04-29 15:00 (UTC)

I'm getting this build error during llvm compliation: System ------ Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz x86_64 installation gcc{,-lib} 4.8.0-3 makepkg.conf flags ------------------ CPPFLAGS="-D_FORTIFY_SOURCE=2" CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -flto" CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -flto" LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro" MAKEFLAGS="-j4"

demonicmaniac commented on 2013-01-01 03:28 (UTC)

ASSEMBLE: clang_linux/full-i386/i386: /home/bugger/yaourtbuild/cling-svn/src/llvm-build/projects/compiler-rt/lib/i386/floatundisf.S /home/bugger/yaourtbuild/cling-svn/src/llvm-build/projects/compiler-rt/lib/i386/floatundisf.S:82:15: error: invalid reference to undefined symbol movsd sticky-0b(%ecx,%eax,8), %xmm1

thestinger commented on 2012-08-15 13:33 (UTC)

The issue is that the cmake build system doesn't seem to support an equivalent to --enable-targets=host. At the moment there's a workaround in the PKGBUILD though so messing with the /usr/bin/python symlink is no longer necessary.

kennytm commented on 2012-08-15 07:47 (UTC)

@thestinger You could use CMAKE_USE_PYTHON_VERSION to force CMake to use Python 2.7.

thestinger commented on 2012-04-20 22:17 (UTC)

At the moment, you'll have to symlink /usr/bin/python to /usr/bin/python2 because I haven't figured out how to set the path to python with the non-cmake build system (required to build cling). It does checkouts during the actual build process and modifies the python files, which complicates things.