Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401407 - dev-util/nvidia-cuda-sdk-4.1 fails with "undefined reference to ... @GLIBCXX_3.4.14" (incl. tentative BUGFIX)
Summary: dev-util/nvidia-cuda-sdk-4.1 fails with "undefined reference to ... @GLIBCXX_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-01-29 20:21 UTC by Nicolas Pinto
Modified: 2012-02-07 02:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Pinto 2012-01-29 20:21:47 UTC
* Steps to reproduce:
$ ACCEPT_KEYWORDS='~amd64' emerge '=dev-util/nvidia-cuda-sdk-4.1'
It will fail with a bunch of "undefined reference to ... @GLIBCXX_3.4.14"

* Full output: http://pastebin.ca/2107534

* Possible fix: dev-util/nvidia-cuda-toolkit-4.1 could use "cudatoolkit_4.1.28_linux_64_ubuntu10.04.run" (file for Ubuntu 10.04)instead of "cudatoolkit_4.1.28_linux_64_ubuntu11.04.run" (file for Ubuntu 11.04).

The patched ebuild for this (dev-util/nvidia-cuda-sdk-4.1-r1) can be found here:
https://github.com/npinto/sekyfsr-gentoo-overlay/blob/master/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.1-r1.ebuild

The following works for me:
$ layman -a sekyfsr
$ layman -S && emerge --sync
$ ACCEPT_KEYWORDS='~amd64' emerge '=dev-util/nvidia-cuda-toolkit-4.1-r1' '=dev-util/nvidia-cuda-sdk-4.1'

HTH

Nicolas
Comment 1 yury fedorchenko 2012-02-02 07:50:48 UTC
no problem with gcc-4.5.3-r1

nvidia-cuda-sdk needs check >=gcc-4.5

use gcc-config to switch to gcc-4.5
Comment 2 Nicolas Pinto 2012-02-02 15:50:48 UTC
(In reply to comment #1)
> nvidia-cuda-sdk needs check >=gcc-4.5
> use gcc-config to switch to gcc-4.5

Thanks. I updated the nvidia-cuda-sdk accordingly:
https://github.com/npinto/sekyfsr-gentoo-overlay/commit/0f8f3b617998b58f7b922487a49a8d795cbd1dff#diff-1
Comment 3 Michal Januszewski (RETIRED) gentoo-dev 2012-02-05 16:43:12 UTC
Thanks for the bug report and the proposed fix.  I added the gcc version check to the sdk ebuild and the gcc dependency directly to nvidia-cuda-toolkit, as it looks like it's cudaart.so that needs it.
Comment 4 Nicolas Pinto 2012-02-07 02:40:36 UTC
Thanks!

BTW,
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.1.ebuild?revision=1.3&view=markup
at line 35 says ">=sys-devel/gcc-4.4" where it should say ">=sys-devel/gcc-4.5"