Re: Compiling R from source

2012-02-08 Thread Zé Loff
Just in case Richard Thornton is still listening, on OpenBSD 5.0 (i386)
I managed to compile R properly using the aforementioned patch to the
tre sources and passing '--with-cairo=no' as configure option.

If you don't drop Cairo, R will be built all the same, but the first
time you try to plot something R will crash due to some mess with
libgthread.
Passing -pthread as a CFLAG or LDFLAG will break configure's detection of
jpeg and tiff capabilities and on top of that make will fail altogether.

As for the rest of the list, I'll try to find out who's behind the R
port and openbsd-wip on githup and offer the information I was able to
gather. I don't have the skills or the understanding of OpenBSD's libs
and such to be able to properly fix this... If anyone has any pointers
on the gthr / pthread stuff in general though, I'll be glad to help.



Re: Compiling R from source

2012-02-08 Thread Richard Thornton
Thats a great tip.  Thanks.
On Feb 8, 2012 5:32 AM, Zi Loff zel...@zeloff.org wrote:

 Just in case Richard Thornton is still listening, on OpenBSD 5.0 (i386)
 I managed to compile R properly using the aforementioned patch to the
 tre sources and passing '--with-cairo=no' as configure option.

 If you don't drop Cairo, R will be built all the same, but the first
 time you try to plot something R will crash due to some mess with
 libgthread.
 Passing -pthread as a CFLAG or LDFLAG will break configure's detection of
 jpeg and tiff capabilities and on top of that make will fail altogether.

 As for the rest of the list, I'll try to find out who's behind the R
 port and openbsd-wip on githup and offer the information I was able to
 gather. I don't have the skills or the understanding of OpenBSD's libs
 and such to be able to properly fix this... If anyone has any pointers
 on the gthr / pthread stuff in general though, I'll be glad to help.



Re: Compiling R from source

2012-02-08 Thread Stuart Henderson
On 2012-02-08, ZC) Loff zel...@zeloff.org wrote:
 Just in case Richard Thornton is still listening, on OpenBSD 5.0 (i386)
 I managed to compile R properly using the aforementioned patch to the
 tre sources and passing '--with-cairo=no' as configure option.

 If you don't drop Cairo, R will be built all the same, but the first
 time you try to plot something R will crash due to some mess with
 libgthread.

just run it with LD_PRELOAD=/usr/lib/libpthread.so in the environment 



Re: Compiling R from source

2012-02-08 Thread Zé Loff
That's it, all works fine now. Some patches have been submitted to the ports
CVS a few days ago, addressing these same issues:

http://permalink.gmane.org/gmane.os.openbsd.ports.cvs/61543

I'll take a look into those, Richard probably should do the same, too.
Many thanks to Stuart for all the help!

On Feb 8, 2012, at 2:23 PM, Stuart Henderson wrote:

 On 2012-02-08, ZC) Loff zel...@zeloff.org wrote:
 Just in case Richard Thornton is still listening, on OpenBSD 5.0 (i386)
 I managed to compile R properly using the aforementioned patch to the
 tre sources and passing '--with-cairo=no' as configure option.
 
 If you don't drop Cairo, R will be built all the same, but the first
 time you try to plot something R will crash due to some mess with
 libgthread.
 
 just run it with LD_PRELOAD=/usr/lib/libpthread.so in the environment 



Re: Compiling R from source

2012-02-06 Thread Zé Loff
I managed to compile R-2.14.0 and .1 from source on OpenBSD 5.0 (i386).

Make failed because that two of the tre source files require stdint.h
(for WCHAR_MAX definition) but don't include it. I managed to build R by
inserting
#include stdint.h
on src/extra/tre/tre-compile.c and src/extra/tre/tre-parse.c

I know this is an ugly hack, and fiddling with the sources seldom is a
good idea, but it got the job done...

There are some additional issues with the Cairo graphics device,
-pthread as a LDFLAG and some of the tests that configure runs, but I'm
still working on that. I'll share my findings when I have more concrete
answers (later today, hopefully).



On 02/03/12 12:02, Richard Thornton wrote:
 Using OpenBSD 5 on an old sparc 64 sun blade, I am trying to compile R from
 source, downloaded from the cran-r website;
 The ./configure works, but make always fails.  I realize that there is a R
 package available already but it is a 2008 version, and it has terrible
 graphics, anyone have a more recent port for sparc64?



