similar to: compile c++ code in an R package without -g

Displaying 20 results from an estimated 5000 matches similar to: "compile c++ code in an R package without -g"

2014 Jul 25
1
Multiple -g flags in R CMD SHLIB
Does anybody know why two "-g" flags appear in the call to gcc in R CMD SHLIB Example: gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic *-g* -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 *-g* -c c_file1.c -o c_object1.o Surely it need only be listed once? Alan [[alternative HTML version deleted]]
2016 Oct 16
1
compile c++ code in an R package without -g
Hello Dirk, Thank you very much for your reply. The main reason I want to remove the debug info is that when I use R CMD check on my package, it gives the following info * checking installed package size ... NOTE installed size is 223.6Mb sub-directories of 1Mb or more: libs 223.1Mb CRAN requires an R package to pass all checks and fix all complaints including NOTEs. It seems R's
2015 Apr 21
1
Typo in src/scripts/config
Was writing a short R script to modify compile flags and saw this typo: Index: config =================================================================== --- config (revision 68217) +++ config (working copy) @@ -61,7 +61,7 @@ CXX1X C++ compiler command for C++11 code CXX1XSTD flag used to enable C++11 support CXX1XFLAGS C++11 compiler flags - CXX1XXPICFLAGS +
2011 Sep 09
1
R CMD INSTALL configure.args and CC customization
I am running into the following issue that has been previously reported on the R-devel mailing list. The short version is that I'm writing a package for MPI, and I'd like to change CC and SHLIB_LD to "mpicc". Trying to change them in Makevars.in has no effect, because the values are clobbered by /etc/R/Makeconf. Will the following changes to Makeconf.in introduce any problems?
2016 Nov 12
2
Ubuntu 16.10 Yakkety Yak uses GCC 6 but -std=c++98 is missing
On 12 November 2016 at 07:59, Dirk Eddelbuettel wrote: | | On 12 November 2016 at 14:23, Kirill M?ller wrote: | | Thanks. I have now CXX = g++ -std=c++98 in my /etc/R/Makeconf, it's | | picked up properly. I can only assume that the last -std= option wins if | | more than one are given on the same command line [1]. | | Good to know it works. | | I am still a little puzzled why it was
2016 Oct 16
0
compile c++ code in an R package without -g
On 16 October 2016 at 09:46, Da Zheng wrote: | I'm writing an R package that is mainly written in C++. By default, R | CMD INSTALL creates C/C++ flags as follows: | -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat | -Werror=format-security -D_FORTIFY_SOURCE=2 -g That looks like you are running R on a Debian or Ubuntu system as these are the compilation defaults we set everywhere,
2013 Aug 23
1
Makevars and Makeconf sequencing
http://cran.r-project.org/doc/manuals/R-exts.html#Configure-and-cleanup near the start of 1.2.1 Using Makevars says > There are some macros which are set whilst configuring the building of > R itself and are stored in R_HOME/etcR_ARCH/Makeconf. That makefile is > included as a Makefile after Makevars[.win], and the macros it defines > can be used in macro assignments and make command
2013 Jan 10
2
Cannot override default -O3 flag on Winodws, dll does not have symbols
In trying to compile a package with c code using Rtools, -O3 is added by default. This comes from Makeconf? Compiler flags (CFLAGS="-O0 -g" ) set in src/Makevars.win or src/Makevars appear before this. nm pkg.dll reveals no symbols! How can I compile a Windows package with "-O2 -g"? Thanks, RT -- View this message in context:
2016 Sep 27
4
src/Makevars ignored ?
Le 27/09/16 ? 13:31, Dirk Eddelbuettel a ?crit : > > On 27 September 2016 at 09:37, Eric Deveaud wrote: > | Hello, > | > | I'm tring to install a Rpackage that holds some C//C++ code > | > | as far as I understood the R library generic compilation mechanism, > | compilation of C//C++ sources is controled > | > | 1) at system level by the ocntentos
2016 Sep 27
2
src/Makevars ignored ?
Hello, I'm tring to install a Rpackage that holds some C//C++ code as far as I understood the R library generic compilation mechanism, compilation of C//C++ sources is controled 1) at system level by the ocntentos RHOME/etc/Makeconf 2) at user level by the content of ~/.R/Makevars 3) at package level by the content of src/Makevars Problem I have is that src/Makevars is ignored see
2007 Mar 20
2
PKG_CFLAGS/CFLAGS and PKG_CXXFLAGS/CXXFLAGS
Why is it that R places CFLAGS after PKG_CFLAGS and not before when compiling a package (e.g. through R CMD build pkg)? This can be problematic if, for instance, you want to use -O3, but -O2 is in R_HOME/etc/Makeconf. If -O2 (in CFLAGS) appears after -O3 (in PKG_CFLAGS), you are left with what you didn't want: -O2. In R-exts, it says that "Flags which are set in file etc/Makeconf
2017 Oct 10
2
Cannot install igraph package
On Mon, Oct 9, 2017 at 4:42 PM, Tom Callaway <tcallawa at redhat.com> wrote: > > On 10/09/2017 11:16 AM, Paul Smith wrote: >> >> I am trying to install >> >> igraph package >> >> but getting the following error: >> >> ------------------ >> make: *** [/usr/lib64/R/etc/Makeconf:159: foreign-graphml.o] Error 1 >> ERROR:
2011 May 20
2
Calling Rscript from Makevars
Hi, I am trying to package some code to use with R and wanted to call Rscript from within the Makevars file (I am trying to automate the setting of the location of a third party library depending on what is available / the system the package is being installed on). If I just have a simple Makevars containing PKG_LIBS= -lnag_nag -L/fserver/nagprod/FL22/fll6a22df/lib the package is built
2016 Nov 12
3
Ubuntu 16.10 Yakkety Yak uses GCC 6 but -std=c++98 is missing
Thanks. I have now CXX = g++ -std=c++98 in my /etc/R/Makeconf, it's picked up properly. I can only assume that the last -std= option wins if more than one are given on the same command line [1]. -Kirill [1] http://stackoverflow.com/q/40563269/946850 On 12.11.2016 03:01, Dirk Eddelbuettel wrote: > On 11 November 2016 at 23:48, Kirill M?ller wrote: > | After upgrading to Ubuntu
2016 Nov 11
3
Ubuntu 16.10 Yakkety Yak uses GCC 6 but -std=c++98 is missing
After upgrading to Ubuntu 16.10, which brings GCC 6, I've noticed that packages are compiled in C++14 mode by default. Here's what a g++ command for compiling one of Rcpp's modules look like on my system: g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
2017 Oct 09
2
Cannot install igraph package
Dear All, I am trying to install igraph package but getting the following error: ------------------ make: *** [/usr/lib64/R/etc/Makeconf:159: foreign-graphml.o] Error 1 ERROR: compilation failed for package ?igraph? * removing ?/usr/lib64/R/library/igraph? ------------------ Any ideas? Thanks in advance, Paul
2007 Aug 30
3
R and Web Applications
Hello, I'm curious to know how people are calling R from web applications (I've been looking for Perl but I'm open to other languages). After doing a search, I came across the R package "RSPerl", but I'm having difficulties getting it installed (on Mac OSX). I believe the problem probably has to do with changes in R since the package release. Below you will see where
2009 Sep 03
1
Turn of -O2 during package build
Hello, I'm using a Makevars.in file and running my code through gdb. I understand i should turn of -O2, but R's makeconf overrides my settings /ln/meraki/custom/lib64/R/etc/Makeconf:112: warning: overriding commands for target `.cc.o' in Makevars.in .cc.o: g++ -g ${PKG_CXXFLAGS} ${PKG_LIBS} ${RINC} ${RLIB} -c $< -o $@ Thank you S.
2009 Oct 29
2
Makevars, cc files in multiple directories
Hello, In the src folder of my R package I have a.cc b.cc f/g/x.cc my Makevars.in has all: $(SHLIB) upon installing only, a.o and b.o is build and the final dll is comprised of a.o and b.o How can I instruct $(SHLIB) to pick up its source files from all subdirectories (or maybe a subset, though here it will be all) in src ? Much thanks Saptarshi
2000 Jul 17
1
Makevars, PKG_CFLAGS, ...
Hi, I'm searching for a way to override the default CFLAGS/FFLAGS (-g -02 in my case) per package (e.g with "-g" for packages under development). PKG_CFLAGS/PKG_FFLAGS is prepended to the remaining flags, so it can't delete a globally set "-O2" flag. Of course I can edit the global Makeconf file, but I was wondering if there is a possibility to override variables from