Hi, I finally gave up building on Linux, in the meantime, and tried to build this version straight on Windows, using mingw32. This is my command line: (running from /c/llvm1.8/generated-llvm/obj) *../../llvm/configure --prefix=/c/llvm1.8/gene* *rated-llvm/install/ --enable-debug-runtime --enable-jit* This is my path definition (it has several redundancies): $ echo $PATH .:/usr/local/bin:/mingw/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program Files/Common Files/Teleca Shared:/mingw:/c/downloads:/c/llvm1.8/generated-llvm/obj/Debug/bin:/c/llvm1.8-mingw32/bin:/c/llvm1.8-frontend/bin:/mingw/bin And this is the error I get while running configure: . . . appending configuration tag CXX to mklib appending configuration tag F77 to mklib checking for llvm-gcc.exe... /c/llvm1.8-mingw32/bin/llvm-gcc.exe checking for llvm-g++.exe... /c/llvm1.8-mingw32/bin/llvm-g++.exe *checking tool compatibility... configure: error: g++|icc required but not found* I searched the file system and couldn't find a file called g++.exe - only gcc.exe (which is located under mingw/bin) and llvm-g++.exe (which is located under llvm1.8-frontend/bin). What seems to be the problem and how can I solve it? guy at MS-WXP-AVIV /c/llvm1.8/generated-llvm/obj Anton Korobeynikov wrote:> Hi, > > >> AsmWriterEmitter.cpp:(.text+0x78): undefined reference to `__dso_handle' >> AsmWriterEmitter.cpp:(.text+0x8c): undefined reference to `__cxa_atexit' >> > This is not connected with that warning. Something is wrong with your > compiler / linker. Either it does not provide needed libraries, or > broken in other way. > > >> AsmWriterEmitter.cpp:(.text+0x25e): undefined reference to `_ZNSsC1ERKSs' >> > these came from libstdc++ > > >> AsmWriterEmitter.cpp:(.text+0x273): undefined reference to `_ZNSsC1ERKSs' >> AsmWriterEmitter.cpp:(.text+0x28b): undefined reference to `_ZNSsC1ERKSs' >> AsmWriterEmitter.cpp:(.text+0x2a5): undefined reference to `_ZNSsD1Ev' >> AsmWriterEmitter.cpp:(.text+0x2ad): undefined reference to `_Unwind_Resume' >> > and this from libgcc > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081104/01be62d3/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3265 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081104/01be62d3/attachment.bin>
Aviv Peretz wrote:> > Hi, > > > I finally gave up building on Linux, in the meantime, and tried to > build this version straight on Windows, using mingw32. > > > .... > > appending configuration tag CXX to mklib > appending configuration tag F77 to mklib > checking for llvm-gcc.exe... /c/llvm1.8-mingw32/bin/llvm-gcc.exe > checking for llvm-g++.exe... /c/llvm1.8-mingw32/bin/llvm-g++.exe > *checking tool compatibility... configure: error: g++|icc required but > not found* > > > I searched the file system and couldn't find a file called g++.exe - > only gcc.exe (which is located under mingw/bin) and llvm-g++.exe > (which is located under llvm1.8-frontend/bin). > > What seems to be the problem and how can I solve it? >You only have C (provided by gcc) installed. You need to unpack the C++ tarball (which provides g++) in the parent directory (the one above bin with gcc, include, and lib). The C++ tarball should be the same release number as the gcc already installed. Kenneth
Thanks, it helped :-) I'm now building the sources and apparently my mingw installation does not support pthread and therefore examples/ParallelJIT.cpp fails: make[2]: Entering directory `/c/llvm1.8/generated-llvm/obj/examples/ParallelJIT' llvm[2]: Compiling ParallelJIT.cpp for Debug build c:/llvm1.8/llvm/examples/ParallelJIT/ParallelJIT.cpp:20:21: pthread.h: No such file or directory c:/llvm1.8/llvm/examples/ParallelJIT/ParallelJIT.cpp:212: error: `pthread_cond_t ' does not name a type ../../llvm/configure --prefix=/c/llvm1.8/generated-llvm/install/ --enable-debug-runtime --enable-jit Is there an elegant way to skip building the examples (e.g. via a specific flag of cofigure) or the only way to overcome this is to insert #if 0 in the actual code? Kenneth Boyd wrote:> Aviv Peretz wrote: > >> Hi, >> >> >> I finally gave up building on Linux, in the meantime, and tried to >> build this version straight on Windows, using mingw32. >> >> >> .... >> >> appending configuration tag CXX to mklib >> appending configuration tag F77 to mklib >> checking for llvm-gcc.exe... /c/llvm1.8-mingw32/bin/llvm-gcc.exe >> checking for llvm-g++.exe... /c/llvm1.8-mingw32/bin/llvm-g++.exe >> *checking tool compatibility... configure: error: g++|icc required but >> not found* >> >> >> I searched the file system and couldn't find a file called g++.exe - >> only gcc.exe (which is located under mingw/bin) and llvm-g++.exe >> (which is located under llvm1.8-frontend/bin). >> >> What seems to be the problem and how can I solve it? >> >> > You only have C (provided by gcc) installed. You need to unpack the C++ > tarball (which provides g++) in the parent directory (the one above bin > with gcc, include, and lib). The C++ tarball should be the same release > number as the gcc already installed. > > Kenneth > > _______________________________________________ > 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/20081104/ff5bcde7/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3265 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081104/ff5bcde7/attachment.bin>