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/
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 > >
Dirk Eddelbuettel
2007-Sep-14 15:57 UTC
[Rd] problems for ./configure on Ralpha: gcc related
Salut St?phane, On 14 September 2007 at 16:27, 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 Revision 2007-09-10 without a hitch and is in Debian unstable, see http://buildd.debian.org/build.php?pkg=r-base for the build logs (and my embarassing three revisions to get r-cran.mk [ for r-cran-* packages ] right). So if I were you I'd start with (assuming you point to Debian 'sid' aka unstable) # apt-get update # apt-get build-dep r-base to make sure you you have all required packages. You could also rebuild from my sources via # apt-get source r-base or simple install the three-day old binary. FWIW I also just rebuilt from these sources on Ubuntu Feisty at work (where you need to adjust debian/rules and debian/control as they do not have gcc/g++ 4.2 yet). Hope this helps, feel free to ask Debian questions on r-sig-debian. Cheers, Dirk -- Three out of two people have difficulties with fractions.
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 :<snipped>> checking for C compiler default output file name... configure: error: C > compiler cannot create executables > See `config.log' for more details.<snipped>> 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<snipped> The error message is as it says - crt1.o not found. It is located in /usr/lib/ or /usr/lib64 usually, and is part of the glibc-devel package on redhat or rpm based systems, and probably has a similiar name on Debian (although they have a funny way of mincing and separating packages into sub-packages unnecessarily, but I digress...). My suggestion would be to apt-get any debian packages which says glibc-*, particularly glibc-*-dev-* . HTL