1

I am trying to cross-compile GridDB. The configuration command I used is:

./configure --target=arm-buildroot-linux-gnueabihf --host=arm-buildroot-linux-gnueabihf --build=x86_64-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix= --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no --disable-dependency-tracking --enable-ipv6 --disable-nls --disable-static --enable-shared

However, after a while, the terminal outputs the following error:

./../3rd_party/sqlite_mod/build/work/libsqlite3.a: error adding symbols: File format not recognized

Upon checking the configure script of sqlite_mod in the work folder, I found that the Makefile generated by build.sh contains the following:

TCC = gcc -I. -I../../src -I../../gs_ext ...

I suspect that TCC should be set to the cross-compiler (arm-buildroot-linux-gnueabihf-gcc) like other Makefiles in GridDB. I modified TCC accordingly, but the cross-compilation still fails.

Shams
  • 111
  • 2

0 Answers0