Cross compiling for ARM board

Daniel. danielhilst at gmail.com
Sun Jul 8 21:15:39 UTC 2018


Try make distclean, a better option is building from another folder!

Em qui, 5 de jul de 2018 16:07, Simon Friedberger <simon.jul2018 at a-oben.org>
escreveu:

> Turns out I was pretty close. The following works
>
> export CROSS_COMPILE=arm-linux-gnueabihf-
> export ARCH=arm
> export CC=${CROSS_COMPILE}gcc
> # I think gmp only needs the last line but the other two are standard in
> my cross compile environment
>
> ./configure --build=haswell-pc-linux-gnu --host=armcortexa7-linux-gnueabihf
>
>
> The problem was actually that make clean doesn't remove things like
> fib_table.h which had been generated for 64 bit during a previous attempt.
>
>
>
>
> On 2018-07-05 18:04, Torbjörn Granlund wrote:
> > Simon Friedberger <simon.jul2018 at a-oben.org> writes:
> >
> >   Well, apparently I missed something vital but yes, I did. :)
> >
> > You need to set up a cross compiler (and cross assembler, linker,
> > include files, libraries).
> >
> > Then you need to tell GMP about them (CC=blah, etc).
> >
> > And you need to pass any flags to the compiler which are consistent
> > with the CPU (sub-)type you asked GMP to use.
> >
>
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss
>


More information about the gmp-discuss mailing list