[R] R configure fails on solaris: configure:12951: error: cannot compute sizeof (int), 77

Vincent Carey 525-2265 stvjc at channing.harvard.edu
Thu Dec 5 01:17:03 CET 2002


i do not have access to the solaris machine on which
this error is occuring, the info is coming
to me via email.

any advice on how to get R 1.6.1 built in the face of

configure:12951: error: cannot compute sizeof (int), 77

would be appreciated.

here are some snippets from the config.log


  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = opus
uname -m = sun4u
uname -r = 5.8
uname -s = SunOS
uname -v = Generic_108528-12

/usr/bin/uname -p = sparc
/bin/uname -X     = System = SunOS
Node = opus
Release = 5.8
KernelID = Generic_108528-12
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1
/bin/arch              = sun4
/usr/bin/arch -k       = sun4u
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /bin
PATH: /usr/bin
PATH: /usr/dt/bin
PATH: /usr/openwin/bin
PATH: /usr/ccs/bin
PATH: /opt/sfw/bin
PATH: /usr/local/bin
PATH: /usr/bin/nsr
PATH: /usr/local/teTeX/bin/sparc-sun-solaris2.8
PATH: /usr/local/teTeX/bin
PATH: /usr/ucb
PATH: /usr/bin/nsr
PATH: .
PATH: /usr/sbin
PATH: /usr/bin

...

configure:3581: gcc -v </dev/null >&5
Reading specs from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs
gcc version 2.95.2 19991024 (release)
configure:3584: $? = 0
configure:3586: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:3589: $? = 1
configure:3615: checking for C compiler default output
configure:3618: gcc  -I/usr/local/include -L/usr/local/lib conftest.c  >&5
configure:3621: $? = 0
configure:3654: result: a.out
configure:3659: checking whether the C compiler works
configure:3665: ./a.out
configure:3668: $? = 0
configure:3683: result: yes
configure:3690: checking whether we are cross compiling
configure:3692: result: no
configure:3695: checking for suffix of executables

...

configure:9645: checking for g77
configure:9661: found /opt/sfw/bin/g77
configure:9671: result: g77
configure:9819: checking for Fortran 77 compiler version
configure:9822: g77 --version </dev/null >&5
GNU Fortran 0.5.25 19991024 (release)
Copyright (C) 1997 Free Software Foundation, Inc.
For more version information on components of the GNU Fortran
compilation system, especially useful when reporting bugs,
type the command `g77 --verbose'.

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'.
configure:9825: $? = 0
configure:9827: g77 -v </dev/null >&5
g77 version 2.95.2 19991024 (release) (from FSF-g77 version 0.5.25 19991024 (release))
Driving: g77 -v -c -xf77-version /dev/null -xnone
Reading specs from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95
-D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix)
-Asystem(svr4) -D_LANGUAGE_FORTRAN -traditional -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc)
/dev/null /dev/null
GNU CPP version 2.95.2 19991024 (release) (sparc)

...

int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (int))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (int))))
        exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (int))))
        exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
configure:12951: error: cannot compute sizeof (int), 77



---
Vince Carey, PhD
Ass't Prof Med (Biostatistics)
Harvard Medical School
Channing Laboratory - ph 6175252265 fa 6177311541
181 Longwood Ave Boston MA 02115 USA
stvjc at channing.harvard.edu




More information about the R-help mailing list