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

Simon Urbanek simon.urbanek at r-project.org
Thu Nov 1 17:06:29 CET 2007


Anand,


On Oct 31, 2007, at 2:12 PM, Anand C. Patel wrote:

> First, my apologies if I've double posted.
>
> I'm having difficulty getting R 2.6 patched to build under Leopard  
> as a 64-bit application.
>

You have to get R-devel to get 64-bit Quartz support (which is what  
fails for you down there). Old Quartz device was Carbon-based and  
Carbon was removed in Leopard (for 64-bit). The new Quartz from R- 
devel is Cocoa-based.


> Configure works -- after many follies involving readline, libiconv,  
> compilers, etc.
>

Um - what exactly? It should be really straight-forward if you use - 
arch x86_64 ... Readline is the only optional thing and you can use  
our binary as it contains all four architectures (yes even R 2.5 had  
quad-arch readline ;)).

Cheers,
Simon



> 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
>
> However, when it reaches grDevices in the make, it dies:
> 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
>
> Anyone know why this is happening?  Happy to post more info if it'll  
> help.
>
> Thanks,
> Anand C. Patel, MD
> Washington University School of Medicine
> acpatel at usa.net
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list