On 20 Feb, 12:38, zieglerk <konstantin.zieg...@gmail.com> wrote: > Hi, > > I am running OpenSUSE 11.1 and had problems with the last binaries (or > at least, that's what I am assuming for the moment), so I want to > build > sage from source. I checked all dependencies given on > > http://www.sagemath.org/doc/installation/source.html > > Still, ``make'' fails and the first warning -- along with the request > to > report it -- is given below. > > configure: WARNING: complex.h: present but cannot be compiled > configure: WARNING: complex.h: check for missing prerequisite > headers? > configure: WARNING: complex.h: see the Autoconf documentation > configure: WARNING: complex.h: section "Present But Cannot Be > Compiled" > configure: WARNING: complex.h: proceeding with the preprocessor's > result > configure: WARNING: complex.h: in the future, the compiler will take > precedence > configure: WARNING: ## ------------------------------------------ > ## > configure: WARNING: ## Report this to sage-devel@googlegroups.com > ## > configure: WARNING: ## ------------------------------------------ > ## > checking for complex.h... yes > checking whether we are using the GNU Fortran compiler... (cached) yes > checking whether gfortran accepts -g... (cached) yes > checking for Fortran flag needed to allow free-form source... -ffree- > form > configure: Your Fortran compiler accepts free-format source code > configure: which older F77 compilers do not. This does not 100% > configure: guarantee your compiler is suitable for building SAGE > configure: but it probably is. > configure: You are trying to use gcc but not g++ > configure: error: The mixing of GNU and non-GNU compilers is not > permitted > ERROR: You do not have all of the prerequisites needed to build Sage > from source. See the errors above.
Could you post more of the output from the 'prereq-0.7' script. You should get something like this. prereq-0.7/aclocal.m4 prereq-0.7/install-sh prereq-0.7/configure prereq-0.7/Makefile.in prereq-0.7/config.sub prereq-0.7/config.guess prereq-0.7/Makefile.am checking for a BSD-compatible install... ./install-sh -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C preprocessor... gcc -E checking for gfortran... gfortran checking whether we are using the GNU Fortran compiler... yes checking whether gfortran accepts -g... yes checking for flex... flex checking lex output file root... lex.yy checking lex library... none needed checking whether yytext is a pointer... no checking for bison... bison -y checking for ar... yes checking for m4... yes checking for ranlib... yes checking for ld... yes checking for strip... yes checking for bash... yes checking for latex... no configure: WARNING: You do not have 'latex', which is recommended, but not configure: WARNING: required. Latex is only really used for building pdf configure: WARNING: documents and for %latex mode in the Sage notebook. checking for perl... /usr/bin/perl checking for Perl version 5.8.0 or later... yes checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep checking for egrep... /usr/sfw/bin/ggrep -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking complex.h usability... yes checking complex.h presence... yes checking for complex.h... yes checking whether we are using the GNU Fortran compiler... (cached) yes checking whether gfortran accepts -g... (cached) yes checking for Fortran flag needed to allow free-form source... -ffree- form configure: Your Fortran compiler accepts free-format source code configure: which older F77 compilers do not. This does not 100% configure: guarantee your compiler is suitable for building SAGE configure: but it probably is. checking if gcc accepts -dumpversion option... yes checking gcc version... 4.4.3 checking if g++ accepts -dumpversion option... yes checking g++ version... 4.4.3 configure: Excellent, the C, C++ and Fortran compilers are all GCC 4.4.3 configure: Excellent, GCC 4.4.3 is later than the minimum configure: needed to build Sage, which is GCC version 4.0.1 checking for sqrtl in -lm... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands In particular, do you see: checking for g++... g++ checking whether we are using the GNU C++ compiler... yes I believe you have found a bug in the prereq script, as this is indicating you are mixing GNU and non-GNU compilers, which I doubt could happen on Suse. That test was put in place for systems like Solaris, HP-UX, AIX etc where compilers from Sun, HP or IBM may be present in addition to the GNU compilers. Dave -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org