Hi, this is not a bug report since this may not be a problem with R per se. The current release of R (1.1.0) will compile cleanly on an AIX box (I have 4.3.2) but it will fail upon startup with an Illegal Instruction. I've located the problem to be in do_strsplit when R calls regcomp. This function is defined in regex.c. However, the text from regex.o doesn't find its way into the executable, R.X11, since there's also a regcomp in /usr/lib/libc.a Apparently, this confuses the system enough to completely lose its mind. When regcomp in libc.a gets called, the stack is trashed which made this hard to debug. A temporary fix is to remove the _first_ use of -lc from the linker command line. This will affect the way the export symbols are defined. Not sure yet whether this matters. Why does this bug only show up on AIX? Is this some weird posix trap? Thanks, -tom -- mailto:tov@ece.cmu.edu (Tom Vogels) Tel: (412) 268-6638 FAX: -3204 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thomas J Vogels <tov@ece.cmu.edu> writes:> Hi, > > this is not a bug report since this may not be a problem with R per se. > > The current release of R (1.1.0) will compile cleanly on an AIX box > (I have 4.3.2) but it will fail upon startup with an Illegal > Instruction. I've located the problem to be in do_strsplit when R > calls regcomp. > > This function is defined in regex.c. However, the text from regex.o > doesn't find its way into the executable, R.X11, since there's also a > regcomp in /usr/lib/libc.a Apparently, this confuses the system > enough to completely lose its mind. When regcomp in libc.a gets > called, the stack is trashed which made this hard to debug. > > A temporary fix is to remove the _first_ use of -lc from the linker > command line. This will affect the way the export symbols are > defined. Not sure yet whether this matters. > > Why does this bug only show up on AIX? Is this some weird posix trap?We've discussed this recently (others know better than me). I think you have it spot on, and the problem is that almost all other systems than AIX will have the linker implicitly move -lc *after* the .o files... AFAIR the permanent fix is equivalent to your temporary one. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
yes, you are right. winedt is shareware. Prof Brian D Ripley wrote:> > On Sun, 19 Mar 2000, Erich Neuwirth wrote: > > > for all of you using the windows version: > > i think having a look at the r-winedt > > interface by volker ligges is a good idea. > > it works quite nicely. > > Is WinEdt not shareware? That dampens my enthusiasm for using it with > an Open Source project. > > -- > Brian D. Ripley, ripley@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 272860 (secr) > Oxford OX1 3TG, UK Fax: +44 1865 272595-- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> To: Kurt.Hornik@ci.tuwien.ac.at > Cc: R-devel <r-devel@stat.math.ethz.ch> > Subject: Re: [Rd] AIX fails on startup with R-1.0.0 > X-URI: http://www.ece.cmu.edu/~tov > From: Thomas J Vogels <tov@ece.cmu.edu> > Date: 28 Mar 2000 13:24:09 -0500> Other roadblocks I've encountered (and the reason I cc: r-devel): > > -- ld/cc doesn't automatically include /usr/local/lib while gcc does. > This comes from the sytem installation here and has nothing to do with > R. But having to add LIBS=-L/usr/local/lib may come as a surprise to > people who don't do this regularly. Does configure check for the > existence of e.g. libz.a with cc or gcc?This is a common problem, and if libz is shared, building may work but running may not (as you need /usr/local/lib in the shared library path). BTW, recent gcc's (e.g. 2.95.2) seem to include prefix/lib not /usr/local/lib which may come as even more of a surprise. On Solaris 2.6 I need CPPFLAGS=-I/usr/local/include LIBS="-L/usr/local/lib -R/usr/local/lib" when using gcc 2.95.2, installed in /ext/gcc-2.95.2, and I always need the second to cope with /usr/local/lib/libz.so. -- Brian D. Ripley, ripley@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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._