Why is sage trying to build gcc-5.4.0 when you have 7.2.1? Are you missing 
gfortran?
Building an older version of gcc with a newer one like this usually leads to 
trouble.

François

> On 19/11/2017, at 08:23, foolish...@gmail.com wrote:
> 
> 
> Hello All:
> 
> I have a fairly new laptop and am using OpenSuse Tumbleweed (bleeding edge 
> version) to get an appropriate kernel for device support reasons, gcc-5.4.0 
> failed to build, could a very new g++/gcc compiler be the cause?  In any 
> case, please find the indicted gcc-5.4.0.log attached.
> 
> ~/tools/sage-8.0> gcc --version
> gcc (SUSE Linux) 7.2.1 20171020 [gcc-7-branch revision 253932]
> Copyright (C) 2017 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> ~/tools/sage-8.0> g++ --version
> g++ (SUSE Linux) 7.2.1 20171020 [gcc-7-branch revision 253932]
> Copyright (C) 2017 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> When I tried to build my sage 8.0 on it and got the following message:
> 
> /home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0/gcc-build/./gcc/xgcc 
> -B/home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0/gcc-build/./gcc/ 
> -B/home/FoolishEwe/tools/x86_64-unknown-linux-gnu/bin/ 
> -B/home/FoolishEwe/tools/x86_64-unknown-linux-gnu/lib/ -isystem 
> /home/FoolishEwe/tools/x86_64-unknown-linux-gnu/include -isystem 
> /home/FoolishEwe/tools/x86_64-unknown-linux-gnu/sys-include    -g -O2 -O2  -g 
> -O2 -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual 
> -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  
> -isystem ./include   -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc 
> -fno-stack-protector   -fpic -mlong-double-80 -I. -I. -I../.././gcc 
> -I../../../src/libgcc -I../../../src/libgcc/. -I../../../src/libgcc/../gcc 
> -I../../../src/libgcc/../include -I../../../src/libgcc/config/libbid 
> -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS -o unwind-c.o -MT 
> unwind-c.o -MD -MP -MF unwind-c.dep -fexceptions -c 
> ../../../src/libgcc/unwind-c.c -fvisibility=hidden -DHIDE_EXPORTS
> In file included from ../../../src/libgcc/unwind-dw2.c:401:0:
> ./md-unwind-support.h: In function 'x86_64_fallback_frame_state':
> ./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete type 
> 'struct ucontext'
>        sc = (struct sigcontext *) (void *) &uc_->uc_mcontext;
>                                                ^
> /home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0/gcc-build/./gcc/xgcc 
> -B/home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0/gcc-build/./gcc/ 
> -B/home/FoolishEwe/tools/x86_64-unknown-linux-gnu/bin/ 
> -B/home/FoolishEwe/tools/x86_64-unknown-linux-gnu/lib/ -isystem 
> /home/FoolishEwe/tools/x86_64-unknown-linux-gnu/include -isystem 
> /home/FoolishEwe/tools/x86_64-unknown-linux-gnu/sys-include    -g -O2 -O2  -g 
> -O2 -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual 
> -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  
> -isystem ./include   -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc 
> -fno-stack-protector   -fpic -mlong-double-80 -I. -I. -I../.././gcc 
> -I../../../src/libgcc -I../../../src/libgcc/. -I../../../src/libgcc/../gcc 
> -I../../../src/libgcc/../include -I../../../src/libgcc/config/libbid 
> -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS -o emutls.o -MT emutls.o 
> -MD -MP -MF emutls.dep -fexceptions -c ../../../src/libgcc/emutls.c 
> -fvisibility=hidden -DHIDE_EXPORTS
> make[6]: *** [../../../src/libgcc/shared-object.mk:14: unwind-dw2.o] Error 1
> make[6]: *** Waiting for unfinished jobs....
> make[6]: Leaving directory 
> '/home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0/gcc-build/x86_64-unknown-linux-gnu/libgcc'
> make[5]: *** [Makefile:15842: all-stage1-target-libgcc] Error 2
> make[5]: Leaving directory 
> '/home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0/gcc-build'
> make[4]: *** [Makefile:19705: stage1-bubble] Error 2
> make[4]: Leaving directory 
> '/home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0/gcc-build'
> make[3]: *** [Makefile:902: all] Error 2
> make[3]: Leaving directory 
> '/home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0/gcc-build'
> 
> real    6m53.989s
> user    36m54.370s
> sys    3m22.096s
> ************************************************************************
> Error installing package gcc-5.4.0
> ************************************************************************
> Please email sage-devel (http://groups.google.com/group/sage-devel)
> explaining the problem and including the log file
>   /home/FoolishEwe/tools/sage-8.0/logs/pkgs/gcc-5.4.0.log
> Describe your computer, operating system, etc.
> If you want to try to fix the problem yourself, *don't* just cd to
> /home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0 and type 'make' or 
> whatever is appropriate.
> Instead, the following commands setup all environment variables
> correctly and load a subshell for you to debug the error:
>   (cd '/home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0' && 
> '/home/FoolishEwe/tools/sage-8.0/sage' --sh)
> When you are done debugging, you can type "exit" to leave the subshell.
> ************************************************************************
> Error building Sage.
> 
> The following package(s) may have failed to build (not necessarily
> during this run of 'make all'):
> 
> * package: gcc-5.4.0
>   log file: /home/FoolishEwe/tools/sage-8.0/logs/pkgs/gcc-5.4.0.log
>   build directory: /home/FoolishEwe/tools/var/tmp/sage/build/gcc-5.4.0
> 
> The build directory may contain configuration files and other potentially
> helpful information. WARNING: if you now run 'make' again, the build
> directory will, by default, be deleted. Set the environment variable
> SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
> 
> 
> Thanks for looking into this.
> 
> Bill
> -- 
> 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.
> <gcc-5.4.0.log>

-- 
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