LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-27-2019, 04:37 AM   #1
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
Suitesparse /Cuda SBo, complains about too advanced GCC, although being built with GCC 5 from the same SBo.


Hello, everyone.

I'm trying to build suitesparse from SBo.
I am using the latest -current with a handful of packages, including gcc-5, cuda and nvidia-legacy390

I tried sourcing /etc/profile.d/gcc5.sh in the shell, and in the slackbuild itself, but to no availd. The build script still complains about being run with a wrong GCC:

Code:
gcc-5    -O3 -fexceptions -fPIC -fopenmp -DGPU_BLAS  -c -I../../AMD/Include -I../../AMD/Source -I../../COLAMD/Include -I/tmp/SBo/SuiteSparse/CCOLAMD/Include -I/tmp/SBo/SuiteSparse/CAMD/Include -I/tmp/SBo/SuiteSparse/metis-5.1.0/include -I../Include -I../../SuiteSparse_config -I/usr/share/cuda/include/ ../GPU/cholmod_gpu.c
/usr/share/cuda/bin/nvcc -I../../AMD/Include -I../../AMD/Source -I../../COLAMD/Include -I/tmp/SBo/SuiteSparse/CCOLAMD/Include -I/tmp/SBo/SuiteSparse/CAMD/Include -I/tmp/SBo/SuiteSparse/metis-5.1.0/include -I../Include -I../../SuiteSparse_config -I/usr/share/cuda/include/ -Xcompiler -fPIC -O3 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_60,code=compute_60 -c ../GPU/cholmod_gpu_kernels.cu
In file included from /usr/share/cuda/include/cuda_runtime.h:78,
                 from <command-line>:
/usr/share/cuda/include/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 5 are not supported!
 #error -- unsupported GNU version! gcc versions later than 5 are not supported!
  ^~~~~
make[3]: *** [Makefile:527: cholmod_gpu_kernels.o] Error 1
make[3]: Leaving directory '/tmp/SBo/SuiteSparse/CHOLMOD/Lib'
make[2]: *** [Makefile:31: library] Error 2
make[2]: Leaving directory '/tmp/SBo/SuiteSparse/CHOLMOD/Lib'
make[1]: *** [Makefile:14: all] Error 2
make[1]: Leaving directory '/tmp/SBo/SuiteSparse/CHOLMOD'
make: *** [Makefile:22: go] Error 2
Any tips?

Last edited by Lockywolf; 04-27-2019 at 04:42 AM.
 
Old 04-27-2019, 08:42 AM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Quote:
Originally Posted by Lockywolf View Post
Any tips?
Complain upstream.
 
1 members found this post helpful.
Old 04-27-2019, 10:26 AM   #3
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Original Poster
Rep: Reputation: 253Reputation: 253Reputation: 253
Quote:
Originally Posted by orbea View Post
Complain upstream.
Upstream wouldn't care, because CUDA 8 is already old.

I ended up just adding lines:

Code:
-ccbin $CC \
-gencode=arch=compute_20,code=sm_20 \
to SuiteSparse_config/SuiteSparse_config.mk

at the line 246, but I'm too ignorant to send a patch to SBo.
 
Old 04-28-2019, 08:18 AM   #4
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Quote:
Originally Posted by Lockywolf View Post
Upstream wouldn't care, because CUDA 8 is already old.
What is the issue with using newer supported versions then?

You can contact the SBo maintainer by the e-mail listed in the info file.
 
Old 04-28-2019, 08:44 AM   #5
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Original Poster
Rep: Reputation: 253Reputation: 253Reputation: 253
The issue is that my card, GF119, is not supported by CUDA9, moreover, CUDA8 is available at SBo.
 
Old 04-28-2019, 10:17 PM   #6
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Original Poster
Rep: Reputation: 253Reputation: 253Reputation: 253
Just in case. No guarantees, but I did manage to build the package.

https://gitlab.com/Lockywolf/lwfslac...er/suitesparse
 
  


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
LXer: My Nerd Life: Too Loud, Too Funny, Too Smart, Too Fat LXer Syndicated Linux News 0 01-24-2014 05:21 AM
[SOLVED] Unable to build SuiteSparse (from SBo) in multilib 64-current. hiptobecubic Slackware 4 07-31-2012 04:57 AM
Adapting slackbuild of SuiteSparse for Slackware 12.2 to conform to Slackware64 Alexvader Slackware 3 12-31-2009 01:22 PM
e17: EFL's are built/installed but e17-svn complains no liblua.so Sum1 Linux - Desktop 6 08-24-2009 06:29 PM
gcc complains about files names been the same as dirname nano2 Linux - Software 5 06-23-2008 04:32 AM

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

All times are GMT -5. The time now is 11:02 AM.

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