Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hakkikkt

Pages: [1] 2
1
Angstrom & OpenZaurus / R For Oz/gpe
« on: May 21, 2007, 03:12:45 pm »
Quote
OK, this installs and configures (takes eons) on poodle under current 3.5.4.2-rc0 OZ/GPE, and I set up the symlinks but can't call the executable.  I get

Code: [Select]
-sh:  R:  not found
Thoughts?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161787\"][{POST_SNAPBACK}][/a][/div]

Hoi,
the executable or R resides in /usr/local/bin .
If this directory is not in your PATH you will not be able to execute R. BTW: R is the only program in this folder on my Z ;-)
So either change your PATH, or set a symbolic link from /usr/local/bin/R to /usr/bin/R.
I hope that helps, Georg

2
Zaurus - pdaXrom / R For Pdaxrom?
« 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

3
Zaurus - pdaXrom / R For Pdaxrom?
« 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

4
Zaurus - pdaXrom / R For Pdaxrom?
« 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=

It should be possible to do it in a similar way with pdaxrom too (using qemu for performance/memory reasons ...).
Have fun, Georg

5
Angstrom & OpenZaurus / R For Oz/gpe
« on: November 09, 2006, 09:10:40 am »
Quote
Georg,

Do you have any details of the problems compiling against diet-x11? We'd like to get this fixed (patch R or update diet-x11) so that people don't need to install extra/replacement libs.


Si
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Hoi,
I did not look to deep into the stuff. Compilation of the R x11-library works without problems, if you have libx11-dev installed. When you try to open a x11 window in R it fails without error-messages. It "only" gives a warning about unresolved dependency of "XGetIMValues".  I found something similar here:
[a href=\"https://www.oesf.org/forums/index.php?showtopic=19764&mode=linear]https://www.oesf.org/forums/index.php?showt...764&mode=linear[/url]
and concluded that the "IMV" related things are stripped from the libx11. I did not want to change the R-x11-library, so the easiest way was to work with the full libx11.

It should be possible to find out which additional things should be included to make R working with a stripped libx11. Unfortunately OE does not (yet) work very well on my Suse linux x86_64 box with gcc4, so I took the fast path ;-)

Georg

6
Angstrom & OpenZaurus / R For Oz/gpe
« on: November 08, 2006, 04:08:24 pm »
Hi,
after several tries and with help of lardman I finally managed to compile R.

R is a software package for statistical computing, more information you find here:
http://www.r-project.org

You can download a binary for testing on OZ/GPE 3.4.5.1 here:
http://people.web.psi.ch/kosakowski/R-zaurus/

The ipk contains the basic R binary, the documentation, the reccomended modules and the gstat module. After installation you will have 70MB less space on your Z. Therefore I recommend to install it on SD or CF. ipkg-link does not work for big packages like R (there is an assigned entry in the bugtracker on this topic already). An easy solution is to set an symbolic link from the installation directory to /usr/local like this:
ln -s /media/card/packages/usr/local /usr/local

Unfortunately opening a graphics window will NOT work with the tiny libx11 included in OZ. You may want to replace the small libx11 with the full version. This will need 10MB of additional space on your root system (or on SD / CF). You will find version of libx11 that works with R at the above mentioned place.

If you need additional R-modules, you will have to compile them on your Z (see Dcoumentation on the R-homepage) and therefore need the native-sdk and several additional packages (see http://people.web.psi.ch/kosakowski/R-zaurus/README).

I tested the binary on my C760 and on qemu (with poky/OE), I have no idea if it works on other models ;-)

Happy computing, Georg

7
Angstrom & OpenZaurus / Native Compilation
« on: November 04, 2006, 03:05:53 am »
Quote
Sounds like it's probably a bug.

