[Rd] R CMD build says, 'Can't call method "print"'

2006-04-23 Thread Seth Falcon
Hi,

While running R CMD build on one of the Bioc packages, I'm getting the
following error message

* creating vignettes ... OK
* cleaning src
* removing junk files
* checking for LF line-endings in source files
Can't call method "print" on an undefined value at 
/home/sfalcon/arch/x86_64/R-2.3/bin/build line 646.

The pacakge has CRLF line endings in source files.


> R.version
   _   
platform   x86_64-unknown-linux-gnu
arch   x86_64  
os linux-gnu   
system x86_64, linux-gnu   
status RC  
major  2   
minor  3.0 
year   2006
month  04  
day22  
svn rev37906   
language   R   
version.string Version 2.3.0 RC (2006-04-22 r37906)


+ seth

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] R CMD build says, 'Can't call method "print"'

2006-04-23 Thread Prof Brian Ripley
This is a Perl scope problem on $log.  For a quick fix, remove 'my' where 
it is defined (the real fix is to pass $log down, and I'll do that in 
the sources).

On Sun, 23 Apr 2006, Seth Falcon wrote:

> Hi,
>
> While running R CMD build on one of the Bioc packages, I'm getting the
> following error message
>
> * creating vignettes ... OK
> * cleaning src
> * removing junk files
> * checking for LF line-endings in source files
> Can't call method "print" on an undefined value at 
> /home/sfalcon/arch/x86_64/R-2.3/bin/build line 646.
>
> The pacakge has CRLF line endings in source files.
>
>
>> R.version
>   _
> platform   x86_64-unknown-linux-gnu
> arch   x86_64
> os linux-gnu
> system x86_64, linux-gnu
> status RC
> major  2
> minor  3.0
> year   2006
> month  04
> day22
> svn rev37906
> language   R
> version.string Version 2.3.0 RC (2006-04-22 r37906)
>
>
> + seth
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] undefined type 'struct tms' when compiling for MinGW

2006-04-23 Thread Mike Leahy
Hello list,

Out of interest, I've been trying to compile R on WinXP with MinGW/MSYS.
 I've been following the instructions for compiling R on windows as
closely as possible.  Below is my configure statement, which seems to
work okay except that no browser or pdf viewer is found, and html docs
will not be compiled...  I've tried enabling/disabling many different
options, and I also add to hack some files to include psignal.h and
run.h using absolute path references.  At any rate, I will invariably
get the errors below with R-2.2.1 and R-rc (from R-latest.tar.gz
downloaded a few hours ago).  It seems that it is looking for times.h
which doesn't exist in the MinGW setup - but should it even be building
anything from the src/unix folder?  I figure I must be missing some key
configuration or step in the windows build instructions...

If anyone has any suggestions, I'd be happy to hear them...

Mike.


TCLTK_LIBS=/c/mingw/lib BLAS_LIBS=/c/mingw/lib LAPACK_LIBS=/c/mingw/lib
./configure --prefix=c:/mingw --with-lapack=yes --with-zlib=yes
--with-system-pcre=yes --with-x=no --disable-nls --disable-rpath
--enable-R-shlib

...

make[3]: Entering directory `/src/R-2.2.1/src/unix'
gcc -I. -I../../src/include -I../../src/include  -I/usr/local/include
-DHAVE_CONFIG_H -D__NO_MATH_INLINES   -g -O2 -c dynload.c -o dynload.lo
gcc -I. -I../../src/include -I../../src/include  -I/usr/local/include
-DHAVE_CONFIG_H -D__NO_MATH_INLINES   -g -O2 -c edit.c -o edit.lo
gcc -I. -I../../src/include -I../../src/include  -I/usr/local/include
-DHAVE_CONFIG_H -D__NO_MATH_INLINES   -g -O2 -c stubs.c -o stubs.lo
gcc -I. -I../../src/include -I../../src/include  -I/usr/local/include
-DHAVE_CONFIG_H -D__NO_MATH_INLINES   -g -O2 -c system.c -o system.lo
gcc -I. -I../../src/include -I../../src/include  -I/usr/local/include
-DHAVE_CONFIG_H -D__NO_MATH_INLINES   -g -O2 -c sys-unix.c -o sys-unix.lo
sys-unix.c: In function `R_getProcTime':sys-unix.c:176: error: invalid
use of undefined type `struct tms'
sys-unix.c:177: error: invalid use of undefined type `struct tms'
sys-unix.c:179: error: invalid use of undefined type `struct tms'
sys-unix.c:180: error: invalid use of undefined type `struct tms'
sys-unix.c: In function `Rf_InitTempDir':
sys-unix.c:285: error: too many arguments to function `mkdir'
sys-unix.c:294: error: too many arguments to function `mkdir'
sys-unix.c: At top level:
sys-unix.c:165: error: storage size of `timeinfo' isn't known
make[3]: *** [sys-unix.lo] Error 1
make[3]: Leaving directory `/src/R-2.2.1/src/unix'
make[2]: *** [R] Error 2
make[2]: Leaving directory `/src/R-2.2.1/src/unix'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/src/R-2.2.1/src'
make: *** [R] Error 1

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel