[LLVMdev] Building llvm under cygwin

Reid Spencer reid at x10sys.com
Sun Jul 30 20:15:00 PDT 2006


If you're building llvm-gcc4, you don't need the runtime libraries, so
I'd just stick with the "tools-only" build and declare success.  If
you're building llvm-gcc3, I'd suggest you switch to llvm-gcc4 :)

However, the problem appears to be your PATH variable. In your path you
have the following directory: C:/Program Files/Microsoft DirectX SDK
(June 2006)/Utilities/Bin/x86. The bash shell doesn't like this because
( and ) are operators that invoke a sub-shell. You can do one of two
things: either remove this directory from your path (its probably not
needed), or enclose it in single quotes.

Reid.


On Sun, 2006-07-30 at 23:44 +0400, Anton Vayvod wrote:
> Hi!
>  
> I'm trying to build LLVM under cygwin.
> I have the latest version of cygwin and CVS versions of llvm,
> llvm-test and llvm-gcc.
> make of tools only succeeded.
> make of frontend succeeded too
> but full make of llvm failed on crtend in llvm/runtime/GCCLibraries
> with the following message:
>  
> llvm[0]: Compiling crtend.c for Debug build (bytecode)
> /bin/sh: -c: line 0: syntax error near unexpected token `('
> /bin/sh: -c: line 0: `if
> PATH="/llvmobj/Debug/bin:/bin:/llvmobj/Debug/bin:/bin:/
> usr/local/bin:/usr/bin:/bin:"C:/Program Files/Microsoft DirectX SDK
> (June 2006)/ 
> Utilities/Bin/x86":/usr/bin:/cygdrive/c/CB6/Bin:/cygdrive/c/CB6/Projects/Bpl:/cy
> gdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:
> /cygdrive/c/Program Files/Microsoft SDK/Bin/:/cygdrive/c/Program
> Files/Microsoft 
>  SDK/Bin/WinNT/:/cygdrive/c/Program Files/Common Files/Autodesk
> Shared/:/cygdriv
> e/c/Program Files/backburner 2/:/cygdrive/c/Program Files/Microsoft
> SQL Server/8
> 0/Tools/BINN:/cygdrive/c/Program Files/Microsoft SQL
> Server/90/Tools/binn/:/cygd 
> rive/c/Program Files/Subversion/bin:/cygdrive/c/Program
> Files/doxygen/bin:/cygdr
> ive/c/Program Files/ionForge/ionForge Evolution:/cygdrive/c/Program
> Files/CVSNT/
> :/cygdrive/c/jdk1.5.0/ant/bin" /bin/llvm-gcc.exe
> -I/llvmobj/runtime/GCCLibraries
> /crtend -I/llvm/runtime/GCCLibraries/crtend -I/llvmobj/include
> -I/llvm/include -
> I/llvmobj/include -I/llvm/include  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
> -Wall -W
> -Wwrite-strings -Wno-unused -Wno-long-long -pedantic  -g -D_DEBUG  -MD
> -MT /llvm 
> obj/runtime/GCCLibraries/crtend/Debug/crtend.ll -MP -MF
> "/llvmobj/runtime/GCCLib
> raries/crtend/Debug/crtend.BCCd" \'
> make: *** [/llvmobj/runtime/GCCLibraries/crtend/Debug/crtend.ll] Error
> 2
> 
> What should I do to finish building llvm?
>  
> Thanks.
>  
> Tony.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- 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/20060730/2a9be5ef/attachment.sig>


More information about the llvm-dev mailing list