Sqlite building failure using rtems-source-builder

Jonathan Brandmeyer jbrandmeyer at planetiq.com
Tue Mar 26 14:24:55 UTC 2019


My team hasn't gotten to the stage of actually using SQLite in the
RTEMS environment yet, but it builds just fine.  We don't use
rtems-source-builder to do it.  We are just using the latest stable
amalgamation release, supplied by sqlite.org.  We build it with the
same options that the configure script normally uses to build a .so on
Linux, except that we also specify -DSQLITE_OMIT_LOAD_EXTENSION.  I've
seen some documentation to the effect that rtems actually does support
dlopen/dlsym, but we haven't tried it and we don't need it for our
mission.

If I understand correctly, the only conflicts with RTEMS should be
SQLIte's dependency on mmap.  RTEMS does not provide virtual memory at
all, so mmap and kin are only stub functions that return an error.
The SQLite3 documentation does describe how to configure the
write-ahead log (WAL) in such a way that it should not rely on mmap at
runtime, though.

Hope that helps,
-- 
Jonathan Brandmeyer



More information about the users mailing list