[LLVMbugs] [Bug 22424] New: Clang on 64-bit Windows defaults to trying to generate 32-bit code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jan 31 04:09:33 PST 2015


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

            Bug ID: 22424
           Summary: Clang on 64-bit Windows defaults to trying to generate
                    32-bit code
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: russell.wallace at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When you build Clang on 64-bit Windows using the 64-bit Microsoft C++ compiler,
the resulting version of Clang still defaults to generating 32-bit code,
leading to nonobvious link time error messages on a test compile of hello.c as
described in:

http://stackoverflow.com/questions/18452967/clang-microsoft-linker-and-standard-library

This can be worked around by supplying Clang with the -m64 command line option,
but the need for this isn't clear from the error message.

The preferred solution would be for the compiler to default to generating
64-bit code when on a 64-bit system or built with 64-bit Microsoft C++.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150131/cb4638d6/attachment.html>


More information about the llvm-bugs mailing list