[R-sig-ME] compilation errors on current (r-forge) lme4a

Douglas Bates bates at stat.wisc.edu
Tue Dec 8 19:55:13 CET 2009

Thanks for the heads up, Ben.  This is a classic error made by C
programmers writing C++; forgetting the semicolon after a class
declaration.  It is difficult to diagnose because the error isn't
detected until the next file so one always ends up looking in the
wrong place.  For example, the error is actually in merenv.hpp, not in
any of the files mentioned in the error report.

Fixed in SVN version 550.

Normally I would catch this before committing but we have a winter
storm warning here today with a severe blizzard on its way so I
committed before leaving for home to allow me to continue to work from

On Tue, Dec 8, 2009 at 12:17 PM, Ben Bolker <bolker at ufl.edu> wrote:
>  this is on Ubuntu 8.04 (I think: it's "Intrepid Ibex", I have trouble
> keeping track of the numbers):
> Linux bolker-lap2 2.6.27-16-generic #1 SMP Tue Dec 1 17:56:54 UTC 2009
> i686 GNU/Linux
> ben at bolker-lap2:~/lib/R/pkgs/lme4/pkg$ g++ --version
> g++ (Ubuntu 4.3.2-1ubuntu12) 4.3.2
>  I will work on tracking this down later, but wondered if anyone had
> run into/solved the same problem ...  I've never had trouble compiling
> these before, perhaps it's some new Ubuntu bug?
> ben at bolker-lap2:~/lib/R/pkgs/lme4/pkg$ sudo R CMD INSTALL lme4a
> * installing to library ‘/usr/local/lib/R/site-library’
> * installing *source* package ‘lme4a’ ...
> ** libs
> g++ -I/usr/share/R/include   -I"/usr/lib/R/library/Matrix/include"
> -fpic  -g -O2 -c ST.cpp -o ST.o
> gcc -std=gnu99 -I/usr/share/R/include
> -I"/usr/lib/R/library/Matrix/include"   -fpic  -g -O2 -c init.c -o init.o
> g++ -I/usr/share/R/include   -I"/usr/lib/R/library/Matrix/include"
> -fpic  -g -O2 -c lme4utils.cpp -o lme4utils.o
> gcc -std=gnu99 -I/usr/share/R/include
> -I"/usr/lib/R/library/Matrix/include"   -fpic  -g -O2 -c local_stubs.c
> -o local_stubs.o
> g++ -I/usr/share/R/include   -I"/usr/lib/R/library/Matrix/include"
> -fpic  -g -O2 -c mer.cpp -o mer.o
> g++ -I/usr/share/R/include   -I"/usr/lib/R/library/Matrix/include"
> -fpic  -g -O2 -c merenv.cpp -o merenv.o
> In file included from lme4utils.hpp:3,
>                 from merenv.cpp:3:
> /usr/include/c++/4.3/cstdarg:58: error: expected unqualified-id before
> ‘namespace’
> make: *** [merenv.o] Error 1
> ERROR: compilation failed for package ‘lme4a’
> * removing ‘/usr/local/lib/R/site-library/lme4a’
> --
> Ben Bolker
> Associate professor, Biology Dep't, Univ. of Florida
> bolker at ufl.edu / www.zoology.ufl.edu/bolker
> GPG key: www.zoology.ufl.edu/bolker/benbolker-publickey.asc
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models

More information about the R-sig-mixed-models mailing list