Open Cellule opened 7 years ago
Could you explain what you tried so far?
Here's the step I have taken
cmake ..
-- Building for: Visual Studio 15 2017
-- The C compiler identification is MSVC 19.10.25019.0
-- The CXX compiler identification is MSVC 19.10.25019.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/Preview/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/Preview/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/Preview/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/Preview/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:26 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred! See also "E:/Projects/creduce/build/CMakeFiles/CMakeOutput.log".
where clang C:\Program Files\LLVM\bin\clang.exe
clang --version clang version 4.0.0 (tags/RELEASE_400/final) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\Program Files\LLVM\bin
You can see the CMake log at https://gist.github.com/Cellule/6ea447f9317efa7affac49d05d52ef2e
I tried setting the CMAKE_PREFIX_PATH
, LLVM_DIR
and Clang_DIR
to a bunch of different paths, but nothing works.
I have installed llvm from http://releases.llvm.org/4.0.0/LLVM-4.0.0-win64.exe
I don't know where LLVMConfig.cmake is supposed to be
Indeed, it seems like the *.cmake
files are missing from the pre-built binaries. I'm not sure if that is something that changed recently. I thought they were included. After all they are copied to LLVM/lib/llvm/cmake/
if I build LLVM and clang myself on Windows.
I'm afraid that currently your best option will be to build LLVM and clang yourself for Windows to get C-Reduce working. You could have a look at my repository to get help how to build and install LLVM and clang from source on Windows. https://github.com/mpflanzer/clreduce#23-configure-and-build-llvm-and-clang
I managed to get a little further using instructions on your project (btw your submodule to creduce is pointing to an invalid commit, force-pushed I guess). Now I can't seem to install the perl dependencies. For instance I do
> cpan -i 'Exporter::Lite'
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/c/Users/micfer/.cpan/Metadata'
Database was generated on Mon, 10 Apr 2017 23:17:02 GMT
Running install for module 'Exporter::Lite'
Checksum for /c/Users/micfer/.cpan/sources/authors/id/N/NE/NEILB/Exporter-Lite-0.08.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring N/NE/NEILB/Exporter-Lite-0.08.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Exporter::Lite
Writing MYMETA.yml and MYMETA.json
NEILB/Exporter-Lite-0.08.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for N/NE/NEILB/Exporter-Lite-0.08.tar.gz
NEILB/Exporter-Lite-0.08.tar.gz
make -- NOT OK
Is there any progress with this effort? LLVM/Clang became way better since.
Hi, @XVilka. I think that the core problem addressed by this issue—merely building C-Reduce on Windows—has become a lot easier since this issue was created. (For that reason, maybe I should close this issue!) That said, I believe that i can still be tricky to run C-Reduce on Windows, for various reasons.
This project offers some tips for building/running C-Reduce on Windows: https://github.com/zjturner/creduce-windows
To my knowledge, none of the "core" C-Reduce maintainers regularly builds software on Windows.
We would welcome patches that make it easier for people to build/run C-Reduce on Windows.
I am trying to get this project to build on Windows, but I haven't had much luck. More documentation would be appreciated.