[Rd] Building R 2.4.1 on IRIX

From: Atro Tossavainen <atossava_at_cc.helsinki.fi>
Date: Thu 18 Jan 2007 - 09:48:42 GMT


I've got the latest MIPS compilers that are C99 aware (7.4.4).

"configure" finishes with:

R is now configured for mips-sgi-irix6.5

  Source directory: .
  Installation directory: /afs/bi/v/@sys/apps/stats/R/2.4.1

  C compiler:                cc -c99 -OPT:IEEE_NaN_inf=ON -g
  Fortran 77 compiler:       f77 -OPT:IEEE_NaN_inf=ON -g

  C++ compiler:              CC -OPT:IEEE_NaN_inf=ON -g
  Fortran 90/95 compiler: f90 -g
  Interfaces supported:      X11
  External libraries:        readline 
  Additional capabilities:   PNG, JPEG, NLS
  Options enabled:           shared BLAS, R profiling

  Recommended packages:      yes

Building R 2.4.1, I stumble across the following error in src/main/complex.c:

cc -c99 -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/pcre -I. -I../../src/include -I../../src/include -I/afs/bi/p/include -DHAVE_CONFIG_H -OPT:IEEE_NaN_inf=ON -g -c complex.c -o complex.o

cc-1143 cc: ERROR File = /usr/include/complex.h, Line = 176   Declaration is incompatible with "double cabs(struct __cabs_s)" (declared at

          line 667 of "/usr/include/math.h").

  static inline double cabs       (double complex z)      {return __c99_cabs(z); }

cc-1143 cc: ERROR File = /usr/include/complex.h, Line = 178   Declaration is incompatible with "long double cabsl(struct __cabsl_s)"

          (declared at line 528 of "/usr/include/math.h").

  static inline long double cabsl (long double complex z) {return __c99_cabsl(z);}


2 errors detected in the compilation of "complex.c". gmake[3]: *** [complex.o] Error 2

All ideas for fixing this would be welcome. I'm not subscribed to the mailing list, so personal copies would be appreciated, but I will be monitoring the web archives of the list to catch responses posted to the list only.


Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS

R-devel@r-project.org mailing list
Received on Fri Jan 19 01:12:19 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 18 Jan 2007 - 17:31:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.