Nov 1 2006, 11:49 AM
Post
#1
|
|
![]() Group: Members Posts: 21 Joined: 15-April 04 From: Brugg, Schweiz Member No.: 2,858 |
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 |
|
|
|
![]() |
Nov 8 2006, 07:22 AM
Post
#2
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
One (random) point to note.
The need to pass ac_cv_c_bigendian=yes to configure is related to the fact that the current OZ soft-float implementation, fpa, keeps all fp numbers in bigendian format in memory. Therefore R needs to be told this. I do wonder what this will do when writing to files as R will think it's on a bigendian system. The same is true of Octave, but it automatically checks the endianness (iirc), again by looking at an fp number, so the same problem will probably manifest itself. This will be sorted out when we move to Angstrom as eabi uses vfp, which keeps fp numbers in the same endianness as the processor. Si |
|
|
|
Nov 30 2007, 12:26 AM
Post
#3
|
|
|
Group: Members Posts: 500 Joined: 17-January 04 From: St. Louis, USA Member No.: 1,478 |
|
|
|
|
Hakkikkt Native Compilation Nov 1 2006, 11:49 AM
lardman Does this error mean that the declaration of errno... Nov 2 2006, 02:39 AM
Hakkikkt Hoi,
I looked at the sources in src/main too. In s... Nov 2 2006, 12:37 PM
Hakkikkt Hoi again,
I found a way to get it working. The h... Nov 3 2006, 01:43 AM
Meanie QUOTE(Hakkikkt @ Nov 3 2006, 07:43 PM)Hoi aga... Nov 3 2006, 02:32 AM
lardman Sounds like it's probably a bug.
Can you add ... Nov 3 2006, 02:20 AM
Hakkikkt QUOTE(lardman @ Nov 3 2006, 02:20 AM)Sounds l... Nov 4 2006, 12:05 AM
Hrw Editing of libc.so is NOT needed. You need binutil... Nov 3 2006, 03:43 AM
Hakkikkt QUOTE(Hrw @ Nov 3 2006, 03:43 AM)Editing of l... Nov 3 2006, 09:21 AM
lardman Glad you've got it sorted out
Si Nov 6 2006, 06:07 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 20th May 2013 - 01:27 AM |