Can you add it to the bugtracker please (assuming it's not already there of course)? http://bugs.openembedded.org/


[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Adding a bug to the bugtracker does not seem necessary...It seems that the bug was resolved a (short?) while ago. According to here: [a href=\"http://bugs.openembedded.org/show_bug.cgi?id=43]http://bugs.openembedded.org/show_bug.cgi?id=43[/url]
 glibc-2.3.5+cvs20050627-r11 should contain a working libc.so.

Installed on OZ 3.5.4.1 is: libc6 - 2.3.5+cvs20050627-r3 (and the same versions of glibc.


And, building R seems to work now (it takes really long building the base modules;-) I will announce the availability in OZ/GPE once I am finished with compiling and testing.

Thanks for your helpfull suggestions and especially to lardman for his several years of work on this    .

Georg

8
Angstrom & OpenZaurus / Native Compilation
« on: November 03, 2006, 12:21:46 pm »
Quote
Editing of libc.so is NOT needed. You need binutils 2.16 installed - they are provided in upgrades feed.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145492\"][{POST_SNAPBACK}][/a][/div]

I did a "ipkg update; ipkg upgrade" before starting the whole compilation process and I just checked it again, I have binutils 2.16 installed:

# ipkg list_installed binu*
binutils - 2.16-r3 -
binutils-symlinks - 2.16-r3 -

I will file a bug-report later today. Thanks for your help, Georg

9
Angstrom & OpenZaurus / Native Compilation
« on: November 03, 2006, 04:43:55 am »
Hoi again,

I found a way to get it working. The hack is described here:
https://www.oesf.org/forums/index.php?showt...t=&#entry117262

I changed /usr/lib/libc.so as it is described there.

I am only a stupid user, is htis now a bug or a feature?  

Compilation failed now on another point due to a missing package. In any case, I let you know how far I come with building R.
Thanks for your efforts, Georg

10
Angstrom & OpenZaurus / Native Compilation
« on: November 02, 2006, 03:37:47 pm »
Hoi,
I looked at the sources in src/main too. In some of the files I see #include <errno.h> , in others it is missing, although errno is used. I already included errno.h in all the files  where errno is used, but that did not change anything.

In any case, I can reproduce the behaviour with two slightly different setups:

1) my C760 with OZ  3.5.4.1 (gpe) and the native-sdk-toolchain plus the additional packages from lardmans list: http://wiki.openzaurus.org/HowTos/Native_Development
(inlcuding the packages for X11 developement and g77 and libreadline)
I installed everything on my SD-card. For whatever reason (probably I did by mstake not use a "real" root shell, but used root login via su instead) some symboliks links were broken. But it was straightforward to repair them manually.

2) I tried it also with qemu and Poky (see here http://www.o-hand.com/~richard/qemu.html)
Additionally to the sdk already included in the poky image, I installed (everything from the OZ 3.5.4.1 feed):
g++_3.4.4-r5_arm.ipk          
g++-uc_0.1.9-r1_arm.ipk          
libgmp3_4.1.4-r0_arm.ipk        
mpfr-dev_2.1.1-r1_arm.ipk
g77_3.4.4-r5_arm.ipk          
ldd_2.3.5+cvs20050627-r3_arm.ipk  
libgmp-dev_4.1.4-r0_arm.ipk
g77-symlinks_3.4.4-r5_arm.ipk  
libg2c0_3.4.4-r3_arm.ipk          
libreadline4_4.3-r2_arm.ipk
g++-symlinks_3.4.4-r5_arm.ipk  
libg2c-dev_3.4.4-r5_arm.ipk      
libreadline-dev_4.3-r2_arm.ipk

Both systems give exactly the same behaviour, thats why I think the problem is not related to the broken symlinks on my C760.

11
Angstrom & OpenZaurus / Native Compilation
« on: November 01, 2006, 02:49:35 pm »
Hi together,
once or twice a year I try to compile R (www.r-project.org) for my C760. For compilation of R gcc and g77 are needed and later the R-binary is used to compile further modules (which makes it diffult to build with a cross-compiler
My latest attempt was a native compilation based on OZ 3.5.4.1 (gpe) and the native sdk + additional packages as listed in the OZ wiki.
Configuration and compilation was without problems until linking of the main R binary.
Linking failed with the following message:

gcc -Wl,--export-dynamic -L/usr/local/lib -o R.bin Rmain.o CConverters.o CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o apse.o array.o attrib.o base.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o debug.o deparse.o deriv.o dotcode.o dounzip.o dstruct.o duplicate.o engine.o envir.o errors.o eval.o format.o fourier.o gevents.o gram.o gram-ex.o graphics.o identical.o internet.o iosupport.o lapack.o list.o localecharset.o logic.o main.o mapply.o match.o memory.o model.o names.o objects.o optim.o optimize.o options.o par.o paste.o pcre.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o qsort.o random.o regex.o registration.o relop.o rlocale.o saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o unique.o util.o version.o vfonts.o xxxpr.o   ../unix/libunix.a ../appl/libappl.a ../nmath/libnmath.a -L../../lib -lRblas -lg2c -lm -lgcc_s  ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a  -lreadline  -ldl -lm
/lib/ld-linux.so.2: undefined reference to `errno'
collect2: ld returned 1 exit status

At the moment I have no idea if this is related to R or if it is a OZ problem. Did someone encounter a similar problem before?
Many thanks, Georg

12
OpenZaurus/Opie/Qtopia / Using Gcc Directly On The Z
« on: April 08, 2006, 09:32:23 am »
Hoi,
I had  a similar problem with libc6. You should check that you have libc6 installed.
If this is already the case, you should check that libc6.so.6 is in the path ...

Greetings, Georg

13
Zaurus - pdaXrom / R For Pdaxrom?
« 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

14
Zaurus - pdaXrom / R For Pdaxrom?
« 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

15
Zaurus - pdaXrom / R For Pdaxrom?
« 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

Pages: [1] 2