try this ./configure --host=mips-linux-gnu CFLAGS=-EL CXXFLAGS=-EL LDFLAGS=-EL CPPFLAGS=-EL ASFLAGS=-EL CC="mips-linux-gnu-gcc -EL"
it will work! Navaneeth Sen B wrote: > > Is there any helping suggestions on this topic..?? > > Regards, > Sen > > * > *//// > > > On 4/5/2010 3:04 PM, Navaneeth Sen B wrote: >> 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 >> >> > > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > -- View this message in context: http://old.nabble.com/Problem-in-cross-compiling-sqlite-for-MIPS-Little-endian-target-tp28138377p32455822.html Sent from the SQLite mailing list archive at Nabble.com. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users