Bug 1530828
Summary: | Cuda 9 fails to compile when using boost | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sean Happel <sean.happel> | ||||||
Component: | boost | Assignee: | Jonathan Wakely <jwakely> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 27 | CC: | dakingun, denis.arnaud_fedora, jwakely, me | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | boost-1.64.0-6.fc27 boost-1.63.0-12.fc26 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2018-04-27 01:19:44 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Sean Happel
2018-01-03 23:06:41 UTC
Created attachment 1376625 [details]
Example test code (fails to compile without patch)
I can't use Cuda 9.0 on F27 anyway, as it doesn't work with GCC 7. Where does the /usr/local/cuda-gcc-6/bin/compat-gcc65a-g++ compiler come from? There are various places you can download or compile GCC 6 to get it working with Cuda 9.0. Below are the instructions I used to build it. # Installing GCC 6.x Gcc 6.4 has a bug that prevents it from compiling with glibc-2.26. A patch has been applied to the upstream gcc-6 branch, but has not made its way into an official release yet (next release will be 6.5). So for now, we need to download the "trunk" for gcc 6, and compile that. * sudo dnf install flex texinfo gmp-devel mpfr-devel libmpc-devel #Needed to compile GCC. Flex is only needed when downloading from svn/git instead of an official source * git clone https://github.com/gcc-mirror/gcc.git * cd gcc * git checkout gcc-6-branch * ./configure --prefix=/usr/local/cuda-gcc-6 --program-prefix=compat-gcc65a- --disable-multilib * make -j 8 * sudo make install * sudo dnf remove flex texinfo gmp-devel mpfr-devel libmpc-devel #Remove compile-time dependencies * cd .. * rm -r gcc #Cleanup our build! Note that the new GCC version (including libraries, includes, etc) will be installed in /usr/local/cuda-gcc, where it shouldn't interfere with any other toolchains you might have, and will be easy to cleanup once NVidia releases a compatible version of CUDA. Oh I see, so I can just point it at my existing gcc-6 builds, I assumed it was part of your Cuda installation. Let me try to reproduce this again then ... boost-1.64.0-6.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-97c275d576 boost-1.63.0-12.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b73bfea3af boost-1.63.0-12.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b73bfea3af boost-1.64.0-6.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-97c275d576 boost-1.64.0-6.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. boost-1.63.0-12.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. |