Created attachment 513686 [details] complete build log #$ cicc --c++14 --gnu_version=60400 --allow_managed -arch compute_70 -m64 -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name "tmpxft_000028d9_00000000-2_simpleIPC.fatbin.c" -tused -nvvmir-library "/opt/cuda/bin/../nvvm/libdevice/libdevice.10.bc" --gen_module_id_file --module_id_file_name "/var/tmp/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_000028d9_00000000-3_simpleIPC.module_id" --orig_src_file_name "simpleIPC.cu" --gen_c_file_name "/var/tmp/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_000028d9_00000000-5_simpleIPC.compute_70.cudafe1.c" --stub_file_name "/var/tmp/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_000028d9_00000000-5_simpleIPC.compute_70.cudafe1.stub.c" --gen_device_file_name "/var/tmp/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_000028d9_00000000-5_simpleIPC.compute_70.cudafe1.gpu" "/var/tmp/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_000028d9_00000000-12_simpleIPC.compute_70.cpp1.ii" -o "/var/tmp/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_000028d9_00000000-5_simpleIPC.compute_70.ptx" /usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__" /usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined
Created attachment 513688 [details] output of `emerge --info '=dev-util/nvidia-cuda-sdk-9.0.176::gentoo'`
Created attachment 513690 [details] output of `emerge -pqv '=dev-util/nvidia-cuda-sdk-9.0.176::gentoo'`
I found a possible solution is in the following post: https://github.com/caffe2/caffe2/issues/1194#issuecomment-330668216 I already try to apply patch to ebuild using /etc/portage/patches but it didn't work because, when it tries to apply, file floatn.h is not present.
*** This bug has been marked as a duplicate of bug 638230 ***