[LLVMbugs] [Bug 17773] New: Failure compiling Boost type_traits with Boost build

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 1 12:46:53 PDT 2013


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

            Bug ID: 17773
           Summary: Failure compiling Boost type_traits with Boost build
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eldlistmailingz at tropicsoft.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

If I compile Boost type_traits with the latest clang for Windows using the VC++
RTL and headers I receive the error message:

--------------------------------------------------------------------------------

add_const_test.cpp"
-Fo"..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj"
   -TP /Od /Ob0 /W4 /GR /MDd  /Zc:forScope /Zc:wchar_t -fmsc-version=1600
/wd4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
"-I..\..\.."
compile-c-c++
..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj

    call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >
nul

"C:\Programming\VersionControl\clang_build\bin\Release\clang-cl.exe"
@"..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj.rsp"

clang-cl.exe: warning: argument unused during compilation: '/EHs'
error: cannot mangle RTTI descriptors for type 'codecvt' yet
error: cannot mangle the name of type 'codecvt' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'codecvt_base' yet
error: cannot mangle the name of type 'codecvt_base' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'facet' yet
error: cannot mangle the name of type 'facet' into RTTI descriptors yet
6 errors generated."

--------------------------------------------------------------------------------

If I add '-D_HAS_EXCEPTIONS=0 /GR-' as recommended I then get, when including
'typeinfo':

--------------------------------------------------------------------------------

""add_const_test.cpp"
-Fo"..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj"
   -TP /Od /Ob0 /W4 /GR /MDd  /Zc:forScope /Zc:wchar_t -fmsc-version=1600
/wd4675 /EHs -D_HAS_EXCEPTIONS=0 /EH- /GR- -c
-DBOOST_ALL_NO_LIB=1
"-I..\..\.."
compile-c-c++
..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj

    call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >
nul

"C:\Programming\VersionControl\clang_build\bin\Release\clang-cl.exe"
@"..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-vc10-win-3.4\debug\add_const_test.obj.rsp"

clang-cl.exe: warning: argument unused during compilation: '/EHs'
clang-cl.exe: warning: argument unused during compilation: '/EH-'
In file included from add_const_test.cpp:7:
In file included from ./test.hpp:10:
In file included from ..\..\..\boost/config.hpp:44:
In file included from ..\..\..\boost/config/stdlib/dinkumware.hpp:89:
c:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\typeinfo(156,10) : 
error: unknown class name 'exception'; did you mean '_exception'?
        : public exception" 

--------------------------------------------------------------------------------

In effect trying to turn off RTTI and exceptions gives me an error just trying
to include typeinfo. So clang needs to be able to compile using VC++ RTL with
typeinfo support and exception support else it is unusable in Boost.

-- 
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/20131101/6149489f/attachment.html>


More information about the llvm-bugs mailing list