[elephant-devel] "file is not of required architecture"

Leslie P. Polzer sky at viridian-project.de
Fri Nov 13 10:02:28 UTC 2009


Sebastian Tennant wrote:
> Quoth Sebastian Tennant <sebyte at smolny.plus.com>:
>> Now let's see if I can get elephant's bdb store working on my Mac.
>
> Well, I'm a lot closer, but still not quite there yet.
>
> I compiled a 64-bit BerkeleyDB but now I get a 'Berkeley DB error #22: Invalid
> argument' error message when I try to (open-store ...):
>
>  bash-3.2$ cat elephant_fail.txt | grep -v '^\;\|^$'
>  Attempting to load libmemutil.dylib...
>  Loaded /Users/admin/cl/clbuild/source/elephant/src/memutil/libmemutil.dylib
>  /Users/admin/cl/clbuild/source/elephant/src/db-bdb/libberkeley-db.c: In function
> ‘lisp_compare2’:
>  /Users/admin/cl/clbuild/source/elephant/src/db-bdb/libberkeley-db.c:1061: warning:
> unused variable ‘i’
>  /Users/admin/cl/clbuild/source/elephant/src/db-bdb/libberkeley-db.c: In function
> ‘lisp_compare_key2’:
>  /Users/admin/cl/clbuild/source/elephant/src/db-bdb/libberkeley-db.c:1155: warning:
> unused variable ‘i’
>  Loading /usr/local/BerkeleyDB.4.7/lib/libdb-4.7.dylib
>  Attempting to load libberkeley-db.dylib...
>  Loaded /Users/admin/cl/clbuild/source/elephant/src/db-bdb/libberkeley-db.dylib
>  STYLE-WARNING: Implicitly creating new generic function START-DEADLOCK-DETECTOR.
>  STYLE-WARNING: Implicitly creating new generic function STOP-DEADLOCK-DETECTOR.
>  STYLE-WARNING: Implicitly creating new generic function CHECKPOINT.
>  STYLE-WARNING: Implicitly creating new generic function BUILD-BTREE-INDEX.
>  STYLE-WARNING: Implicitly creating new generic function POPULATE.
>
>  Berkeley DB error #22: Invalid argument
>     [Condition of type BDB-DB-ERROR]
>
> Any help/tips/pointers very much appreciated.

Try again after removing libmemutil.so (thus causing Elephant to rebuild it).

Also check whether BDB now works correctly on your system. It should, but
let's make sure:

  http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/build_unix_test.html

  Leslie





More information about the elephant-devel mailing list