OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: DReymann on December 21, 2005, 02:24:49 pm

Title: R For Pdaxrom?
Post by: DReymann on December 21, 2005, 02:24:49 pm
Hello,

I just definitely switched to pdaxrom. The last program I am missing is the statistic package R. On cacko-Rom it was running quite nice. If I take the binaries from cacko Rom first I get the undefined __udivsi3 errror. After issuing export LD_PRELOAD=/lib/libgcc_s.so I get rid of this message but inside R I get an error:

Error in NaN:NaN argument
Error in attach(NULL, name = "Autoloads") :
        attach: pos must be an integer


Does anybody have a working R for pdaxrom or does have a hint?
I do not find anything on the web  

Thanks in advance

Detlev
Title: R For Pdaxrom?
Post by: jcabrer on December 21, 2005, 03:04:49 pm
I'll compile it for you.  Looks like it will take a while to download here...

If the final IPK is small enough, I'll post it here.
Title: R For Pdaxrom?
Post by: DReymann on December 22, 2005, 04:36:52 pm
Quote
I'll compile it for you.  Looks like it will take a while to download here...
That is a real christmas gift. Thanks a lot in advance.
Quote
If the final IPK is small enough, I'll post it here.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107972\"][{POST_SNAPBACK}][/a][/div]

Because I am starting a week of holidays this night, you don't have to hurry.

Detlev
 
Title: R For Pdaxrom?
Post by: Hakkikkt on December 26, 2005, 07:08:53 am
Hoi,
a working recent version of R would be quite nice.
I tried to compile the latest version today, but failed already during ./configure with problems related to crosscompiling gcc/g77 stuff   . I may have another look at the problem next week.
Have fun, Georg
Title: R For Pdaxrom?
Post by: DReymann on January 09, 2006, 03:18:29 pm
Quote
I'll compile it for you.  Looks like it will take a while to download here...

If the final IPK is small enough, I'll post it here.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107972\"][{POST_SNAPBACK}][/a][/div]

Hi,
any news?

Btw. I could provide webspace to host the ipk if available.

Detlev
Title: R For Pdaxrom?
Post by: Hakkikkt on January 10, 2006, 09:51:29 am
Hoi,
I tried (without success) to cross-compile R. Unfortunately this is not straightforward, because the compiled R binary is used during compiling (of course that does not work with an arm-binary on X86). Lardman tried the same for openembedded (already a while ago), but he was also not successfull until now.  
I might try a native build, but I have to get a working native fortran compiler first.

Have fun, Georg
Title: R For Pdaxrom?
Post by: lardman on January 10, 2006, 10:29:37 am
My build for openembedded produced the binary, however I didn't get round to hacking the build system to make the packages (which are required to do just about anything) or the docs.

http://people.bath.ac.uk/enpsgp/Zaurus/r_in_oe/ (http://people.bath.ac.uk/enpsgp/Zaurus/r_in_oe/)


Si
Title: R For Pdaxrom?
Post by: Hakkikkt on January 10, 2006, 01:20:08 pm
Thanks lardman.
I see you were nearly successfull.
At the moment I try to get a native fortran compiler. I might try a native build and hope that solves the problem with the packages...
have fun, Georg
Title: R For Pdaxrom?
Post by: radiochickenwax on January 21, 2007, 03:33:54 pm
Up unitl lately, I've been using the debian-arm versions, and those are too slow for regular use.  I mostly want to port a bunch of MATLAB programs to R or Octave or both.

Any news on this?  No one's compiled  g77 natively for pdaXrom yet?  It would be really nice to update the entire gcc suite.  Has anyone managed to do this yet?  Any tips?  I'd really like more up to date versions of R and octave.
Title: R For Pdaxrom?
Post by: kkazakov13 on January 22, 2007, 04:32:35 am
This requires F77 or F2C to compile ... any idea from where to get them?
Title: R For Pdaxrom?
Post by: Hakkikkt on January 22, 2007, 06:22:58 am
Hoi,
I have R (and additional packages like gstat) running under Opie/Gpe. See here:
https://www.oesf.org/forums/index.php?showtopic=21938&hl= (https://www.oesf.org/forums/index.php?showtopic=21938&hl=)

It should be possible to do it in a similar way with pdaxrom too (using qemu for performance/memory reasons ...).
Have fun, Georg
Title: R For Pdaxrom?
Post by: radiochickenwax on January 22, 2007, 03:52:10 pm
Quote
This requires F77 or F2C to compile ... any idea from where to get them?

I compiled "F2C" from http://www.netlib.org/f2c/ (http://www.netlib.org/f2c/).  It's pretty awkward to use (and build), but it seems to work.

G77 should be a reasonable replacement for F77.  There's supposedly a version bundled with the cross-sdk, but I can't figure out how to use it yet.  I've tried to cross-compile the whole GCC suite (which would include G77 by default,) but it seems to fail upon certain assembly routines.  

I ran out of memory today, but I'll try again with F2C.
Title: R For Pdaxrom?
Post by: lardman on January 22, 2007, 05:58:39 pm
Building with f2c always used to fail for me, eventually I had to find/build a cross toolchain with f77/g77.

With that said, I've not got round to doing anything more on it (there is/was a segfault in the f77/g77 compiler iirc).

I must have another go now that I have broadband  (late starter  )


Si
Title: R For Pdaxrom?
Post by: Hakkikkt on January 23, 2007, 08:10:59 am
I used the g77 version in the native version (native sdk kit) about a year ago. Compiling simple fortran code worked, but I had trouble linking mixed fortran/c objects (which was necessary for R).
It may be easier to do a native compilation of a recent gcc version and use that version ....

Georg
Title: R For Pdaxrom?
Post by: radiochickenwax on January 25, 2007, 09:08:03 pm
Quote
Posted Jan 23 2007, 01:10 PM
     I used the g77 version in the native version (native sdk kit) about a year ago.


Which version of the native sdk was this?  Is it still available?  I've been trying to rebuild gcc3.4.5, but I'm having lots of problems doing so.
Title: R For Pdaxrom?
Post by: Hakkikkt on January 28, 2007, 03:43:59 am
Quote
Which version of the native sdk was this?  Is it still available?  I've been trying to rebuild gcc3.4.5, but I'm having lots of problems doing so.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152475\"][{POST_SNAPBACK}][/a][/div]

Sorry, but I really do not remember which version(s) I tried.
The problems with the native sdk and the success in compiling R let me move to opie/gpe, although I find pdaxrom superior in terms of "usability".  

Bis denne, Georg
Title: R For Pdaxrom?
Post by: radiochickenwax on January 28, 2007, 02:16:41 pm
I found out  that G77 is in the x86 cross compiler. (3.4.5) available in the feed directory at ibliblio (link) (http://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/1.1.0beta1/Zaurus-7x0-860/) I'm currently testing a local build of octave-2.1.73 with this.  If it seems useable, I'll post it in the new packages thread (https://www.oesf.org/forums/index.php?showtopic=18415).    I'll try compiling R soon.  Still trying to rebuild a native sdk with G77, but it's slow progress.