I am trying to compile SQLite with 32bit MUSL, but probably mess some compiler options.
The command I am using is: musl-gcc -O3 -shared -fno-stack-protector -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MAX_EXPR_DEPTH=0 -DSQLITE_OMIT_DEPRECATED -D SQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_FTS5 -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_GET_TABLE -DSQLITE_OMIT_UTF16 -DSQLITE_THREADSAFE=1 ./sqlite3.c -o ./libsqlite3.so The code compiles without errors. The problem is that the code is compiled with SSE instructions, but in runtime crashes on reads and writes to unaligned memory addresses. In most cases the crashes are random, but mostly in sqlite3_prepare_v2 function; So, the question, how to make sqlite to compile with properly aligned variables in order to not crash. Is there some option about this (my gcc and generally C/C++ skills are pretty low) or I somehow messed the options elsewhere. Then what to check? -- John Found <johnfo...@asm32.info> _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users