Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31702 - [cuda-toolkit] C++ code doesn't compile

Attached to Project: Community Packages
Opened by Dmitriy M (foxcub) - Thursday, 27 September 2012, 02:11 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 27 September 2012, 20:12 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Running nvcc on C++ code gives errors akin to

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../include/c++/4.7.1/ext/atomicity.h(48): error: identifier "__atomic_fetch_add" is undefined

The problem seems to be with GCC 4.7. If one installs GCC 4.6, and symlinks its gcc and g++ into /opt/cuda-toolkit/bin, C++ code compiles fine.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Thursday, 27 September 2012, 20:12 GMT
Reason for closing:  Upstream
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 27 September 2012, 20:12 GMT
This is an upstream problem. The solution is easy to find using Google. You need to add 2 precompiler directives.

Loading...