Building an old gcc with a newer gcc is not recommended.
Can you give us more details (logs) of the failure with ppl
instead?

François

> On 11/05/2017, at 13:44, Brent Thomas <brentthoma...@gmail.com> wrote:
> 
> I have been trying to install sage on a raspberry pi 3. I didn't find a 
> binary of any recent version, so I'm trying to build it from source. I've run 
> into an error with sage building gcc. The relevant part of the gcc-5.4.0.log 
> file is below.
> 
> g++   -g -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables 
> -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format 
> -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long 
> -Wno-variadi$
>         lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o 
> lto/lto-partition.o lto/lto-symtab.o libbackend.a main.o tree-browser.o 
> libcommon-target.a libcommon.a ../libcpp/libcpp.a 
> ../libdecnumber/libdecnumber.a  -L/home/pi/$
> collect2: error: ld returned 1 exit status
> ../../src/gcc/lto/Make-lang.in:71: recipe for target 'lto1' failed
> make[6]: *** [lto1] Error 1
> make[6]: Leaving directory 
> '/home/pi/Downloads/sage-7.6/local/var/tmp/sage/build/gcc-5.4.0/gcc-build/gcc'
> Makefile:4367: recipe for target 'all-stage1-gcc' failed
> make[5]: *** [all-stage1-gcc] Error 2
> make[5]: Leaving directory 
> '/home/pi/Downloads/sage-7.6/local/var/tmp/sage/build/gcc-5.4.0/gcc-build'
> Makefile:19008: recipe for target 'stage1-bubble' failed
> make[4]: *** [stage1-bubble] Error 2
> make[4]: Leaving directory 
> '/home/pi/Downloads/sage-7.6/local/var/tmp/sage/build/gcc-5.4.0/gcc-build'
> Makefile:899: recipe for target 'all' failed
> make[3]: *** [all] Error 2
> make[3]: Leaving directory 
> '/home/pi/Downloads/sage-7.6/local/var/tmp/sage/build/gcc-5.4.0/gcc-build'
> 
> real    64m56.236s
> user    53m1.490s
> sys     2m58.710s
> ************************************************************************
> Error installing package gcc-5.4.0
> ************************************************************************
> 
> I've tried setting SAGE_INSTALL_GCC to no and using the default compiler (gcc 
> 6.1.0) to build sage. Unfortunately, the ppl library fails to build when I do 
> this as it can't find an appropriate version of the gmp library. (As a side 
> note I can build ppl directly by setting the --with-gmp-prefix flag to the 
> appropriate directory, but I don't know how to set this flag when building 
> sage.)
> 
> Any advice on building sage on a raspberry pi would be welcome.
> 
> 
> -- 
> 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 sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> 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 sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to