Anton Korobeynikov
2007-Nov-06 22:33 UTC
[LLVMdev] Getting started using MinGW binary release?
> Sorry, this wasn't mentioned in documentation. llvm-gcc was built with > '--enable-threads' flag, thus it requires win32 pthread port. Keith have > already given a right link for dlls download.Just to make stuff clear: you'll have to download pthreadGC1.dll, rename it to pthreadGC.dll and put it somewhere in your PATH. All try to build all future versions of binaries with pthreads compiled statically. -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.
Finally, I got my hands on Windows machine again today. I extracted llvm-2.1-x86-mingw32.tar.bz2 and llvm-gcc4.0-2.1-x86-mingw32.tar.bz2 to C:\llvm (It's a bare Windows Vista installation without MinGW) Added C:\llvm\bin;C:\llvm\libexec\gcc\i686-pc-mingw32\4.0.1 to PATH (C:\llvm\libexec\gcc\i686-pc-mingw32\4.0.1 was added for cc1.exe) Downloaded ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-1-9-0-release/lib/pthreadGC1.dll to C:\llvm\bin\pthreadGC.dll And, > llvm-gcc hello.c -IC:\llvm\include -IC:\llvm\lib\gcc\i686-pc-mingw32\4.0.1\include llvm-gcc: installation problem, cannot exec `as': No such file or directory So, I renamed C:\llvm\bin\llvm-as.exe as C:\llvm\bin\as.exe > llvm-gcc hello.c -IC:\llvm\include -IC:\llvm\lib\gcc\i686-pc-mingw32\4.0.1\include as: ./cc0Qaaaa.s:3,0: ./cc0Qaaaa.s:3: error: syntax error, unexpected $undefined , expecting GLOBAL or CONSTANT while reading token: '.' Am I supposed to install MinGW (maybe MSYS) and extract prebuilt packages ( llvm-2.1-x86-mingw32.tar.bz2 and llvm-gcc4.0-2.1-x86-mingw32.tar.bz2) to C:\MinGW ?? I'll try to install MinGW tomorrow. Thanks. Sam On Nov 6, 2007 5:33 PM, Anton Korobeynikov <asl at math.spbu.ru> wrote:> > > Sorry, this wasn't mentioned in documentation. llvm-gcc was built with > > '--enable-threads' flag, thus it requires win32 pthread port. Keith have > > already given a right link for dlls download. > Just to make stuff clear: you'll have to download pthreadGC1.dll, rename it to pthreadGC.dll and > put it somewhere in your PATH. All try to build all future versions of binaries with > pthreads compiled statically. > > > -- > With best regards, Anton Korobeynikov. > > Faculty of Mathematics & Mechanics, Saint Petersburg State University. > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Maarten ter Huurne
2007-Nov-07 09:25 UTC
[LLVMdev] Getting started using MinGW binary release?
On Wednesday 07 November 2007, sam lee wrote:> > llvm-gcc hello.c -IC:\llvm\include > > -IC:\llvm\lib\gcc\i686-pc-mingw32\4.0.1\include > llvm-gcc: installation problem, cannot exec `as': No such file or > directory > > So, I renamed C:\llvm\bin\llvm-as.exe as C:\llvm\bin\as.exellvm-as.exe converts LLVM assembly to LLVM bitcode, while as.exe converts native assembly to native opcodes, so renaming is not going to work. You should install the binutils of MinGW instead. Bye, Maarten -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071107/61969547/attachment.sig>
Seemingly Similar Threads
- [LLVMdev] Getting started using MinGW binary release?
- [LLVMdev] Getting started using MinGW binary release?
- [LLVMdev] Getting started using MinGW binary release?
- [LLVMdev] FW: Qs about install on mingw32 (Was [llvm-announce] LLVM 2.1 Release!)
- [LLVMdev] 2.1 Pre-Release Available (testers needed)