Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639548 - dev-util/nvidia-cuda-sdk-9.0.176 - /usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"
Summary: dev-util/nvidia-cuda-sdk-9.0.176 - /usr/include/bits/floatn.h(61): error: inv...
Status: RESOLVED DUPLICATE of bug 638230
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-03 00:42 UTC by younky.yang
Modified: 2017-12-11 13:16 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build error (nvidia-cuda-sdk-build-error.txt,51.46 KB, text/plain)
2017-12-03 00:42 UTC, younky.yang
Details
emerge info (emerge-info.txt,5.50 KB, text/plain)
2017-12-03 00:42 UTC, younky.yang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description younky.yang 2017-12-03 00:42:15 UTC
Created attachment 507796 [details]
build error

after changing the system profile to 17.0/systemd, nvidia-cuda-sdk-9.0.176 couldn't be build successfully, though I have successfully installed it before the profile change. 

The error is attached. 
#$ 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_0001f50c_00000000-2_simpleIPC.fatbin.c" -tused -nvvmir-library "/opt/cuda/bin/../nvvm/libdevice/libdevice.10.bc" --gen_module_id_file --module_id_file_name "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f50c_00000000-3_simpleIPC.module_id" --orig_src_file_name "simpleIPC.cu" --gen_c_file_name "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f50c_00000000-5_simpleIPC.compute_70.cudafe1.c" --stub_file_name "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f50c_00000000-5_simpleIPC.compute_70.cudafe1.stub.c" --gen_device_file_name "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f50c_00000000-5_simpleIPC.compute_70.cudafe1.gpu"  "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f50c_00000000-12_simpleIPC.compute_70.cpp1.ii" -o "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f50c_00000000-5_simpleIPC.compute_70.ptx"
#$ 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_0001f593_00000000-2_template.fatbin.c" -tused -nvvmir-library "/opt/cuda/bin/../nvvm/libdevice/libdevice.10.bc" --gen_module_id_file --module_id_file_name "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f593_00000000-3_template.module_id" --orig_src_file_name "template.cu" --gen_c_file_name "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f593_00000000-5_template.compute_70.cudafe1.c" --stub_file_name "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f593_00000000-5_template.compute_70.cudafe1.stub.c" --gen_device_file_name "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f593_00000000-5_template.compute_70.cudafe1.gpu"  "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f593_00000000-12_template.compute_70.cpp1.ii" -o "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f593_00000000-5_template.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

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

2 errors detected in the compilation of "/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/temp/tmpxft_0001f535_00000000-6_vectorAdd_kernel.cpp1.ii".
/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(61): error: invalid argument to attribute "__mode__"

/usr/include/bits/floatn.h(73): error: identifier "__float128" is undefined

make[1]: Entering directory '/home/portage/portage/dev-util/nvidia-cuda-sdk-9.0.176/work/samples/0_Simple/cudaOpenMP'
# --error 0x1 --
Comment 1 younky.yang 2017-12-03 00:42:37 UTC
Created attachment 507798 [details]
emerge info
Comment 2 Illia Maslov 2017-12-04 17:43:39 UTC
I confirm this bug. This bug is probably caused by either sys-libs/glibc-2.26-r3 or Gentoo profile version 17 (default/linux/amd64/17.0/systemd).
Comment 3 Illia Maslov 2017-12-04 17:50:40 UTC
And I faced the same issue when emerging dev-lang/gnat-gpl on Gentoo profile 17.

dev-lang/gnat-gpl-2017
dev-util/nvidia-cuda-sdk-9.0.176
Comment 4 Vladimir Frolov 2017-12-05 13:33:28 UTC
Probably similar bug:

https://bugs.gentoo.org/639808
Comment 5 Anton Vereshchagin 2017-12-06 13:56:31 UTC
Same here. Failed to compile dev-util/nvidia-cuda-toolkit-9.0.176. On the internet it is said that it is due to incompatibility with glibc-2.26.

My profile is  default/linux/amd64/13.0/desktop/plasma
Comment 6 Anton Vereshchagin 2017-12-07 04:51:48 UTC
This hack works for me with glibc-2.26 and gcc-6.3.0

https://devtalk.nvidia.com/default/topic/1023776/cuda-programming-and-performance/-request-add-nvcc-compatibility-with-glibc-2-26/post/5210367/#5210367


But it seems to me not the best way to make thing up ...
Comment 7 Illia Sechin 2017-12-08 11:44:00 UTC
I confirm this bug. Seems to be blocker for me.
Comment 8 Ivan Dynin 2017-12-10 21:03:23 UTC
The fix seems to be not available yet:

https://devtalk.nvidia.com/default/topic/1023776/cuda-programming-and-performance/-request-add-nvcc-compatibility-with-glibc-2-26/2

See the latest post.
Comment 9 blopsalot 2017-12-11 00:46:07 UTC
this is a duplicate of 638230.
Comment 10 Justin Bronder (RETIRED) gentoo-dev 2017-12-11 13:16:38 UTC

*** This bug has been marked as a duplicate of bug 638230 ***