[R-SIG-Mac] compilation error with R-2.4.0

David Ruau druau at ukaachen.de
Mon Oct 9 15:22:04 CEST 2006


Hi there,

Thanks Simon for the hint about -faltivec. It does the tric but I got  
stuck in another step.
The error imply Tcl/Tk.
I install it by all the way I know: darwinport, the Tcl/Tk package  
from the dmg available from CRAN but without success.
The PATH is correct.
tclConfig.sh is localised in /opt/local/lib and have those permission:
-rw-r--r--     2 root  admin        7K Oct  9 09:49 tclConfig.sh

Here is the error produce by ./configure
[...]
checking for tclConfig.sh... /opt/local/lib/tclConfig.sh
checking for tkConfig.sh... no
checking for tkConfig.sh in library (sub)directories... /usr/local/ 
lib/tkConfig.sh
checking /opt/local/include/tcl8.4/generic/tcl.h usability... no
checking /opt/local/include/tcl8.4/generic/tcl.h presence... no
checking for /opt/local/include/tcl8.4/generic/tcl.h... no
checking /opt/local/include/tcl8.4/tcl.h usability... no
checking /opt/local/include/tcl8.4/tcl.h presence... no
checking for /opt/local/include/tcl8.4/tcl.h... no
checking /opt/local/include/tcl.h usability... yes
checking /opt/local/include/tcl.h presence... yes
checking for /opt/local/include/tcl.h... yes
checking /usr/local/include/tk8.4/generic/tk.h usability... no
checking /usr/local/include/tk8.4/generic/tk.h presence... no
checking for /usr/local/include/tk8.4/generic/tk.h... no
checking /usr/local/include/tk8.4/tk.h usability... no
checking /usr/local/include/tk8.4/tk.h presence... no
checking for /usr/local/include/tk8.4/tk.h... no
checking /usr/local/include/tcl8.4/tk.h usability... no
checking /usr/local/include/tcl8.4/tk.h presence... no
checking for /usr/local/include/tcl8.4/tk.h... no
checking /usr/local/include/tk.h usability... no
checking /usr/local/include/tk.h presence... yes
configure: WARNING: /usr/local/include/tk.h: present but cannot be  
compiled
configure: WARNING: /usr/local/include/tk.h:     check for missing  
prerequisite headers?
configure: WARNING: /usr/local/include/tk.h: see the Autoconf  
documentation
configure: WARNING: /usr/local/include/tk.h:     section "Present But  
Cannot Be Compiled"
configure: WARNING: /usr/local/include/tk.h: proceeding with the  
preprocessor's result
configure: WARNING: /usr/local/include/tk.h: in the future, the  
compiler will take precedence
configure: WARNING:     ## ----------------------------------- ##
configure: WARNING:     ## Report this to r-bugs at R-project.org ##
configure: WARNING:     ## ----------------------------------- ##
checking for /usr/local/include/tk.h... yes
checking whether compiling/linking Tcl/Tk code works... no
[...]

Then after it goes all right until the end and then produce a error  
in the make step:

make[4]: `libintl.a' is up to date.
gcc -I. -I../../src/include -I../../src/include -I/usr/local/include - 
DHAVE_CONFIG_H   -fPIC  -O3 -faltivec -fgcse-sm -funroll-loops - 
fstrict-aliasing -fsched-interblock -falign-loops=16 -falign-jumps=16  
-falign-functions=16 -malign-natural -freorder-blocks -freorder- 
blocks-and-partition -mpowerpc-gfxopt -mpowerpc-gpopt -fstrict- 
aliasing -ftree-vectorize -mtune=G5 -mcpu=G5 -c cpoly.c -o cpoly.o
cpoly.c: In function 'fxshft':
cpoly.c:292: error: expected identifier or '(' before 'unsigned'
[...]
make[3]: *** [cpoly.o] Error 1
make[2]: *** [R] Error 2
make[1]: *** [R] Error 1
make: *** [R] Error 1

I try lot of things but I run out of idea.
Any idea would be really helpful...

David



More information about the R-SIG-Mac mailing list