Whit Armstrong
2008-Dec-09 21:13 UTC
[Rd] any suggestions to deal with 'Argument list too long' for a R CMD check?
Since, gcc was using upwards of 2gb of ram to compile my package, I just split all the functions into individual files. I guess I'm too clever for myself, because now I get hit with the "Argument list too long" error. Is there a way to deal with this aside from writing my own configure script (which could possibly feed the gcc commands one by one). -Whit RHEL 5 [whit at linuxsvr]$ uname -a Linux linuxsvr.kls.corp 2.6.18-92.1.18.el5 #1 SMP Wed Nov 5 09:00:19 EST 2008 x86_64 x86_64 x86_64 GNU/Linux from 00install.out: * Installing *source* package 'RFincad' ... ** libs g++ -I/usr/local/lib64/R/include -I/usr/local/include -I./RAbstraction -I./R.tslib.backend -I./tslib -fpic -g -O2 -c aaAccrual_days_act252.cpp -o aaAccrual_days_act2\ 52.o make: execvp: g++: Argument list too long make: *** [aaAccrual_days_act252.o] Error 127 ERROR: compilation failed for package 'RFincad' ** Removing '/home/whit/dvl/fincad.utils/fincad.generate.R/RFincad.Rcheck/RFincad'
Jeff Ryan
2008-Dec-09 21:23 UTC
[Rd] any suggestions to deal with 'Argument list too long' for a R CMD check?
Never used, but I seem to recall that this was good for that: http://en.wikipedia.org/wiki/Xargs Jeff On Tue, Dec 9, 2008 at 3:13 PM, Whit Armstrong <armstrong.whit at gmail.com> wrote:> Since, gcc was using upwards of 2gb of ram to compile my package, I > just split all the functions into individual files. > > I guess I'm too clever for myself, because now I get hit with the > "Argument list too long" error. > > Is there a way to deal with this aside from writing my own configure > script (which could possibly feed the gcc commands one by one). > > -Whit > > RHEL 5 > [whit at linuxsvr]$ uname -a > Linux linuxsvr.kls.corp 2.6.18-92.1.18.el5 #1 SMP Wed Nov 5 09:00:19 > EST 2008 x86_64 x86_64 x86_64 GNU/Linux > > from 00install.out: > > * Installing *source* package 'RFincad' ... > ** libs > g++ -I/usr/local/lib64/R/include -I/usr/local/include > -I./RAbstraction -I./R.tslib.backend -I./tslib -fpic -g -O2 -c > aaAccrual_days_act252.cpp -o aaAccrual_days_act2\ > 52.o > make: execvp: g++: Argument list too long > make: *** [aaAccrual_days_act252.o] Error 127 > ERROR: compilation failed for package 'RFincad' > ** Removing '/home/whit/dvl/fincad.utils/fincad.generate.R/RFincad.Rcheck/RFincad' > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Jeffrey Ryan jeffrey.ryan at insightalgo.com ia: insight algorithmics www.insightalgo.com