[R] Redhat compilers and lme4 with R-2.4.0
Stefan Grosse
singularitaet at gmx.net
Thu Oct 19 11:08:50 CEST 2006
Prof Brian Ripley schrieb:
>
> Not surprising: you have not compiled R with -std=gnu99 to allow C99
> features, as recommended in the R-admin manual, and selected by
> default. (Comment to Doug Bates: it is probably better still to write
> in C90 if you can.)
>
> This seems to be a problem with the flags used to build the FC5 RPMs.
> I think you can circumvent it by adding
>
> PKG_CFLAGS=-std=gnu99
>
> to lme4/src/Makevars.
>
>
I am having the same problem on Fedora Core 5 with the 2.4.0 rpm from
CRAN. Update from lme4 0.9975-3 to lme4 0.9975-6 failed due to exactly
the same error message. I would have expected the cran rpm is compiled
according to the R-admin guide...?
message (the german version ;-) ):
* Installing *source* package 'lme4' ...
** libs
gcc -I/usr/lib/R/include -I/usr/lib/R/include -I/usr/local/include
-I"/usr/lib/R/library/Matrix/include" -fpic -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -c glmer.c -o glmer.o
In file included from lmer.h:4,
from glmer.h:4,
from glmer.c:1:
lme4_utils.h: In Funktion »internal_symmetrize«:
lme4_utils.h:82: Fehler: Anfangsdeklaration in »for«-Schleife außerhalb
C99-Modus verwendet
lme4_utils.h:83: Fehler: Anfangsdeklaration in »for«-Schleife außerhalb
C99-Modus verwendet
lme4_utils.h: In Funktion »internal_make_named«:
lme4_utils.h:105: Fehler: Anfangsdeklaration in »for«-Schleife außerhalb
C99-Modus verwendet
lme4_utils.h: In Funktion »internal_getElement«:
lme4_utils.h:124: Fehler: Anfangsdeklaration in »for«-Schleife außerhalb
C99-Modus verwendet
glmer.c: In Funktion »random_effects_deviance«:
glmer.c:433: Fehler: Anfangsdeklaration in »for«-Schleife außerhalb
C99-Modus verwendet
glmer.c: In Funktion »glmer_init«:
glmer.c:583: Fehler: Anfangsdeklaration in »for«-Schleife außerhalb
C99-Modus verwendet
make: *** [glmer.o] Fehler 1
ERROR: compilation failed for package 'lme4'
More information about the R-help
mailing list