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
Hello, I'm a Gentoo Linux user and today I tried to regenerate a specific qt5 bindings to try qt5 with crystal, but when the process started, it stopped and I had an error:
Full log:
zohran ~ Documents Programmation PGM BINDGEN_DYNAMIC=1 lib/bindgen/tool.sh qt.yml --stats
** clang/parser not found. Building now.
-- Found LLVM: 13.0.1
-- Using LLVMConfig.cmake in: /usr/lib/llvm/13/lib64/cmake/llvm
-- LLVM Major version: 13
-- Setting std version: c++14
-- LLVM Tools Dir: /usr/lib/llvm/13/bin
-- Using clang++ exec: /usr/lib/llvm/13/bin/clang++
-- Found llvm-config bin: /usr/lib/llvm/13/bin/llvm-config
-- Using llvm-config exec: /usr/lib/llvm/13/bin/llvm-config
-- Include LLVM dirs: /usr/lib/llvm/13/include
-- Add LLVM definitions: -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-- Run: crystal find_clang.cr -- --clang /usr/lib/llvm/13/bin/clang++ --llvm-config /usr/lib/llvm/13/bin/llvm-config --quiet
-- Run: crystal find_clang.cr -- --print-clang-libs --clang /usr/lib/llvm/13/bin/clang++ --llvm-config /usr/lib/llvm/13/bin/llvm-config --quiet
-- Run: crystal find_clang.cr -- --print-llvm-libs --clang /usr/lib/llvm/13/bin/clang++ --llvm-config /usr/lib/llvm/13/bin/llvm-config --quiet
-- CMake System Name: Linux
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zohran/Documents/Programmation/PGM/lib/bindgen/clang
Consolidate compiler generated dependencies of target parser
[ 7%] Building CXX object CMakeFiles/parser.dir/src/bindgen.cpp.o
/home/zohran/Documents/Programmation/PGM/lib/bindgen/clang/src/bindgen.cpp:18:38: error: calling a protected constructor of class 'clang::tooling::CommonOptionsParser'
clang::tooling::CommonOptionsParser op(argc, argv, BindgenCategory);
^
/usr/lib/llvm/13/include/clang/Tooling/CommonOptionsParser.h:76:3: note: declared protected here
CommonOptionsParser(
^
1 error generated.
make[2]: *** [CMakeFiles/parser.dir/build.make:76 : CMakeFiles/parser.dir/src/bindgen.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:164 : CMakeFiles/parser.dir/all] Erreur 2
make: *** [Makefile:91 : all] Erreur 2
Bindgen requires a full installation of Clang, its libraries and development
headers. Please install these first, and restart this script.
You can also manually run 'cmake . && make' in clang/ for debugging this issue.
Full path to clang/: /home/zohran/Documents/Programmation/PGM/lib/bindgen/clang/
zohran ~ Documents Programmation PGM 1 ls
lib shard.lock shard.yml
zohran ~ Documents Programmation PGM cd lib/
bindgen/ qt5/ spoved/ toka/
zohran ~ Documents Programmation PGM cd lib/qt5/
config/ ext/ images/ lib/ samples/ spec/ src/ support/
zohran ~ Documents Programmation PGM cd lib/
bindgen/ qt5/ spoved/ toka/
zohran ~ Documents Programmation PGM cd lib/bindgen/
assets/ ci/ clang/ images/ lib/ samples/ spec/ src/
zohran ~ Documents Programmation PGM cd lib/bindgen/clang/
zohran … lib bindgen clang cmake . && make
-- Found LLVM: 13.0.1
-- Using LLVMConfig.cmake in: /usr/lib/llvm/13/lib64/cmake/llvm
-- LLVM Major version: 13
-- Setting std version: c++14
-- LLVM Tools Dir: /usr/lib/llvm/13/bin
-- Using clang++ exec: /usr/lib/llvm/13/bin/clang++
-- Found llvm-config bin: /usr/lib/llvm/13/bin/llvm-config
-- Using llvm-config exec: /usr/lib/llvm/13/bin/llvm-config
-- Include LLVM dirs: /usr/lib/llvm/13/include
-- Add LLVM definitions: -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-- Run: crystal find_clang.cr -- --clang /usr/lib/llvm/13/bin/clang++ --llvm-config /usr/lib/llvm/13/bin/llvm-config --quiet
CMake Error at crystal.cmake:28 (message):
You're missing the LLVM and/or Clang executables or development libraries.
If you've installed the binaries in a non-standard location:
1) Make sure that `llvm-config` or `llvm-config-*` is set with --llvm_config FILE or is in PATH. The first binary found which satisfies version will be used.
2) In rare cases if clang++ isn't found or is incorrect, you can also specify it with --clang FILE.
If your distro does not support static libraries like openSUSE then set env
var BINDGEN_DYNAMIC=1.
This will use .so instead of .a libraries during linking.
If you are missing the packages, please install them:
ArchLinux: pacman -S llvm clang gc libyaml
Ubuntu: apt install clang-4.0 libclang-4.0-dev zlib1g-dev libncurses-dev libgc-dev llvm-4.0-dev libpcre3-dev
CentOS: yum install crystal libyaml-devel gc-devel pcre-devel zlib-devel clang-devel
openSUSE: zypper install llvm clang libyaml-devel gc-devel pcre-devel zlib-devel clang-devel ncurses-devel
Mac OS: brew install crystal bdw-gc gmp libevent libxml2 libyaml llvm
Call Stack (most recent call first):
CMakeLists.txt:4 (include)
-- Configuring incomplete, errors occurred!
See also "/home/zohran/Documents/Programmation/PGM/lib/bindgen/clang/CMakeFiles/CMakeOutput.log".
zohran … lib bindgen clang 1
And clang and llvm are installed with the following setup:
Hello, I'm a Gentoo Linux user and today I tried to regenerate a specific qt5 bindings to try qt5 with crystal, but when the process started, it stopped and I had an error:
Full log:
And clang and llvm are installed with the following setup:
I missed to install something ?
The text was updated successfully, but these errors were encountered: