[Boost-bugs] [Boost C++ Libraries] #11833: Boost usage of __int128 when compiled with clang-cl

Subject: [Boost-bugs] [Boost C++ Libraries] #11833: Boost usage of __int128 when compiled with clang-cl
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-07 21:55:48


#11833: Boost usage of __int128 when compiled with clang-cl
-----------------------------------------+-------------------------
 Reporter: Yaron Keren <yaron.keren@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
-----------------------------------------+-------------------------
 Boost compiled with clang-cl targetting MSVC toolchain should not probably
 use __int128 as the support functions __umodti3 and friends, usually
 available from libgcc are not available from the MSVC libs leading to
 error LNK2019: unresolved external symbol __umodti3.

 This may be solved either by using compiler-rt along with the MSVC libs or
 by not defining BOOST_HAS_INT128 in clang.hpp:

 #if defined(__SIZEOF_INT128__) && !defined(__CUDACC__) &&
 !defined(_MSC_VER)
 # define BOOST_HAS_INT128
 #endif

 I'm not sure which is the right way to go here, but this should be at
 least be documented.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11833>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC