[LLVMbugs] [Bug 1723] New: Build problems on OpenBSD

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Oct 6 03:41:40 PDT 2007


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

           Summary: Build problems on OpenBSD
           Product: Build scripts
           Version: 2.1
          Platform: Other
        OS/Version: OpenBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: laurie at tratt.net
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1153)
 --> (http://llvm.org/bugs/attachment.cgi?id=1153)
Minimal build fixes for OpenBSD

LLVM 2.1 doesn't install out of the box on OpenBSD-currend amd64. The minimum
fixes needed to fix things for me are:

 1) include/llvm/Pass.h doesn't know about intptr_t. Quick hack: include
    stdint.h. There's probably a more idiomatic way of fixing this.

 2) include/llvm/ADT/DenseMap.h uses new style C++ casts which GCC 3.3.5
doesn't
    understand. Revert a previous patch which added these (nowhere else in the
    code base seems to have this problem).

 3) Makefile.rules tries to install files as root during the normal build
    process (i.e. before "make install"). This then causes an error for
    LLVMHello. I've hacked this so that in the offending rule, install is
    only called if the compiler target is itself install. I suspect this
    is not OpenBSD specific, and would affect anyone who compiles as a
    normal user, calling only "make install" as root.


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