[R-SIG-Mac] R 2.6 64-bit leopard build problem

Anand C. Patel acpatel at usa.net
Wed Oct 31 19:06:30 CET 2007


Dear all,

After much reading, frustration, and experimentation, I think I've nearly
gotten R 2.6 to compile in 64-bit mode for my Mac Pro.

It makes it through configure ok, which involved readline and libiconv
problems as well as some compiler choice issues.

R is now configured for x86_64-apple-darwin9.0.0

  Source directory:          .
  Installation directory:    /Library/Frameworks

  C compiler:                gcc -arch x86_64 -std=gnu99  -g -O3 -m64
-I/readline/include -L/readline/lib
  Fortran 77 compiler:       gfortran -arch x86_64  -g -O3 -m64
-I/readline/include -L/readline/lib

  C++ compiler:              g++ -arch x86_64  -g -O3 -m64 -I/readline/include
-L/readline/lib
  Fortran 90/95 compiler:    gfortran -arch x86_64 -g -O3 -m64
-I/readline/include -L/readline/lib
  Obj-C compiler:	     gcc -g -O2

  Interfaces supported:      X11, aqua, tcltk
  External libraries:        readline, BLAS(vecLib), LAPACK(in blas)
  Additional capabilities:   iconv, MBCS, NLS
  Options enabled:           framework, R profiling, Java

  Recommended packages:      yes

When it tries to build grDevices, it fails:
gcc -arch x86_64 -std=gnu99 -no-cpp-precomp -I../../../../include
-I../../../../include/x86_64 -I../../../include -I../../../../src/include
-DHAVE_CONFIG_H -I/sw/include -I/usr/local/include    -fPIC  -g -O3 -m64
-I/readline/include -L/readline/lib -c devQuartz.c -o devQuartz.o
devQuartz.c: In function ‘Quartz’:
devQuartz.c:491: warning: assignment discards qualifiers from pointer target
type
devQuartz.c:497: warning: assignment discards qualifiers from pointer target
type
devQuartz.c: In function ‘SetCGContext’:
devQuartz.c:685: warning: implicit declaration of function
‘CreateCGContextForPort’
devQuartz.c:685: warning: implicit declaration of function
‘GetWindowPort’
devQuartz.c:689: warning: implicit declaration of function
‘GetPortBounds’
devQuartz.c: In function ‘Quartz_Open’:
devQuartz.c:738: warning: implicit declaration of function
‘CreateNewWindow’
devQuartz.c:740: warning: implicit declaration of function
‘SetWindowBounds’
devQuartz.c:741: warning: implicit declaration of function
‘GetMainDevice’
devQuartz.c:741: error: invalid type argument of ‘unary *’
devQuartz.c:744: warning: implicit declaration of function
‘RepositionWindow’
devQuartz.c:745: warning: implicit declaration of function
‘GetWindowBounds’
devQuartz.c:782: warning: implicit declaration of function
‘CopyCStringToPascal’
devQuartz.c:783: warning: implicit declaration of function ‘SetWTitle’
devQuartz.c:785: warning: implicit declaration of function ‘ShowWindow’
devQuartz.c:787: warning: implicit declaration of function
‘GetWindowEventTarget’
devQuartz.c:787: warning: passing argument 1 of ‘InstallEventHandler’
makes pointer from integer without a cast
devQuartz.c: In function ‘Quartz_Close’:
devQuartz.c:807: warning: implicit declaration of function
‘DisposeWindow’
devQuartz.c: In function ‘Quartz_Activate’:
devQuartz.c:836: warning: implicit declaration of function
‘SetWindowProperty’
devQuartz.c: In function ‘Quartz_Size’:
devQuartz.c:864: warning: implicit declaration of function
‘GetWindowPortBounds’
devQuartz.c: In function ‘Quartz_TranslateFontFamily’:
devQuartz.c:1062: warning: initialization discards qualifiers from pointer
target type
devQuartz.c: In function ‘Quartz_SetFont’:
devQuartz.c:1096: warning: implicit declaration of function ‘GetPort’
devQuartz.c:1097: warning: implicit declaration of function
‘SetPortWindowPort’
devQuartz.c:1129: warning: implicit declaration of function ‘GetFNum’
devQuartz.c:1130: warning: implicit declaration of function ‘TextSize’
devQuartz.c:1131: warning: implicit declaration of function ‘TextFont’
devQuartz.c:1132: warning: implicit declaration of function ‘SetPort’
devQuartz.c: In function ‘Quartz_SetLineDash’:
devQuartz.c:1367: warning: passing argument 3 of ‘CGContextSetLineDash’
from incompatible pointer type
devQuartz.c: In function ‘Quartz_Locator’:
devQuartz.c:1518: warning: implicit declaration of function
‘SetThemeCursor’
devQuartz.c:1523: warning: implicit declaration of function
‘WaitNextEvent’
devQuartz.c:1528: warning: implicit declaration of function ‘FindWindow’
devQuartz.c:1531: warning: implicit declaration of function
‘GlobalToLocal’
devQuartz.c:1535: warning: implicit declaration of function ‘SysBeep’
devQuartz.c: In function ‘Quartz_MetricInfo’:
devQuartz.c:1616: warning: implicit declaration of function ‘FontMetrics’
devQuartz.c:1647: warning: implicit declaration of function
‘QDTextBounds’
devQuartz.c: In function ‘QuartzEventHandler’:
devQuartz.c:1675: warning: implicit declaration of function
‘GetWindowProperty’
make[5]: *** [devQuartz.o] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all] Error 1
make[2]: *** [R] Error 1
make[1]: *** [R] Error 1
make: *** [R] Error 1

Any ideas why this is happening?  Happy to post more information if I've left
something important out.

Thanks,
Anand C. Patel, MD
Washington University School of Medicine
acpatel at usa.net



More information about the R-SIG-Mac mailing list