[LLVMbugs] [Bug 9667] New: clang 2.9, MSYS: compilation of a simple 'hello world" code takes 10s

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 10 03:30:45 PDT 2011


           Summary: clang 2.9, MSYS: compilation of a simple 'hello world"
                    code takes 10s
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: vincent.torri at gmail.com
                CC: llvmbugs at cs.uiuc.edu

I compiled llvm and clang on Windows, using MSYS. Here are the steps I did:

i unpacked llvm tarball
then i unpacked clang tarball in llvm/tools/
i renamed llvm/tools/clang-2.9 to llvm/tools/clang
i created build/ in llvm/
i entered llvm/build
then ../configure --prefix=/usr/llvm --enable-jit --with-built-clang

I think that --with-built-clang is useless.

Here are the settings:

$ llc --version
Low Level Virtual Machine (http://llvm.org/):
  llvm version 2.9
  Optimized build.
  Built Apr  8 2011 (09:07:34).
  Host: i686-pc-mingw32
  Host CPU: core2

  Registered Targets:
    alpha   - Alpha [experimental]
    arm     - ARM
    bfin    - Analog Devices Blackfin [experimental]
    c       - C backend
    cellspu - STI CBEA Cell SPU [experimental]
    cpp     - C++ backend
    mblaze  - MBlaze
    mips    - Mips
    mipsel  - Mipsel
    msp430  - MSP430 [experimental]
    ppc32   - PowerPC 32
    ppc64   - PowerPC 64
    ptx     - PTX
    sparc   - Sparc
    sparcv9 - Sparc V9
    systemz - SystemZ
    thumb   - Thumb
    x86     - 32-bit X86: Pentium-Pro and above
    x86-64  - 64-bit X86: EM64T and AMD64
    xcore   - XCore

$ clang --version
clang version 2.9 (tags/RELEASE_29/final)
Target: i686-pc-mingw32
Thread model: posix

If I compile a simple hello world code, it takes around 10s with clang, and
around 2s with gcc. Even clang --version  takes a bit more than 5s to display

I can provide more details if needed

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list