Re: [Rd] R CMD SHLIB error bad value (core2) for -mtune= switch
I am getting the following error. Please help if the problem is resolved: $ make 0 [main] make 10092 stdio_init: couldn't make stderr distinct from stdout R CMD SHLIB src/C/util.c src/C/factor_model_util.c src/C/pagerank.c src/C/hierarchical.c src/C/factor_model_multicontext.c src/C/fact or_model_util2.cpp -o lib/c_funcs.so Segmentation fault - Pranav Waila pranav.wa...@gmail.com Research Scholar DST - Centre for Interdisciplinary Mathematical Sciences Faculty of Science Banaras Hindu University,Varanasi-221005 -- View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-error-bad-value-core2-for-mtune-switch-tp4645928p4680510.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD SHLIB error bad value (core2) for -mtune= switch
No information has been given, where this error occurred. What were you doing? Simon On 15 Nov 2013, at 10:49, pranav.waila pranav.wa...@gmail.com wrote: I am getting the following error. Please help if the problem is resolved: $ make 0 [main] make 10092 stdio_init: couldn't make stderr distinct from stdout R CMD SHLIB src/C/util.c src/C/factor_model_util.c src/C/pagerank.c src/C/hierarchical.c src/C/factor_model_multicontext.c src/C/fact or_model_util2.cpp -o lib/c_funcs.so Segmentation fault - Pranav Waila pranav.wa...@gmail.com Research Scholar DST - Centre for Interdisciplinary Mathematical Sciences Faculty of Science Banaras Hindu University,Varanasi-221005 -- View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-error-bad-value-core2-for-mtune-switch-tp4645928p4680510.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD SHLIB error bad value (core2) for -mtune= switch
On Oct 23, 2012, at 10:58 AM, smzyij wrote: Thank you so much Prof Ripley. You are right. So instead of using Windows R, I tried to compile binary R under Cygwin, but it errored out everytime at different places when I tried different options to configure. So I guess I need to seek other alternate ways. Is there any chance you think that I could find Windows C/C++ compilers (rather than Cygwin compilers) to compile the codes I mentioned that's written in conjuction with Linux R/C/C++, and then run the codes under Windows R? Or the only way out here is to spin up a linux machine to have R installed? http://cran.r-project.org/bin/windows/base/rw-FAQ.html#Building-from-Source http://cran.r-project.org/doc/manuals/R-admin.html http://cran.r-project.org/doc/manuals/R-admin.html#Getting-the-tools http://cran.r-project.org/doc/manuals/R-admin.html#The-Windows-toolset -- View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-error-bad-value-core2-for-mtune-switch-tp4645928p4647182.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- David Winsemius, MD Alameda, CA, USA __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] R CMD SHLIB error bad value (core2) for -mtune= switch
Hi there, I'm having trouble to compile the R + C/C++ codes for this project from Yahoo folks on latent factor models: https://github.com/yahoo/Latent-Factor-Models#readme After downloading the package from the site, I could not successfully *make* the files. Here is the message: == sh-4.1$ make R CMD SHLIB src/C/util.c src/C/factor_model_util.c src/C/pagerank.c src/C/hierarchical.c src/C/factor_model_multicontext.c src/C/factor_model_util2.cpp -o lib/c_funcs.so make[1]: Entering directory `/cygdrive/c/Users/yi/Desktop/Yi/Latent Factor models' g++ -IC:/PROGRA~1/R/R-215~1.1/include -DNDEBUG -O2 -Wall -mtune=core2 -c src/C/factor_model_util2.cpp -o src/C/factor_model_util2.o src/C/factor_model_util2.cpp:1: error: bad value (core2) for -mtune= switch C:/PROGRA~1/R/R-215~1.1/etc/i386/Makeconf:179: recipe for target `src/C/factor_model_util2.o' failed make[1]: *** [src/C/factor_model_util2.o] Error 1 make[1]: Leaving directory `/cygdrive/c/Users/yi/Desktop/Yi/Latent Factor models' Makefile:8: recipe for target `c_funcs' failed make: *** [c_funcs] Error 1 == I am running cygwin (virtual linux environment on windows) on Windows 7 64bit Professional with Intel core i5 650 @3.20GHz 3.33GHz with 4GB memory to take advantage of its c/c++ compile capabilities. My R version is R 2.15.1. It looks to me from the files in my src/C folder that src/C/util.c src/C/factor_model_util.c src/C/pagerank.c src/C/hierarchical.c src/C/factor_model_multicontext.c have all been complied to their corresponding *.o files, but not src/C/factor_model_util2.cpp . Here is the makefile contents (You can download them from the link I posted above): == all: lib c_funcs pagerank: src/C/pagerank.c src/C/util.h R CMD SHLIB src/C/pagerank.c -o lib/pagerank.so c_funcs: src/C/util.h src/C/factor_model_util.h src/C/pagerank.c src/C/util.c src/C/factor_model_util.c src/C/factor_model_util2.cpp src/C/hierarchical.c src/C/hierarchical.h src/C/factor_model_multicontext.c R CMD SHLIB src/C/util.c src/C/factor_model_util.c src/C/pagerank.c src/C/hierarchical.c src/C/factor_model_multicontext.c src/C/factor_model_util2.cpp -o lib/c_funcs.so clean: rm -f src/C/*.o src/C/*.so lib/*.so lib: mkdir lib == Here is the contents of the makevars: == PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) -Wall == I did check my C:\Program Files\R\R-2.15.1\etc\i386\Makeconf file, but could not figure out why this matters: bad value (core2) for -mtune= switch Can someone help or what else do you need to help diagnose the issue here? Many Thanks! YI -- View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-error-bad-value-core2-for-mtune-switch-tp4645928.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD SHLIB error bad value (core2) for -mtune= switch
1) Cygwin is not a supported platform. See the 'R Installation and Administration Manual'. 2) C:\Program Files\R\R-2.15.1\etc\i386\Makeconf is for the Windows port of R, not Cygwin. Are you perchance trying to use Windows R with Cygwin compilers? It will not work Binary installations of R have to be used with exactly the compilers used to build R. On 11/10/2012 23:56, smzyij wrote: Hi there, I'm having trouble to compile the R + C/C++ codes for this project from Yahoo folks on latent factor models: https://github.com/yahoo/Latent-Factor-Models#readme After downloading the package from the site, I could not successfully *make* the files. Here is the message: == sh-4.1$ make R CMD SHLIB src/C/util.c src/C/factor_model_util.c src/C/pagerank.c src/C/hierarchical.c src/C/factor_model_multicontext.c src/C/factor_model_util2.cpp -o lib/c_funcs.so make[1]: Entering directory `/cygdrive/c/Users/yi/Desktop/Yi/Latent Factor models' g++ -IC:/PROGRA~1/R/R-215~1.1/include -DNDEBUG -O2 -Wall -mtune=core2 -c src/C/factor_model_util2.cpp -o src/C/factor_model_util2.o src/C/factor_model_util2.cpp:1: error: bad value (core2) for -mtune= switch C:/PROGRA~1/R/R-215~1.1/etc/i386/Makeconf:179: recipe for target `src/C/factor_model_util2.o' failed make[1]: *** [src/C/factor_model_util2.o] Error 1 make[1]: Leaving directory `/cygdrive/c/Users/yi/Desktop/Yi/Latent Factor models' Makefile:8: recipe for target `c_funcs' failed make: *** [c_funcs] Error 1 == I am running cygwin (virtual linux environment on windows) on Windows 7 64bit Professional with Intel core i5 650 @3.20GHz 3.33GHz with 4GB memory to take advantage of its c/c++ compile capabilities. My R version is R 2.15.1. It looks to me from the files in my src/C folder that src/C/util.c src/C/factor_model_util.c src/C/pagerank.c src/C/hierarchical.c src/C/factor_model_multicontext.c have all been complied to their corresponding *.o files, but not src/C/factor_model_util2.cpp . Here is the makefile contents (You can download them from the link I posted above): == all: lib c_funcs pagerank: src/C/pagerank.c src/C/util.h R CMD SHLIB src/C/pagerank.c -o lib/pagerank.so c_funcs: src/C/util.h src/C/factor_model_util.h src/C/pagerank.c src/C/util.c src/C/factor_model_util.c src/C/factor_model_util2.cpp src/C/hierarchical.c src/C/hierarchical.h src/C/factor_model_multicontext.c R CMD SHLIB src/C/util.c src/C/factor_model_util.c src/C/pagerank.c src/C/hierarchical.c src/C/factor_model_multicontext.c src/C/factor_model_util2.cpp -o lib/c_funcs.so clean: rm -f src/C/*.o src/C/*.so lib/*.so lib: mkdir lib == Here is the contents of the makevars: == PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) -Wall == I did check my C:\Program Files\R\R-2.15.1\etc\i386\Makeconf file, but could not figure out why this matters: bad value (core2) for -mtune= switch Can someone help or what else do you need to help diagnose the issue here? Many Thanks! YI -- View this message in context: http://r.789695.n4.nabble.com/R-CMD-SHLIB-error-bad-value-core2-for-mtune-switch-tp4645928.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Brian D. Ripley, rip...@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel