[R] prcomp help
Al Piszcz
apiszcz at solarrain.com
Sun May 30 22:55:36 CEST 2004
I located this: (same file with previous issues)
Sat Mar 27 13:46:11 UTC 2004, ripley
adjust to work with XFree86 4.4.0 headers (and some missing casts)
R NEWS,1.2033
R/src/modules/X11 dataentry.c,1.17
AND 1.9.0 release notes
o The X11 module can now be built against XFree86 4.4.0 headers
(still
with some warnings).
On Sun, 30 May 2004, Al Piszcz wrote:
> Date: Sun, 30 May 2004 16:27:39 -0400 (EDT)
> From: Al Piszcz <apiszcz at solarrain.com>
> To: Uwe Ligges <ligges at statistik.uni-dortmund.de>
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] prcomp help
>
>
> There may be some compilation issues with XFree86 4.4.0
>
>
>
> gcc -Wl,--export-dynamic -L/usr/local/lib -o R.bin CConverters.o Rdynload.o
> RN
> G.o apply.o arithmetic.o apse.o array.o attrib.o base.o bind.o builtin.o
> charac
> ter.o coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o
> dat
> etime.o debug.o devPS.o devPicTeX.o deparse.o deriv.o devices.o dotcode.o
> dounz
> ip.o dstruct.o duplicate.o engine.o envir.o errors.o eval.o format.o
> fourier.o gram.o gram-ex.o graphics.o identical.o internet.o iosupport.o
> lapack.o list.o logic.o main.o mapply.o match.o memory.o model.o names.o
> objects.o optim.o opti
> mize.o options.o par.o paste.o pcre.o platform.o plot.o plot3d.o plotmath.o
> pri
> nt.o printarray.o printvector.o printutils.o qsort.o random.o regex.o relop.o
> s
> aveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o sprintf.o
> sub
> assign.o subscript.o subset.o summary.o unique.o util.o version.o vfonts.o
> regi
> stration.o xxxpr.o ../unix/libunix.a ../appl/libappl.a ../nmath/libnmath.a
> -L
> /usr/local/lib -L/a/app/gcc-3.4.0/bin/../lib/gcc/i686-pc-linux-gnu/3.4.0
> -L/a/a
> pp/gcc-3.4.0/bin/../lib/gcc -L/vapp/lib
> -L/app/gcc-3.4.0/lib/gcc/i686-pc-linux-
> gnu/3.4.0 -L/a/app/gcc-3.4.0/bin/../lib/gcc/i686-pc-linux-gnu/3.4.0/../../..
> -L
> /app/gcc-3.4.0/lib/gcc/i686-pc-linux-gnu/3.4.0/../../.. -lfrtbegin -lg2c -lm
> -l
> gcc_s ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a
> -lr
> eadline -ldl -lncurses -lm
> make[4]: Entering directory `/x/r/R-1.9.0/src/main'
> make[4]: Leaving directory `/x/r/R-1.9.0/src/main'
> make[3]: Leaving directory `/x/r/R-1.9.0/src/main'
> make[2]: Leaving directory `/x/r/R-1.9.0/src/main'
> make[2]: Entering directory `/x/r/R-1.9.0/src/modules'
> make[3]: Entering directory `/x/r/R-1.9.0/src/modules/X11'
> make[4]: Entering directory `/x/r/R-1.9.0/src/modules/X11'
> making dataentry.d from dataentry.c
> making devX11.d from devX11.c
> making rotated.d from rotated.c
> making rbitmap.d from rbitmap.c
> make[4]: Leaving directory `/x/r/R-1.9.0/src/modules/X11'
> make[4]: Entering directory `/x/r/R-1.9.0/src/modules/X11'
> gcc -I. -I../../../src/include -I../../../src/include -I/usr/X11R6/include
> -I/u
> sr/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES -mieee-fp -fPIC -g -O2
> -c
> dataentry.c -o dataentry.lo
> In file included from dataentry.c:31:
> /usr/include/X11/Xlib.h:1390: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:1478: error: parse error before "char"
> /usr/include/X11/Xlib.h:1506: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:1510: error: parse error before "char"
> /usr/include/X11/Xlib.h:1532: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:1567: error: parse error before '*' token
> /usr/include/X11/Xlib.h:1576: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:1601: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:1651: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:1657: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:1704: error: parse error before "char"
> /usr/include/X11/Xlib.h:1743: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:1984: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2068: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2321: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2331: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2403: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2413: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2571: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2586: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2779: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2846: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2851: error: parse error before "char"
> /usr/include/X11/Xlib.h:2965: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:2991: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3002: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3027: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3036: error: parse error before "char"
> /usr/include/X11/Xlib.h:3049: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3192: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3241: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3273: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3364: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3371: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3391: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3397: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3409: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3419: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3429: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3435: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3536: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3553: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3604: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3647: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3653: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3659: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3665: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3673: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3681: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3689: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3701: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3713: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3760: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3771: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3782: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3793: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3804: error: parse error before "_Xconst"
> /usr/include/X11/Xlib.h:3815: error: parse error before "_Xconst"
> In file included from dataentry.c:32:
> /usr/include/X11/Xutil.h:566: error: parse error before "_Xconst"
> /usr/include/X11/Xutil.h:606: error: parse error before "_Xconst"
> /usr/include/X11/Xutil.h:666: error: parse error before "_Xconst"
> /usr/include/X11/Xutil.h:678: error: parse error before "_Xconst"
> /usr/include/X11/Xutil.h:801: error: parse error before "_Xconst"
> dataentry.c: In function `GetKey':
> dataentry.c:1272: warning: passing arg 4 of `XLookupString' from incompatible
> p
> ointer type
> dataentry.c: In function `GetCharP':
> dataentry.c:1281: warning: passing arg 4 of `XLookupString' from incompatible
> p
> ointer type
> dataentry.c: In function `doControl':
> dataentry.c:1302: warning: passing arg 4 of `XLookupString' from incompatible
> p
> ointer type
> make[4]: *** [dataentry.lo] Error 1
> make[4]: Leaving directory `/x/r/R-1.9.0/src/modules/X11'
> make[3]: *** [R] Error 2
> make[3]: Leaving directory `/x/r/R-1.9.0/src/modules/X11'
> make[2]: *** [R] Error 1
> make[2]: Leaving directory `/x/r/R-1.9.0/src/modules'
> make[1]: *** [R] Error 1
> make[1]: Leaving directory `/x/r/R-1.9.0/src'
> make: *** [R] Error 1
>
> real 6m23.270s
> user 1m35.338s
> sys 0m8.069s
>
>
>
>
>
> On Sun, 30 May 2004, Uwe Ligges wrote:
>
>> Date: Sun, 30 May 2004 22:01:58 +0200
>> From: Uwe Ligges <ligges at statistik.uni-dortmund.de>
>> To: Al Piszcz <apiszcz at solarrain.com>
>> Cc: r-help at stat.math.ethz.ch
>> Subject: Re: [R] prcomp help
>>
>> Al Piszcz wrote:
>>>
>>> Slackware 9.1, R 1.9.0, 2.54GHZ P4, 2GB RAM
>>>
>>> example(prcomp) never finishes
>>>
>>>
>>>> example(prcomp)
>>>
>>>
>>> prcomp> data(USArrests)
>>>
>>> prcomp> prcomp(USArrests)
>>>
>>>
>>> ====
>>>
>>> The following test also appears to hang.
>>>
>>>> a<-matrix(rnorm(100,mean=32,sd=31),10,10)
>>>> b<-prcomp(a)
>>
>> Works on Windows and several other OSs.
>>
>> Do you have a local copy of prcomp() (which is different from the original
>> one)?
>>
>> What happens if you start R with --vanilla and try again?
>>
>> What happened after
>> make check
>> during your R installation? make check should have reported an error here
>> (or hang itself)....
>>
>> Uwe Ligges
>>
>>
>>
>>
>>>
>>>
>>>
>>> ====
>>>
>>> What is the recommended debug approach?
>>>
>>> Thank you.
>>>
>>> ______________________________________________
>>> R-help at stat.math.ethz.ch mailing list
>>> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide!
>>> http://www.R-project.org/posting-guide.html
>>
>
More information about the R-help
mailing list