praveenvvstgy / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

Cmake build error on win x64 #116

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I get this error while configuring with cmake on x64 windows

The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
PROJECT_SOURCE_DIR: C:/cygwin/home/jackass/crack/crack-0.7.1
CMAKE_MODULE_PATH: C:/cygwin/home/jackass/crack/crack-0.7.1/cmake/modules
CMAKE_SYSTEM_PROCESSOR: x86
LLVM version: CreateProcessError: The system cannot find the file specified.

for command: LLVM_CONFIG_EXECUTABLE-NOTFOUND --version
LLVM CPP flags: CreateProcessError: The system cannot find the file specified.

for command: LLVM_CONFIG_EXECUTABLE-NOTFOUND --cppflags
LLVM LD flags: CreateProcessError: The system cannot find the file specified.

for command: LLVM_CONFIG_EXECUTABLE-NOTFOUND --ldflags
LLVM libs: CreateProcessError: The system cannot find the file specified.

for command: LLVM_CONFIG_EXECUTABLE-NOTFOUND --libs core jit native bitwriter 
instrumentation ipo linker
Found LLVM: CreateProcessError: The system cannot find the file specified.

for command: LLVM_CONFIG_EXECUTABLE-NOTFOUND --includedir
CMake Error at CMakeLists.txt:36 (MESSAGE):
  LLVM not found.  Please install 3.1 or greater, or set LLVM_DIR environment
  variable

At the same time i have this log from cmd

C:\Users\jackass>echo %LLVM_DIR%
C:\Program Files (x86)\LLVM

C:\Users\jackass>cd %LLVM_DIR%

C:\Program Files (x86)\LLVM>ls -R
.:
bin  include  lib  share
........<and all the files>

Also i have bin directory in the Path variable

Any hints? 

Thanks

Original issue reported on code.google.com by Kuldeep....@gmail.com on 26 Nov 2012 at 11:28

GoogleCodeExporter commented 9 years ago
At this point, we've done absolutely nothing towards getting the executor 
running on Windows.  Are you interested in working on porting it?

As for the specific problem - I'll leave it to the CMake guys to offer any 
suggestions as to why it's not finding llvm-config.  Out of curiosity, are you 
able to get any further with autotools?

(Assigning this to Shannon, even though he's away, just so we don't lose track 
of it)

Original comment by mmul...@google.com on 26 Nov 2012 at 2:45

GoogleCodeExporter commented 9 years ago

Original comment by mind...@gmail.com on 26 Nov 2012 at 2:46

GoogleCodeExporter commented 9 years ago
Yes i tried make targets on cygwin env. It fails which is quiet common for 
linux scripts on windows i guess. Attaching 'make' logs in case you want to 
look at it.

I have no knowledge of cmake scripts which is the first step towards resolving 
this, ill try to take a look at them anyways.

Original comment by Kuldeep....@gmail.com on 26 Nov 2012 at 3:32

Attachments:

GoogleCodeExporter commented 9 years ago
For the error you're getting in the cygwin build, you could try changing 
registerHook() in runtime/Exception.cc so that the second parameter is "void 
(*hook)()" instead of "void *hook"

But I must caution you that this is the first step in a long journey through a 
dark forest :-) 

Original comment by mind...@gmail.com on 26 Nov 2012 at 7:50