You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
set +x
set -e
# see https://root.cern.ch/cling-build-instructions
# mkdir from some parent project dir!
mkdir -p ../cling-build
cd ../cling-build
git clone http://root.cern.ch/git/llvm.git src
cd src
git checkout cling-patches
cd tools
git clone http://root.cern.ch/git/cling.git
git clone http://root.cern.ch/git/clang.git
cd clang
git checkout cling-patches
cd ../../..
mkdir build
cd build
# add parallel build support
# https://stackoverflow.com/questions/601970/how-do-i-utilise-all-the-cores-for-nmake
set CL=/MP
cmake -DCMAKE_INSTALL_PREFIX=../release -DCMAKE_BUILD_TYPE=Release ../src
cmake --build . -- -j6
# no install
# cmake --build . --target install
# NOTE: if you get error
# /home/denis/workspace/cling-cmake/cling-build/src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:722:26: error: could not convert ‘((llvm::orc::remote::OrcRemoteTargetClient<ChannelT>*)this)->callB<llvm::orc::remote::OrcRemoteTargetRPCAPI::ReadMem>(Src, Size)’ from ‘Expected<vector<unsigned char,allocator<unsigned char>>>’ to ‘Expected<vector<char,allocator<char>>>’
# return callB<ReadMem>(Src, Size);
# than apply patch (replace char with uint8_t) https://aur.archlinux.org/cgit/aur.git/tree/gcc-build-fix.patch?h=llvm50
The text was updated successfully, but these errors were encountered:
Issue:
OrcRemoteTargetClient.h:722:26: error: could not convert
(see below)Please update https://root.cern.ch/cling-build-instructions if need to switch branches.
Similar issue: #279
Possible patches:
Build script:
The text was updated successfully, but these errors were encountered: