I've found several bug reports and am sure that the problem stems from 
clang-3.8 being built with libstdc++-7-dev and not properly supporting 
__float128
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678033

Google patched gcc by hiding _GLIBCXX_USE_FLOAT128 from clang:
https://gcc.gnu.org/ml/gcc-patches/2012-05/msg00672.html

There also seems to be a simple typedef workaround:
https://stackoverflow.com/questions/13525774/clang-and-float128-bug-error

I had to patch /usr/include/c++/7.2.0/bits/std_abs.h
in order to compile cupy from source with CUDA8.
#if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_FLOAT128) && 
!defined(__CUDACC__)

** Bug watch added: Debian Bug tracker #678033
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678033

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1717257

Title:
  [bug / patch ]patch for glibc 2.26 to avoid errors in compiling with
  CUDA(NVCC)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1717257/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to