LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2021, 11:51 AM   #1
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 106

Rep: Reputation: Disabled
gcc 10.3.0 breaks nvidia nccl


"The NVIDIA Collective Communication Library (NCCL) implements multi-GPU and multi-node communication primitives optimized for NVIDIA GPUs and Networking"

I filed an issue here:
https://github.com/NVIDIA/nccl/issues/494

Current workaround: download and downgrade to gcc-* 10.2.0:

Code:
#!/usr/bin/env bash

url='http://slackware.uk/cumulative/slackware64-current/slackware64/d'

files[0]='gcc-10.2.0-x86_64-3.txz'
files[1]='gcc-brig-10.2.0-x86_64-4.txz'
files[2]='gcc-g++-10.2.0-x86_64-3.txz'
files[3]='gcc-gdc-10.2.0-x86_64-4.txz'
files[4]='gcc-gfortran-10.2.0-x86_64-3.txz'
files[5]='gcc-gnat-10.2.0-x86_64-3.txz'
files[6]='gcc-go-10.2.0-x86_64-3.txz'
files[7]='gcc-objc-10.2.0-x86_64-3.txz'

for file in "${files[@]}"
do
   :
   wget "${url}/${file}"
done

If Nvidia doesn't get around to fixing the issue anytime soon, I may have to again resort to building and maintaining a set of custom gcc packages (gcc10.2-*) which I install to /opt/gnu/gcc and pass those paths to any tools that use nvidia stuff. Have previously had to do this for ex. to provide gcc8 to the nvidia stack when it took nvidia years to support gcc9.

Last edited by eduardr; 04-13-2021 at 11:55 AM. Reason: Typo
 
Old 04-13-2021, 12:12 PM   #2
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 106

Original Poster
Rep: Reputation: Disabled
Subject might be incorrect - should probably be 'nccl breaks gcc' . In which case I'll prob have to file a bug to the gcc project.
 
Old 04-25-2021, 09:47 AM   #3
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 106

Original Poster
Rep: Reputation: Disabled
Possibly relevant GCC issues:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100101
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240

Once the issue is fixed, hopefully there will be patches we can apply to GCC 10.3, because the GCC bug reports only mention changes being made to GCC 12 (-next I guess), and backported to GCC 11.

GCC bug reports that mention ICE > ICE = "internal compiler error"
 
Old 06-04-2021, 04:59 PM   #4
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 106

Original Poster
Rep: Reputation: Disabled
Talking Thanks to the GCC project for the fix

The GCC project has committed a patch:
https://gcc.gnu.org/git/gitweb.cgi?p...d61d1cbeb5898f
(committed June 4 as fix for the problem report https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102)

The patch removes ~ 40 lines from `gcc/cp/pt.c` and adds a couple of test cases.

Works fine for me - I tested as follows:
* Rebuilt (Slackware) gcc 10.3.0 packages with the patched `pt.c` & updated to the new pkgs
* Built Nvidia nccl-tests - build succeeded (was failing before the patch)
* Built latest pytorch git with Nvidia cuda/nccl support - build succeeded (was failing before the patch)
 
2 members found this post helpful.
Old 01-04-2022, 04:31 PM   #5
benkl
LQ Newbie
 
Registered: Jan 2022
Posts: 2

Rep: Reputation: 0
How to apply the patch?

Hi,

Thanks for the fix!
For those of us that do not have experience in applying a patch to GCC - can you please provide short instructions?

Thank you
 
Old 01-04-2022, 05:33 PM   #6
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 106

Original Poster
Rep: Reputation: Disabled
@benkl no longer necessary, fix included in
"Fixed for GCC 10.4, 11.2 and 12."
 
Old 01-04-2022, 11:39 PM   #7
benkl
LQ Newbie
 
Registered: Jan 2022
Posts: 2

Rep: Reputation: 0
How can I get gcc 10.4 on ubuntu?

How can I get gcc 10.4 on ubuntu?

Thanks
 
Old 01-05-2022, 12:19 AM   #8
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
What about asking in a Ubuntu forum ?
I guess it would be something to search and as easy as adding the right ppa.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force breaks to avoid eye strain (typing breaks) upnort Slackware 12 09-19-2019 03:43 PM
Upgrading Multilib GCC/GLIBC breaks GCC. DruidPeter Slackware 5 06-27-2016 06:00 PM
aptitude -f install Fails as "gcc-4.9-base" breaks "gcc-4.4-base" isaacarsenal Debian 2 07-04-2015 12:32 AM
LXer: GCC 4.9 vs. GCC 5.1 vs. GCC 6.0 SVN Compiler Benchmarks LXer Syndicated Linux News 0 06-08-2015 01:00 PM
[SOLVED] SEGMENTATION FAULT using gcc 4.4.4 -O2 , works with gcc 4.1.0 -O2 or gcc 4.4.4 -O1 amir1981 Programming 36 07-26-2010 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration