On Thu, 23 Jun 2005, Robert P. J. Day wrote:
>
> hi, i'm running fedora core 3 and i need some help cross-compiling
>sqlite-3.2.2 for the PPC platform. i have the cross-compiler
>toolchain ELDK-3.1.1 installed and, like i've done with other
>packages, i ran the following:
>
> $ ../sqlite-3.2.2/configure --host=ppc-linux-gnu \
> CC=ppc_8xx-gcc
>
>the tail end of the output is:
>
>Version set to 3.2
>Release set to 3.2.2
>Version number set to 3002002
>checking for ppc-linux-gnu-gcc... (cached) ppc_8xx-gcc
>checking whether we are using the GNU C compiler... (cached) yes
>checking whether ppc_8xx-gcc accepts -g... (cached) yes
>checking for ppc_8xx-gcc option to accept ANSI C... (cached) none
>needed
>configure: error: unable to find a compiler for building build tools
>
>
> um ... what appears to be the problem here? certainly, i have the
>entire gnu development suite installed, and i've used this incantation
>to cross-compile other packages, like expat.
SQLite requires a parser generator called lemon, which is bundled with the
sources. This has to be compiled and run on the build machine, and cannot
be cross compiled. Try setting BUILD_CC to the host native compiler.
Alternatively, use the Makefile.linux-gcc template used by DRH, and change
the variables in there.
>
> thoughts?
>
>rday
>
--
/"\
\ / ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
X - AGAINST MS ATTACHMENTS
/ \