On 09/12/15 03:13, Lehmann, Patrick wrote:
Has anyone tried to compile GHDL for Windows with an LLVM backend?
No, as far as I know.
I mastered a handful of steps (no warranty for final success): -Don’t download LLVM as a windows package – llvm-config is missing! -Download the LLVM sources -Install CMake to translate LLVM makefiles into VisualStudio Projects
I am not sure you could use VisualStudio as a compiler. Intuitively, I would select mingw32, if that's possible.
-Install GnuWin32 (I don’t kno why … the LLVM website says so …) -Run VisualStudio (needs circa 8 GB space – what the hell ! – and > 1h to compile) -Don’t install LLVM into a space (sign) containing directory. -Still waiting for LLVM to finish ……………… Current open steps: -Compiling llvm-cbindings.cpp to llvm-cbindings.o -> missing header files. I hope they will be present when LLVM is compiled from sources.
Note that ghdl needs llvm-3.5, later versions may not work.
-Compiling dist/llvm/windows/default_pathes.ads and dist/llvm/windows/windows_default_path.ads I copied these files from dist/mcode/windows into a new folder dist/llvm/windows. GNAT says: D:\git\GitHub\ghdl\dist\llvm [paebbels/master +3 ~1 -0 !]> gcc.exe $COMPILE_OPTIONS $COMPILE_INC_PATHS -I- ../../dist/llvm/windows/default_pathes.ads default_pathes.ads:1:06: file "windows_default_path.ads" not found D:\git\GitHub\ghdl\dist\llvm [paebbels/master +3 ~1 -0 !]> gcc.exe $COMPILE_OPTIONS $COMPILE_INC_PATHS -I- ../../dist/llvm/windows/windows_default_path.ads cannot generate code for file windows_default_path.ads (package spec)
You also should copy windows_default_path.adb Tristan. _______________________________________________ Ghdl-discuss mailing list Ghdl-discuss@gna.org https://mail.gna.org/listinfo/ghdl-discuss