From simon.urbanek at r-project.org  Fri Sep 14 17:33:57 2007
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Fri, 14 Sep 2007 11:33:57 -0400
Subject: [Rd] problems for ./configure on Ralpha: gcc related
In-Reply-To: <46EA9A65.4050105@biomserv.univ-lyon1.fr>
References: <46EA9A65.4050105@biomserv.univ-lyon1.fr>
Message-ID: <FE24A6F1-A4AF-41D6-91E9-704DF360D824@r-project.org>

St?phane,

the problem is that your compiler doesn't work (as the message  
clearly tells you). You must have working compiler (and other  
development tools) before you try compiling R.

I have no clue how you managed to get such a broken compiler, because  
Debian comes with a complete, working compiler suite ... you should  
fix your OS in the first place ...

BTW according to Google Ralpha is a "Russian American Space  
Cooperation", so I wonder how you got it on your computer in the  
first place ;)

Cheers,
Simon


On Sep 14, 2007, at 10:27 AM, St?phane Dray wrote:

> Dear all,
> I am trying to compile Ralpha on my computer (OS = Debian). SVN  
> Revision is:
>
> Revision: 42843
> Last Changed Date: 2007-09-14
>
> ./configure returns :
> ----------------------------------------------------
> stephane at pcdray:~/Rdev/R-alpha$ ./configure
> checking build system type... i686-pc-linux-gnulibc1
> checking host system type... i686-pc-linux-gnulibc1
> loading site script './config.site'
> loading build specific script './config.site'
> checking for pwd... /bin/pwd
> checking whether builddir is srcdir... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for gawk... gawk
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking whether ln -s works... yes
> checking for ranlib... ranlib
> checking for bison... bison -y
> checking for ar... ar
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for sed... /bin/sed
> checking for less... /usr/bin/less
> checking for perl... /usr/bin/perl
> checking whether perl version is at least 5.8.0... yes
> checking for dvips... /usr/bin/dvips
> checking for tex... /usr/bin/tex
> checking for latex... /usr/bin/latex
> checking for makeindex... /usr/bin/makeindex
> checking for pdftex... /usr/bin/pdftex
> checking for pdflatex... /usr/bin/pdflatex
> checking for makeinfo... /usr/bin/makeinfo
> checking whether makeinfo version is at least 4.7... yes
> checking for texi2dvi... /usr/bin/texi2dvi
> checking for unzip... /usr/bin/unzip
> checking for zip... /usr/bin/zip
> checking for gzip... /bin/gzip
> checking for firefox... /usr/bin/firefox
> using default browser ... /usr/bin/firefox
> checking for acroread... /usr/bin/acroread
> checking for gcc... gcc
> checking for C compiler default output file name... configure:  
> error: C
> compiler cannot create executables
> See `config.log' for more details.
> --------------------------------------------------------------------
> gcc  -v returns
> Using built-in specs.
> Target: i486-linux-gnu
> Configured with: ../src/configure -v
> --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
> --enable-shared --with-system-zlib --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix --enable-nls
> --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
> --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr
> --enable-targets=all --disable-werror --enable-checking=release
> --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
> Thread model: posix
> gcc version 4.2.1 (Debian 4.2.1-3)
>
> and in the config.log, I have:
> .....
> configure:4596: checking for gcc
> configure:4612: found /usr/bin/gcc
> configure:4623: result: gcc
> configure:4861: checking for C compiler version
> configure:4868: gcc --version >&5
> gcc (GCC) 4.2.1 (Debian 4.2.1-3)
> Copyright (C) 2007 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.
>
> configure:4871: $? = 0
> configure:4878: gcc -v >&5
> Using built-in specs.
> Target: i486-linux-gnu
> Configured with: ../src/configure -v
> --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
> --enable-shared --with-system-zlib --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix --enable-nls
> --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
> --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr
> --enable-targets=all --disable-werror --enable-checking=release
> --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
> Thread model: posix
> gcc version 4.2.1 (Debian 4.2.1-3)
> configure:4881: $? = 0
> configure:4888: gcc -V >&5
> gcc: '-V' option must have argument
> configure:4891: $? = 1
> configure:4914: checking for C compiler default output file name
> configure:4941: gcc  -I/usr/local/include -L/usr/local/lib  
> conftest.c  >&5
> /usr/bin/ld: crt1.o: No such file: No such file or directory
> collect2: ld returned 1 exit status
> configure:4944: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME "R"
> | #define PACKAGE_TARNAME "R"
> | #define PACKAGE_VERSION "2.6.0"
> | #define PACKAGE_STRING "R 2.6.0"
> | #define PACKAGE_BUGREPORT "r-bugs at R-project.org"
> | #define PACKAGE "R"
> | #define VERSION "2.6.0"
> | #define R_PLATFORM "i686-pc-linux-gnulibc1"
> | #define R_CPU "i686"
> | #define R_VENDOR "pc"
> | #define R_OS "linux-gnulibc1"
> | #define Unix 1
> | #define R_ARCH ""
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:4983: error: C compiler cannot create executables
> See `config.log' for more details.
> ...............
>
> I did not understand what is the problem. Any idea ?
>
> Thanks in advances,
>
> Sincerely.
>
>
> -- 
>
> St?phane DRAY (dray at biomserv.univ-lyon1.fr )
> Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - Lyon I
> 43, Bd du 11 Novembre 1918, 69622 Villeurbanne Cedex, France
> Tel: 33 4 72 43 27 57       Fax: 33 4 72 43 13 88
> http://biomserv.univ-lyon1.fr/~dray/
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



[Rd] problems for ./configure on Ralpha: gcc related
Simon Urbanek