[LLVMbugs] [Bug 5496] New: error compiling Compiling BasicBlockTracing.ll on mingw

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Nov 14 20:01:24 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5496

           Summary: error compiling Compiling BasicBlockTracing.ll on mingw
           Product: compiler-rt
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: compiler-rt
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sherpya at gmail.com
                CC: llvmbugs at cs.uiuc.edu


I'm using latest llvm and llvm-gcc from repo.or.cz git repository
(I hope is enough up-to-date), this problem sits here for a while

I can build llvm-gcc then when I try to build llvm I get:

llvm[2]: Compiling BasicBlockTracing.ll to BasicBlockTracing.bc for Release
build (bytecode)
c:\Work\llvm\build-llvm\Release\bin\opt.exe:
c:/Work/llvm/build-llvm/runtime/libprofile/Release/BasicBlockTracing.ll:1:2:
error: expected top-level entity
        .file   "BasicBlockTracing.c"
        ^
make[2]: ***
[/c/Work/llvm/build-llvm/runtime/libprofile/Release/BasicBlockTracing.bc] Error
1


the ll file starts with:

    .file   "BasicBlockTracing.c"
    .text
    .p2align 4,,15
.globl _llvm_start_basic_block_tracing
    .def    _llvm_start_basic_block_tracing;    .scl    2;  .type   32; .endef
_llvm_start_basic_block_tracing:
    pushl   %ebx

I configure it with:

CC=llvm-gcc CXX=llvm-g++        \
    ../llvm/configure           \
    --enable-optimized          \
    --prefix=/mingw/llvm        \
    --program-prefix=llvm-      \
    --target=i686-pc-mingw32    \
    --enable-targets=host       \
    --enable-bindings=none      \
    --disable-shared            \
    --disable-bootstrap         \
    --disable-nls               \
    --with-tune=generic         \
    --with-cpu=i686             \
    --disable-win32-registry    \
    --enable-languages=c,c++    \
    --disable-sjlj-exceptions

configure options for llvm-gcc:
    ../llvm-gcc-4.2/configure   \
    --enable-optimized          \
    --prefix=/mingw/llvm        \
    --program-prefix=llvm-      \
    --target=i686-pc-mingw32    \
    --enable-targets=host       \
    --disable-shared            \
    --disable-bootstrap         \
    --disable-nls               \
    --with-tune=generic         \
    --with-cpu=i686             \
    --disable-win32-registry    \
    --enable-languages=c,c++    \
    --disable-sjlj-exceptions


-- 
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