From Thomas Vogels <tov@ece.cmu.edu>  Mon Jun 14 13:32:37 1999
From: Thomas Vogels <tov@ece.cmu.edu> (Thomas Vogels)
Date: Mon, 14 Jun 1999 08:32:37 -0400
Subject: Compilation fails (PR#209)
In-Reply-To: Your message of "Mon, 14 Jun 1999 13:03:48 EDT."
 <199906141103.NAA28439@Statistik.Uni-Dortmund.DE>
Message-ID: <199906141232.IAA23012@infiniti.ece.cmu.edu>


Hi,

  there are three different things going on here:
  (1) gmake by default has the option "-w" set, which is why you see
these "Entering/Leaving directory ..." messages.  This option finds a
way into the make flags when the system default make is called.  Not
quite sure how, but don't blame it on configure.  Makeconf et. al. is
more likely.
  (2) Very annoyingly, modreg doesn't use the $(SHLIBLD) command but
calls R with SHLIB as option.  Which is nothing you are interested in,
but is a bad thing, IMHO.
  (3) g77 croaks on -PIC: for this you may have to blame xmkmf (which
configure uses.  Try to find out, what the default is.  Follow this example:
  tmp $ touch Imakefile
  tmp $ xmkmf
  imake -DUseInstalled -I/usr/lib/X11/config
  "./Imakefile", line 1: 1506-229 (W) File is empty.
  tmp $ grep -i pic Makefile 
  PICFLAGS = -bM\:SRE
(Results are for an AIX box.  Your output should look different.)

| gmake[4]: Entering directory
| `/sw/sun4_55/R-0.64.1a/src/library/modreg/src'
| gcc -g -O2 -fPIC -I../../../../include -c bsplvd.c -o bsplvd.o
| g77  -PIC -c bvalue.f -o bvalue.o
| gcc: unrecognized option `-PIC'
| ../../../../bin/R SHLIB -o modreg.so bsplvd.o bvalue.o bvalus.o
| ksmooth.o
| loessc.o loessf.o ppr.o qsbart.o sbart.o sgram.o sinerp.o sslvrg.o
| stxwx.o
| Usage : make [ -f makefile ]... [ -d ][ -dd ][ -D ][ -DD ][ -e ][ -i
| ][ -k ]
|              [ -K statefile ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S
| ][ -t ]
|              [ -V ][ target ... ][ macro=value... ]
| make: Fatal error: Unknown option `-w'
| gmake[4]: *** [modreg.so] Error 1

  -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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Compilation fails (PR#209)
Thomas Vogels