I presume it would be more productive to work on gcc 6.1 support in Sage, 
rather than on building old gcc...
Did you try reporting the brial problem upstream?
https://github.com/BRiAl/BRiAl


On Tuesday, May 31, 2016 at 3:43:23 PM UTC+1, Johan S. R. Nielsen wrote:
>
> > indeed, just build with SAGE_INSTALL_GCC set, as described in 
> > 
> http://doc.sagemath.org/html/en/installation/source.html#environment-variables
>  
>
> <sigh> The shipped GCC doesn't seem to compile with GCC 6.1 </sigh> 
>
> That might be related to -std defaulting to "gnu++14" and not "gnu++98"; 
> I don't know. I tried figuring out how I could set the -std flag during 
> build, but that build system is completely opaque for me. 
>
> This is the last few lines spewed out by the failing compiler. Before 
> that a gazillion C++11 warnings were printed: 
>
> [install] [gcc-4.9.3.p1] In file included from ./tm.h:45:0, 
> [install] [gcc-4.9.3.p1] from ../../src/gcc/cp/except.c:27: 
> [install] [gcc-4.9.3.p1] ../../src/gcc/defaults.h:126:24: warning: invalid 
> suffix on literal; C++11 requires a space between literal and string macro 
> [-Wliteral-suffix] 
> [install] [gcc-4.9.3.p1] fprintf ((FILE), 
> ","HOST_WIDE_INT_PRINT_UNSIGNED",%un",                          ^ 
> [install] [gcc-4.9.3.p1] In file included from 
> ../../src/gcc/cp/except.c:1013:0: 
> [install] [gcc-4.9.3.p1] cfns.gperf: In function 'const char* 
> libc_name_p(const char*, unsigned int)': 
> [install] [gcc-4.9.3.p1] cfns.gperf:101:1: error: 'const char* 
> libc_name_p(const char*, unsigned int)' redeclared inline with 'gnu_inline' 
> attribute 
> [install] [gcc-4.9.3.p1] cfns.gperf:26:14: note: 'const char* 
> libc_name_p(const char*, unsigned int)' previously declared here 
> [install] [gcc-4.9.3.p1] cfns.gperf: At global scope: 
> [install] [gcc-4.9.3.p1] cfns.gperf:26:14: warning: inline function 'const 
> char* libc_name_p(const char*, unsigned int)' used but never defined 
> [install] [gcc-4.9.3.p1] Makefile:1058: recipe for target 'cp/except.o' 
> failed 
>
> Best, 
> Johan 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" 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-release.
For more options, visit https://groups.google.com/d/optout.

Reply via email to