[LLVMbugs] [Bug 1888] New: Compilier errors in Building LLVM using Windows MSVC Projects

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Dec 31 18:41:35 PST 2007


           Summary: Compilier errors in Building LLVM using Windows MSVC
           Product: Build scripts
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Keywords: build-problem
          Severity: enhancement
          Priority: P2
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: willi.t1 at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=1312)
 --> (http://llvm.org/bugs/attachment.cgi?id=1312)
Patch for the dobison script and codegen project

The MSVC project under llvm/win32 and some source files has to be adjusted in
order to be compiled.
For the Project, ths CodeGen project is missing MachineRegisterInfo.cpp so when
llc links to codegen.lib, gets linker error about MachineRegisterInfo. Simply
including it into the project will do.

As for the files, the main problem is that Window's float.h defines a macro
named FLT_ROUNDS which conflicts with ISD:FLT_ROUNDS defined in
SelectionDagNodes.h there are many solutions to this but what I did is that I
undef'ed FLT_ROUNDS in the following files:

Another issue is the bison script (I'm not so sure about the flex script)
basically, the fallback method copies the pregenerated files to the wrong
directory instead to the target directory.

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