[LLVMdev] Getting started using MinGW binary release?

sam lee skynare at gmail.com
Tue Nov 6 19:52:14 PST 2007


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
>



More information about the llvm-dev mailing list