You are here

Error message on Unix cluster with R 3.3.1

5 posts / 0 new
Last post
Tiphaine's picture
Offline
Joined: 08/02/2016 - 17:00
Error message on Unix cluster with R 3.3.1
AttachmentSize
Binary Data Bug_OpenMX_Unix.R6.28 KB

Hi,

I try to install OpenMx on a unix cluster different version of R 3.0 to 3.3 but I have a an error each time.

Can you help me ?

Regards,

tiphaine

tbates's picture
Offline
Joined: 07/31/2009 - 14:25
"-Wno-unused-local-typedefs" ba81quad.cpp:502: error

Just to make it a bit more searchable, this problem appears to be in the feller/C++ code below:

R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
> source('http://openmx.psyc.virginia.edu/getOpenMx.R')
-Wno-unused-parameter -Wvla -Wno-unused-local-typedefs -fpic -g -O2 -c ComputeSD.cpp -o ComputeSD.o
g++ -std=c++0x -I/apps/R/3.3.1/lib64/R/include -DNDEBUG -I/usr/local/include -I"/gpfs/apps/R/3.3.1/lib64/R/library/Rcpp/include" -I"/gpfs/apps/R/3.3.1/lib64/R/library/RcppEigen/include" -I"/gpfs/home/martint/R/x86_64-pc-linux-gnu-library/3.3/StanHeaders/include" -I"/gpfs/apps/R/3.3.1/lib64/R/library/BH/include" -I"/gpfs/home/martint/R/x86_64-pc-linux-gnu-library/3.3/rpf/include" -fopenmp -Wall -Wextra -Wno-unknown-pragmas -Wno-unused-parameter -Wvla -Wno-unused-local-typedefs -fpic -g -O2 -c FellnerFitFunction.cpp -o FellnerFitFunction.o
In file included from /gpfs/apps/R/3.3.1/lib64/R/library/Rcpp/include/Rcpp.h:84,
from RAMInternal.h:10,
from FellnerFitFunction.cpp:29:
/gpfs/apps/R/3.3.1/lib64/R/library/Rcpp/include/Rcpp/algorithm.h:153: warning: type qualifiers ignored on function return type
/gpfs/apps/R/3.3.1/lib64/R/library/Rcpp/include/Rcpp/algorithm.h:154: warning: type qualifiers ignored on function return type
/gpfs/apps/R/3.3.1/lib64/R/library/Rcpp/include/Rcpp/algorithm.h:162: warning: type qualifiers ignored on function return type
/gpfs/apps/R/3.3.1/lib64/R/library/Rcpp/include/Rcpp/algorithm.h:163: warning: type qualifiers ignored on function return type
cc1plus: warning: unrecognized command line option "-Wno-unused-local-typedefs"
g++ -std=c++0x -I/apps/R/3.3.1/lib64/R/include -DNDEBUG -I/usr/local/include -I"/gpfs/apps/R/3.3.1/lib64/R/library/Rcpp/include" -I"/gpfs/apps/R/3.3.1/lib64/R/library/RcppEigen/include" -I"/gpfs/home/martint/R/x86_64-pc-linux-gnu-library/3.3/StanHeaders/include" -I"/gpfs/apps/R/3.3.1/lib64/R/library/BH/include" -I"/gpfs/home/martint/R/x86_64-pc-linux-gnu-library/3.3/rpf/include" -fopenmp -Wall -Wextra -Wno-unknown-pragmas -Wno-unused-parameter -Wvla -Wno-unused-local-typedefs -fpic -g -O2 -c ba81quad.cpp -o ba81quad.o
ba81quad.cpp: In member function "void ba81NormalQuad::setStructure(double, int, Eigen::ArrayBase&, Eigen::MatrixBase&, Eigen::MatrixBase&)â":
ba81quad.cpp:502: error: expected initializer before ":â" token
ba81quad.cpp:810: error: expected primary-expression at end of input
ba81quad.cpp:810: error: expected ";" at end of input
ba81quad.cpp:810: error: expected primary-expression at end of input
ba81quad.cpp:810: error: expected ")" at end of input
ba81quad.cpp:810: error: expected statement at end of input
ba81quad.cpp:810: error: expected "}" at end of input
ba81quad.cpp:810: error: expected "}" at end of input
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-unused-local-typedefs"
make: *** [ba81quad.o] Error 1
ERROR: compilation failed for package "OpenMx"
* removing "/gpfs/home/martint/R/x86_64-pc-linux-gnu-library/3.3/OpenMxâ"

jpritikin's picture
Offline
Joined: 05/24/2012 - 00:35
gcc?

Which version of gcc are you using? I suspect you'll need a newer version.

LS's picture
LS
Offline
Joined: 09/04/2016 - 20:25
Same Error

Hi

I experience the same error attempting to install OpenMx v.2.6.9 on a Linux x86_64 cluster, gcc version 4.4.7, R version 3.1.2.

Do I need to update gcc?

Thanks

jpritikin's picture
Offline
Joined: 05/24/2012 - 00:35
gcc

I suspect yes. Gcc 5.4 works great.

Log in or register to post comments