Hello everyone,

My aim is to build SQLite for a mips, little endian target

I have downloaded the 
<http://www.sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz>sqlite-amalgamation-3.6.23.1.tar.gz
 
from the SQLite download page.
I am using the Code Sourcery gcc 4.3.2  toolchain for mips.

I have toolchain in my path and i gave the following commands :

host> ./configure --prefix=/usr/local/sqlite --host=mips-linux-gnu
host> make
host> make install

It was successful.

But when i do a :
host> file /usr/local/sqlite/bin/sqlite3

It gives :

/usr/local/sqlite/bin/sqlite3: ELF 32-bit MSB executable, MIPS, MIPS64 
version 1, for GNU/Linux 2.6.12, dynamically linked (uses shared libs), 
for GNU/Linux 2.6.12, not stripped

It is giving ELF-32 MSB(The correct form should be ELF-32 LSB)

So, I added -EL to the line CC=mips-linux-gnu-gcc in the generated Makefile

That ended up with an error

first three lines of the error log :

" 
/home/sdk/mips-4.3/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld:
 
.libs/sqlite3.o: compiled for a little endian system and target is big 
endian
/home/sdk/mips-4.3/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld:
 
.libs/sqlite3.o: endianness incompatible with that of the selected emulation
/home/sdk/mips-4.3/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld:
 
failed to merge target specific data of file .libs/sqlite3.o"

I even tried giving -EL in the CFLAGS option in the Makefile.
I got the same error message.

Where am i making the mistake?
Please help.

<http://www.sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz>
-- /

Regards,
SEN
///


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

Reply via email to