[R] compiling error R-2.4.0

David Ruau druau at ukaachen.de
Tue Oct 10 11:27:19 CEST 2006


Hi there,

I am trying to install from the source R-2.4.0 on my mac (osx 10.4.8  
G5 DP)

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 CFLAGS='-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'  
FFLAGS='-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'
[...]
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-help mailing list