[llvm-bugs] [Bug 40879] New: __float_128 clang-cl on Windows 10 x64 using Mingw64 / GCC 8.1 to enable 128-bit float Boost.Multiprecision and Boost.Math fails to compile.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 27 02:19:36 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40879

            Bug ID: 40879
           Summary: __float_128 clang-cl on Windows 10 x64 using Mingw64 /
                    GCC 8.1 to enable 128-bit float Boost.Multiprecision
                    and Boost.Math fails to compile.
           Product: new-bugs
           Version: 8.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: paul at pbristow.uk
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

__float_128 clang-cl on Windows 10 x64 using Mingw64 / GCC 8.1 to enable
128-bit float Boost.Multiprecision and Boost.Math fails to compile.

I have Clang-cl (8.0.0) working on Windows 10 64-bit to run current develop
Boost.Math and boost.Multiprecision tests and examples using MSVC 15.9.7
(without float128) and Mingw64 GCC 8.1.0 (including 128-bit using quadmath.h
from Mingw64 GCC), but when I try to enable Clang to similarly use quadmath.h
(using the header and library libquadmath.dll from Mingw64 install via an
include, or even copying the file into the Clang include folder), it fails to
compile thus

C:\LLVM\clang-800\LLVM\lib\clang\8.0.0\include\quadmath.h

In file included from hello_boost_float128.cpp:10:
In file included from ..\..\..\boost/multiprecision/float128.hpp:47:
C:\LLVM\clang-800\LLVM\lib\clang\8.0.0\include\quadmath.h(33):  error:
unsupported machine mode 'TC'
C:\LLVM\clang-800\LLVM\lib\clang\8.0.0\include\quadmath.h(47):  error:
__float128 is not supported on this target

error: unsupported machine mode 'TC' is said to refer to complex__float128
which is not something that I am explicitly using (but might be in the
Boost.Multiprecision internals).

  error: __float128 is not supported on this target

is quite explicit, but it would be very useful if this could be supported.

-- 
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/20190227/b9226157/attachment.html>


More information about the llvm-bugs mailing list