Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-5141

cuda enabled packages fail to compile with sys-libs/glibc-2.26

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None

      https://devtalk.nvidia.com/default/topic/1023776/-request-add-nvcc-compatibility-with-glibc-2-26/
      reproducible by compiling eg. net-p2p/xmr-stak or app-crypt/johntheripper with the cuda use flag enabled.
      as a workaround i've applied this patch to glibc:

      --- ./sysdeps/x86/bits/floatn.h.old     2018-05-09 14:08:24.602609872 +0200
      +++ ./sysdeps/x86/bits/floatn.h 2018-05-09 14:11:50.465696809 +0200
      @@ -28,7 +28,7 @@
          support, for x86_64 and x86.  */
       #if (defined __x86_64__                                                        \
            ? __GNUC_PREREQ (4, 3)                                            \
      -     : (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4)))
      +     : (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4))) &&  !defined(__CUDACC__)
       # define __HAVE_FLOAT128 1
       #else
       # define __HAVE_FLOAT128 0
      

            oleg oleg
            skunk skunk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: