[LLVMbugs] [Bug 18906] New: Clang 3.4 does not work at all on Windows.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 20 04:41:11 PST 2014


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

            Bug ID: 18906
           Summary: Clang 3.4 does not work at all on Windows.
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bkey76 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I downloaded and installed CLang 3.4 on Windows 7 x64. It does not seem to work
at all.

I am trying to compile the following simple C++ program.

#include <iostream>
int main()
{
  std::cout
    << "Hello World! It truly is a wonderful day to be alive!."
    << std::endl;
  return 0;
}


I have Visual Studio 2005, 2010, 2012, and 2013 installed on the same system.

When I run the command "clang++ hello.cpp" I get the following error.
  fatal error: 'iostream' file not found

I get this error regardless of whether or not I first open the "Developer
Command Prompt for VS2013."

When I run the command "clang-cl hello.cpp" I get the following errors.

"""
In file included from hello.cpp:1:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\iostream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\istream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\ostream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\ios:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xlocnum:10:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\streambuf:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xiosbase:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xlocale:8:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\stdexcept:7:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xstring:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xmemory0:9:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xutility:8:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\utility:8:
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(620,32) :  error: '_Ty' does not refer to a value
                : _Cat_base<_IS_CONSTRUCTIBLE(_Ty, _Args...)>
                                              ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(617,15) :  note: declared here
template<class _Ty,
               ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(621,1) :  error: expected class name
        {       // determine whether _Ty(_Args...) is constructible
        ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(746,19) :  error: '_Ty' does not refer to a value
                _IS_DESTRUCTIBLE(_Ty)
                                 ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(48,31) :  note: expanded from macro
'_IS_DESTRUCTIBLE'
        : _Cat_base<__is_destructible(_Ty)>
                                      ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(744,15) :  note: declared here
template<class _Ty>
               ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(747,1) :  error: expected class name
        {       // determine whether _Ty has a destructor
        ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(887,40) :  error: '_Ty' does not refer to a value
                : _Cat_base<_IS_NOTHROW_CONSTRUCTIBLE(_Ty, _Args...)>
                                                      ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(884,15) :  note: declared here
template<class _Ty,
               ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(888,1) :  error: expected class name
        {       // determine whether _Ty(_Args...) is nothrow constructible
        ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(951,25) :  error: '_To' does not refer to a value
                _IS_NOTHROW_ASSIGNABLE(_To, _From)
                                       ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(50,37) :  note: expanded from macro
'_IS_NOTHROW_ASSIGNABLE'
        : _Cat_base<__is_nothrow_assignable(_To, _From)>
                                            ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(947,15) :  note: declared here
template<class _To,
               ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(953,1) :  error: expected class name
        {       // determine whether _From can be assigned to _To, nothrow
        ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(1000,27) :  error: '_Ty' does not refer to a value
                _IS_NOTHROW_DESTRUCTIBLE(_Ty)
                                         ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(52,39) :  note: expanded from macro
'_IS_NOTHROW_DESTRUCTIBLE'
        : _Cat_base<__is_nothrow_destructible(_Ty)>
                                              ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(997,15) :  note: declared here
template<class _Ty>
               ^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(1002,1) :  error: expected class name
        {       // determine whether _Ty has a nothrow destructor
        ^
10 errors generated.
"""

I thought that this was possibly due to an incompatibility with the Visual
Studio 2013 headers. So I tried opening the "Developer Command Prompt for
VS2012."

clang++ yields the same results. However, clang-cl yields different results.

When I run the command "clang-cl hello.cpp" I get the following errors.

"""
error: cannot mangle RTTI descriptors for type 'failure' yet
error: cannot mangle the name of type 'failure' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'system_error' yet
error: cannot mangle the name of type 'system_error' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'runtime_error' yet
error: cannot mangle the name of type 'runtime_error' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'exception' yet
error: cannot mangle the name of type 'exception' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'failure' yet
error: cannot mangle the name of type 'failure' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'system_error' yet
error: cannot mangle the name of type 'system_error' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'runtime_error' yet
error: cannot mangle the name of type 'runtime_error' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'exception' yet
error: cannot mangle the name of type 'exception' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'failure' yet
error: cannot mangle the name of type 'failure' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'system_error' yet
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
"""

Does anyone have any suggestions?

-- 
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/20140220/04152484/attachment.html>


More information about the llvm-bugs mailing list