Package Details: cling 0.9-2

Git Clone URL: https://aur.archlinux.org/cling.git (read-only, click to copy)
Package Base: cling
Description: Interactive C++ interpreter, built on the top of LLVM and Clang libraries
Upstream URL: https://root.cern.ch/cling
Licenses: custom:Cling Release License
Conflicts: cling
Provides: cling
Submitter: archibald869
Maintainer: archibald869
Last Packager: archibald869
Votes: 11
Popularity: 0.27
First Submitted: 2019-08-28 11:45
Last Updated: 2021-09-29 19:06

Dependencies (6)

Required by (1)

Sources (3)

Latest Comments

1 2 3 Next › Last »

chn commented on 2021-10-07 05:47

It seems necessary to patch ClingTargets.cmake after installing it.

sed -i 's/IMPORTED_LOCATION_RELEASE\ \".*\/\([^\/]*\)/IMPORTED_LOCATION_RELEASE\ \"\/opt\/cling\/lib\/\1/g' "$pkgdir/opt/cling/lib/cmake/cling/ClingTargets.cmake"

Otherwise, other packages (such as xeus-cling) will try to find libraries in $srcdir other than /opt. If build cache of cling have been removed. xeus-cling will build failed.

krnlpk commented on 2021-10-01 08:48

The only error is make complaining about that there is no Makefile in build/tools/clang. I tried replacing make everywhere with ninja, adding -G Ninja to the cmake invocation and do

ninja clang ninja cling ... env DESTDIR="$pkgdir" ninja install

and it seems like it built without an hitch.

chn commented on 2021-10-01 08:45

@krnlpk build on my PC success, maybe you could check whether there is any error or warning in the output?

krnlpk commented on 2021-10-01 08:14

cling 0.9-2 doesn't build for me; in build() the PKGBUILD calls

make -C tools/clang
make -C tools/cling

but no Makefiles are generated inside those directories, so the build fails almost immediately.

archibald869 commented on 2021-09-29 19:07

Thanks for the hint! I updated the PKGBUILD as suggested. Can you please check if it works now?

chn commented on 2021-09-14 16:59

Using the current PKGBUILD, ClingTargets.cmake will not be packaged, which makes other packages failed to build if they have find_package(Cling REQUIRED) in their cmake file (such as xeus-cling).

Simply add install lib/cmake/cling/ClingTargets.cmake "$pkgdir/opt/cling/lib/cmake/cling" to the end of package() will resolve the problem.

I am not familiar with cmake and I could not figure out why cling does not install this file automatically. Maybe it is just a little bug?

archibald869 commented on 2021-08-13 12:11

I just tried to build and install it in a fresh Arch environment and it succeeded without any problems. How do you build the package?

DarioP commented on 2021-08-11 13:40

With the unmodified PKGBBUILD, I am getting an error about some missing doc file. I do not really care about local documentation. Is anyone getting the same?

CMake Error at docs/cmake_install.cmake:46 (file):
  file INSTALL cannot find
  "/tmp/makepkg/cling/src/build/docs/ocamldoc/html/.": No such file or
  directory.
Call Stack (most recent call first):
  cmake_install.cmake:81 (include)


make: *** [Makefile:111: install] Error 1

archibald869 commented on 2021-05-20 20:33

Thanks for the hint! I updated the PKGBUILD.

chn commented on 2021-05-15 02:23

Patch needed or the package() will fail.

in prepare():

cd $srcdir/llvm
git apply ../../001-add-limit-header.patch

And 001-add-limit-header.patch:

diff --git a/utils/benchmark/src/benchmark_register.h b/utils/benchmark/src/benchmark_register.h
index 0705e219f2f..4caa5ad4da0 100644
--- a/utils/benchmark/src/benchmark_register.h
+++ b/utils/benchmark/src/benchmark_register.h
@@ -1,6 +1,7 @@
 #ifndef BENCHMARK_REGISTER_H
 #define BENCHMARK_REGISTER_H

+#include <limits>
 #include <vector>

 #include "check.h"