Hi, not sure it will satisfy your needs, but you can export SAGE_INSTALL_GCC='yes' before building so that everything within Sage is compiled with Sage's gcc, which is at version 5.4.0.
Also, it is possible to export the variables CC, CPP, CXX variables to point to the compilers you want, but it seems not to be supported by every package, see the huge list in http://doc.sagemath.org/html/en/installation/source.html#environment-variables Ciao, Thierry On Wed, Jun 21, 2017 at 10:20:19AM +0200, Vincent Delecroix wrote: > Dear all, > > I have gcc 7.1 as default on my machine and I just reinstalled gcc 6.3.1 > as an alternative compiler. I want to keep my gcc 7.1 Sage version but > would like a second one compiled with gcc 6.3.1 in order to build > polymake (see [1]). What are the possible ways to proceed (ie to compile > Sage with "/usr/bin/gcc-6" and not "/usr/bin/gcc" and the same when > installing packages like polymake)? > > Thanks > Vincent > > [1] https://trac.sagemath.org/ticket/23289 > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
