← Back to team overview

cuneiform team mailing list archive

Re: [PATCH] non-x86 CPU

 

Hi,

On Sat, Sep 6, 2008 at 2:32 PM, Alex Samorukov <samm@xxxxxxxxxxx> wrote:
> René Rebe wrote:
>>
>> Hi all,
>>
>> the attached patch allows compiling cuneiform on non-x86 platforms,
>> however PUMA_Init fails, AFAICS reading some data file and probably some
>> sanity checks failing due missing portable data file reads (such as
>> endianess swaps).
>>
>
> Are you sure that you specified CF_DATADIR correctly?
>
> And yes, many parts of code are x86 depended.

Yes, CF_DATADIR should be right, as the same way to build/install
works on my amd64 machine,... and it reads data files, but init still
fails:

...
open("/usr/share/cuneiform/rec6all.dat", O_RDONLY) = 3
read(3, " 0  rec6.dat\r\n 1  rec6grm.dat\r\n "..., 4096) = 473
open("/usr/share/cuneiform/rec6.dat", O_RDONLY) = 4
read(4, "57\r\n\'A\266\216\267\217\265\307\222BC\200DE\220\322\323\324FGHI\330\327\336\326JK"...,
4096) = 182

PUMA_Init failed.

However, this was just a first quick test, I'll first continue my PDF
work before I go back and fix more non-x86 memory and file access, ...



References