herz
2010-Jan-22 15:01 UTC
[LLVMdev] Compiling LLVM under vista with msdev 2008 gives a few errors
Hi, I just started with LLVM so I'm not sure who's responsible for portability. Anyways, I found the following problems trying to compile llvm rev 94074 with the solution generated using cmake 2.8 (including the clang front end) on 32bit vista: lib/system Errno.cpp : had to add "#undef HAVE_STRERROR_R" raw_ostream.cpp: had to add "#undef HAVE_UNISTD_H" (apparently config.h was not generated correctly) lib/support IsNan.cpp : had to add "#define isnan _isnan #include <float.h>" IsInf.cpp : had to add "#define isinf !_finite #include <float.h>" examples/ParallelJIT ParallelJIT.cpp : "#include <pthread.h>" pthread.h not supported on windows Obviously, these are quick hacks to get it to compile and no solutions :) Possibly I did something wrong when configuring the build. Also I just had the first look atthe sources yesterday, so I wouldn't want to attempt a real solution myself, yet. Alex
Thomas Veith
2010-Jan-22 15:12 UTC
[LLVMdev] Compiling LLVM under vista with msdev 2008 gives a few errors
Hi, i had the same troubles on Vista and on Win7... cmake fails on some tests (you should see this in the log) due to m$ UAC (or whatever the name is) and uses not-so-sane default values. You have to start a visual c-command prompt (to make sure it gets the right paths) with administrator privileges (!) , than cmake works fine and you get a correct config.h. best regards, Thomas 2010/1/22 herz <alexander.herz at mytum.de>> Hi, > > I just started with LLVM so I'm not sure who's responsible for > portability. Anyways, I found the following problems trying to compile > llvm rev 94074 with the solution generated using cmake 2.8 (including > the clang front end) on 32bit vista: > > lib/system > > Errno.cpp : had to add "#undef HAVE_STRERROR_R" > raw_ostream.cpp: had to add "#undef HAVE_UNISTD_H" > (apparently config.h was not generated correctly) > > lib/support > > IsNan.cpp : had to add "#define isnan _isnan #include <float.h>" > IsInf.cpp : had to add "#define isinf !_finite #include <float.h>" > > examples/ParallelJIT > > ParallelJIT.cpp : "#include <pthread.h>" pthread.h not supported on > windows > > Obviously, these are quick hacks to get it to compile and no solutions :) > Possibly I did something wrong when configuring the build. Also I just > had the first look atthe sources yesterday, so I wouldn't want to > attempt a real solution myself, yet. > > Alex > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100122/b90f9eb5/attachment.html>
herz
2010-Jan-22 15:33 UTC
[LLVMdev] Compiling LLVM under vista with msdev 2008 gives a few errors
Hi, running the msvc command with admin doesn't help. Possibly there are problems because I have cygwin installed and in my path... Thomas Veith schrieb:> Hi, > > i had the same troubles on Vista and on Win7... > > cmake fails on some tests (you should see this in the log) due to m$ > UAC (or whatever the name is) and uses not-so-sane default values. > > You have to start a visual c-command prompt (to make sure it gets the > right paths) with administrator privileges (!) , than cmake works fine > and you get a correct config.h. > > best regards, > Thomas > > 2010/1/22 herz <alexander.herz at mytum.de <mailto:alexander.herz at mytum.de>> > > Hi, > > I just started with LLVM so I'm not sure who's responsible for > portability. Anyways, I found the following problems trying to compile > llvm rev 94074 with the solution generated using cmake 2.8 (including > the clang front end) on 32bit vista: > > lib/system > > Errno.cpp : had to add "#undef HAVE_STRERROR_R" > raw_ostream.cpp: had to add "#undef HAVE_UNISTD_H" > (apparently config.h was not generated correctly) > > lib/support > > IsNan.cpp : had to add "#define isnan _isnan #include <float.h>" > IsInf.cpp : had to add "#define isinf !_finite #include <float.h>" > > examples/ParallelJIT > > ParallelJIT.cpp : "#include <pthread.h>" pthread.h not supported on > windows > > Obviously, these are quick hacks to get it to compile and no > solutions :) > Possibly I did something wrong when configuring the build. Also I just > had the first look atthe sources yesterday, so I wouldn't want to > attempt a real solution myself, yet. > > Alex > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu> > http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
Seemingly Similar Threads
- [LLVMdev] Compiling LLVM under vista with msdev 2008 gives a few errors
- [LLVMdev] HowToUseJIT.cpp - file: 'llvm/ADT/iterator': No such file or directory
- [LLVMdev] Visual C Patches for IsNAN.cpp and IsInf.cpp
- [LLVMdev] cross compiling using llvm 1.8
- [LLVMdev] mingw binary is corrupt