I am trying to compile R 1.6.1 with gcc 3.2 on Solaris (Sun OS 5.8) and configure gives me: checking whether g77 and gcc agree on int and double... configure: WARNING: g77 and gcc disagree on int and double configure: error: Maybe change CFLAGS or FFLAGS? Complete output from configure is below. I am not setting CFLAGS or FFLAGS, but can someone suggest what I should set them to (or is this some other problem)? Also, the reason I am trying gcc 3.2 is to use -m64. Do I need to specify this explicitly or will configure choose that automatically? Thanks, Paul Gilbert _______ [21] /home/com1/gilp/toolchain/R/zot2 : cd R-1.6.1 [22] /home/com1/gilp/toolchain/R/zot2/R-1.6.1 : gcc --version gcc (GCC) 3.2 Copyright (C) 2002 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. [23] /home/com1/gilp/toolchain/R/zot2/R-1.6.1 : g77 --version GNU Fortran (GCC 3.2) 3.2 20020814 (release) Copyright (C) 2002 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING or type the command `info -f g77 Copying'. [24] /home/com1/gilp/toolchain/R/zot2/R-1.6.1 : ./configure checking for a BSD-compatible install... tools/install-sh -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal-1.4... missing checking for working autoconf... found checking for working automake-1.4... missing checking for working autoheader... found checking for working makeinfo... found checking build system type... sparc-sun-solaris2.8 checking host system type... sparc-sun-solaris2.8 loading site script ./config.site loading build specific script ./config.site checking for pwd... /usr/bin/pwd checking whether builddir is srcdir... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether ln -s works... yes checking for ranlib... ranlib checking for bison... no checking for byacc... no checking for ar... ar checking for javac... /usr/bin/javac checking for less... /usr/bin/less checking for perl... /home/mfa/gilp/bin/perl checking whether perl version is at least 5.005... yes checking for dvips... /apps/asd/unix/gnu/bin/dvips checking for tex... /apps/asd/unix/gnu/bin/tex checking for latex... /apps/asd/unix/gnu/bin/latex checking for makeindex... /home/mfa/gilp/SunOS-5.8/bin/makeindex checking for pdftex... /home/mfa/gilp/SunOS-5.8/bin/pdftex checking for pdflatex... /apps/asd/unix/gnu/bin/pdflatex checking for makeinfo... /apps/asd/unix/gnu/bin/makeinfo checking for unzip... /usr/bin/unzip checking for zip... /usr/bin/zip checking for gcc... gcc checking for C compiler default output... 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 ld used by GCC... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for /usr/ccs/bin/ld option to reload object files... -r checking for BSD-compatible nm... /home/mfa/gilp/SunOS-5.8/bin/nm -B checking how to recognise dependant libraries... pass_all checking command to parse /home/mfa/gilp/SunOS-5.8/bin/nm -B output... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... no 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... no checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ranlib... (cached) ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... solaris2.8 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool checking whether makeinfo version is at least 4... no configure: WARNING: you cannot build info versions of the R manuals checking for netscape... /apps/mfa/bin/netscape checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... none needed checking whether gcc needs -traditional... no checking how to run the C preprocessor... gcc -E checking for g77... g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether g77 accepts -g... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for main in -lm... yes checking for sin in -lm... yes checking for main in -lncurses... no checking for main in -ltermcap... yes checking for dlopen in -ldl... yes checking for rl_callback_read_char in -lreadline... no checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for sys/wait.h that is POSIX.1 compatible... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking dl.h usability... no checking dl.h presence... no checking for dl.h... no checking for dlfcn.h... (cached) yes checking elf.h usability... yes checking elf.h presence... yes checking for elf.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking floatingpoint.h usability... yes checking floatingpoint.h presence... yes checking for floatingpoint.h... yes checking fpu_control.h usability... no checking fpu_control.h presence... no checking for fpu_control.h... no checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking ieee754.h usability... no checking ieee754.h presence... no checking for ieee754.h... no checking ieeefp.h usability... yes checking ieeefp.h presence... yes checking for ieeefp.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking readline/history.h usability... no checking readline/history.h presence... no checking for readline/history.h... no checking readline/readline.h usability... no checking readline/readline.h presence... no checking for readline/readline.h... no checking for strings.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/stat.h... (cached) no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking for unistd.h... (cached) yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for string.h... (cached) yes checking whether setjmp.h is POSIX.1 compatible... yes checking for GNU C library with version >= 2... no checking return type of signal handlers... void checking for pid_t... yes checking for size_t... yes checking for blkcnt_t... yes checking for type of socket length... socklen_t * checking whether byte ordering is bigendian... yes checking for an ANSI C-conforming const... yes checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for long long... yes checking size of long long... 8 checking for long double... yes checking size of long double... 16 checking whether gcc accepts -M for generating dependencies... yes checking whether gcc supports -c -o FILE.lo... yes checking how to get verbose linking output from g77... -v checking for Fortran 77 libraries... -L/usr/ccs/lib -L/usr/lib -L/usr/local/lib -L/apps/asd/unix/gnu/gcc/3.2/SunOS5.8/lib/gcc-lib -L/apps/asd/unix/gnu/gcc/3.2/install/lib/gcc-lib/sparc-sun-solaris2.6/3.2 -L/usr/ccs/bin -L/apps/asd/unix/gnu/gcc/3.2/install/lib/gcc-lib/sparc-sun-solaris2.6/3.2/../../.. -ldl -ltermcap -lfrtbegin -lg2c -lm -lgcc_s checking for dummy main to link with Fortran 77 libraries... none checking for Fortran 77 name-mangling scheme... lower case, underscore, extra underscore checking whether g77 and gcc agree on int and double... configure: WARNING: g77 and gcc disagree on int and double configure: error: Maybe change CFLAGS or FFLAGS? [25] /home/com1/gilp/toolchain/R/zot2/R-1.6.1 :
On Mon, 16 Dec 2002, Paul Gilbert wrote:> I am trying to compile R 1.6.1 with gcc 3.2 on Solaris (Sun OS 5.8) and > configure gives me: > > checking whether g77 and gcc agree on int and double... configure: WARNING: g77 > and gcc disagree on int and double > configure: error: Maybe change CFLAGS or FFLAGS? > > Complete output from configure is below. I am not setting CFLAGS or FFLAGS, but > can someone suggest what I should set them to (or is this some other problem)?You need to make sure Fortran is working, and for g77 that needs /usr/local/lib in LD_LIBRARY_PATH.> Also, the reason I am trying gcc 3.2 is to use -m64. Do I need to specify this > explicitly or will configure choose that automatically?See R-admin.texi for how to do this ... (and for the above, at least in the current versions). -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595