Re: Compiling R from source

2012-02-06 Thread Peter Hessler
Including missing headers is completely the correct fix, please submit
the patches to the upstream author.


On 2012 Feb 06 (Mon) at 10:01:49 + (+), Zi Loff wrote:
:I managed to compile R-2.14.0 and .1 from source on OpenBSD 5.0 (i386).
:
:Make failed because that two of the tre source files require stdint.h
:(for WCHAR_MAX definition) but don't include it. I managed to build R by
:inserting
:#include stdint.h
:on src/extra/tre/tre-compile.c and src/extra/tre/tre-parse.c
:
:I know this is an ugly hack, and fiddling with the sources seldom is a
:good idea, but it got the job done...
:
:There are some additional issues with the Cairo graphics device,
:-pthread as a LDFLAG and some of the tests that configure runs, but I'm
:still working on that. I'll share my findings when I have more concrete
:answers (later today, hopefully).
:
:
:
:On 02/03/12 12:02, Richard Thornton wrote:
: Using OpenBSD 5 on an old sparc 64 sun blade, I am trying to compile R from
: source, downloaded from the cran-r website;
: The ./configure works, but make always fails.  I realize that there is a R
: package available already but it is a 2008 version, and it has terrible
: graphics, anyone have a more recent port for sparc64?
:

-- 
One planet is all you get.



Re: Compiling R from source

2012-02-06 Thread Brad Smith

On 06/02/12 5:08 AM, Peter Hessler wrote:

Including missing headers is completely the correct fix, please submit
the patches to the upstream author.


As long as the patches are right. The hack mentioned below is wrong.
The broken header file in question has been fixed. Update to -current
or what will be 5.1.


On 2012 Feb 06 (Mon) at 10:01:49 + (+), Zi Loff wrote:
:I managed to compile R-2.14.0 and .1 from source on OpenBSD 5.0 (i386).
:
:Make failed because that two of the tre source files require stdint.h
:(for WCHAR_MAX definition) but don't include it. I managed to build R by
:inserting
:#includestdint.h
:on src/extra/tre/tre-compile.c and src/extra/tre/tre-parse.c
:
:I know this is an ugly hack, and fiddling with the sources seldom is a
:good idea, but it got the job done...
:
:There are some additional issues with the Cairo graphics device,
:-pthread as a LDFLAG and some of the tests that configure runs, but I'm
:still working on that. I'll share my findings when I have more concrete
:answers (later today, hopefully).
:
:
:
:On 02/03/12 12:02, Richard Thornton wrote:
:  Using OpenBSD 5 on an old sparc 64 sun blade, I am trying to compile R from
:  source, downloaded from the cran-r website;
:  The ./configure works, but make always fails.  I realize that there is a R
:  package available already but it is a 2008 version, and it has terrible
:  graphics, anyone have a more recent port for sparc64?
:



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: Compiling R from source

2012-02-05 Thread richo
On 03/02/12 07:02 -0500, Richard Thornton wrote:
Using OpenBSD 5 on an old sparc 64 sun blade, I am trying to compile R from
source, downloaded from the cran-r website;
The ./configure works, but make always fails.  I realize that there is a R
package available already but it is a 2008 version, and it has terrible
graphics, anyone have a more recent port for sparc64?


What is the error when make fails? What have you done to solve the issue?

--
richo || Today's excuse:

Root nameservers are out of sync
http://blog.psych0tik.net

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: Compiling R from source

2012-02-05 Thread Stuart Henderson
On 2012-02-05, richo ri...@psych0tik.net wrote:
 On 03/02/12 07:02 -0500, Richard Thornton wrote:
Using OpenBSD 5 on an old sparc 64 sun blade, I am trying to compile R from
source, downloaded from the cran-r website;
The ./configure works, but make always fails.  I realize that there is a R
package available already but it is a 2008 version, and it has terrible
graphics, anyone have a more recent port for sparc64?


 What is the error when make fails? What have you done to solve the issue?

An updated port is being worked on in openbsd-wip on github.



Compiling R from source

2012-02-03 Thread Richard Thornton
Using OpenBSD 5 on an old sparc 64 sun blade, I am trying to compile R from
source, downloaded from the cran-r website;
The ./configure works, but make always fails.  I realize that there is a R
package available already but it is a 2008 version, and it has terrible
graphics, anyone have a more recent port for sparc64?