hi all,

        i've just discovered that the bug is there when compiling with the LLVM 
compiler 1.6, which comes as a standard compiler with the iOS SDK, and is the 
direction that Apple is moving towards.

        the problem is NOT there when compiling with GCC 4.2.

        the problem is NOT there when compiling with LLVM GCC 4.2, which is 
described as "GCC 4.2 front-end with LLVM code generator".

        so for the moment we are going to try going ahead with the LLVM GCC 4.2 
path.

        but there is something down in the parser code that LLVM doesn't like, 
even though it doesn't come up with a warning or error.  we found earlier that 
when compiling with LLVM, there were issues with the following statement:

        rc = sqlite3PagerSetPagesize(pBt->pPager, &pBt->pageSize);

        in the function SQLITE_PRIVATE int sqlite3BtreeOpen.

        &pBt->pageSize was a null value when entering the function it was 
passed to.  we ended up simply doing:

        u16 *pPageSize = &(pBt->pageSize);  
        rc = sqlite3PagerSetPagesize(pBt->pPager, pPageSize );

        so there are some issues with the LLVM compiler.

        will post again when i see what works, and what path we are going.  

        it would obviously be nice to find out where in the sqlite code this is 
happening, but we just don't have the time to devote to that, unfortunately.

        mickm
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to