NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.16k stars 14.18k forks source link

opensubdiv doesn't compile #31426

Closed pmiddend closed 2 years ago

pmiddend commented 7 years ago

Issue description

opensubdiv-3.3.0 fails to compile. Relevant output:

[ 87%] Built target osd_gpu_obj
[ 89%] Building NVCC (Device) object opensubdiv/CMakeFiles/osd_dynamic_gpu.dir/osd/./osd_dynamic_gpu_generated_cudaKernel.cu.o
/nix/store/xd2mlzvlgmskbyyb33lz2vdq15k74xpr-glibc-2.26-75-dev/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/nix/store/xd2mlzvlgmskbyyb33lz2vdq15k74xpr-glibc-2.26-75-dev/include/bits/floatn.h(73): error: identifier "__float128" is undefined

2 errors detected in the compilation of "/tmp/nix-build-opensubdiv-3.3.0.drv-0/tmpxft_00007876_00000000-6_cudaKernel.cpp1.ii".
CMake Error at osd_dynamic_gpu_generated_cudaKernel.cu.o.cmake:264 (message):
  Error generating file
  /tmp/nix-build-opensubdiv-3.3.0.drv-0/source/build/opensubdiv/CMakeFiles/osd_dynamic_gpu.dir/osd/./osd_dynamic_gpu_generated_cudaKernel.cu.o

Steps to reproduce

build opensubdiv-3.3.0 from source.

Technical details

cillianderoiste commented 6 years ago

I can reproduce this error when cuda is enabled.

cillianderoiste commented 6 years ago

Related issue: caffe2/caffe2/issues/1194 It seems to be a problem with cuda 3.3.0 and glibc 2.26

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
SomeoneSerge commented 2 years ago

Evaluating nixpkgs-unstable with these arguments, opensubdiv build with cuda support, specifically with cuda 10.2: https://hercules-ci.com/accounts/github/SomeoneSerge/derivations/%2Fnix%2Fstore%2Fc6knggf4rffvm24vd6b1il2cm8l9azs2-opensubdiv-3.4.4.drv?via-job=5db289ae-240a-40c3-95c3-9eb0566ce090