[Lazarus] Cross Compile for arm-linux

Florian Klaempfl florian at freepascal.org
Sat Dec 5 11:11:33 CET 2009


Kjow schrieb:
> 2009/12/4 Henry Vermaak <henry.vermaak at gmail.com>:
>> This will give you the binutils for your architecture and that's
>> probably not what you want.  You need to cross compile the binutils
>> first, so you need to make distclean in your binutils directory, then
>> ./configure --target=arm-linux.  You probably also want to use
>> --prefix to control where the files get installed (I think /usr/local
>> is the default).
> 
> Ok, thank you!
> I tried to do:
> 
> make distclean
> ./configure --target=arm-linux
> make
> 
> but I get some errors:
> 
> ~/arm/binutils$ make
> make[1]: Entering directory `/home/kjow/arm/binutils'
> Configuring in ./intl
> configure: loading cache ./config.cache
> configure: error: `target_alias' has changed since the previous run:
> configure:   former value:  `i686-pc-linux-gnu'
> configure:   current value: `arm-linux'
> configure: error: in `/home/kjow/arm/binutils/intl':
> configure: error: changes in the environment can compromise the build
> configure: error: run `make distclean' and/or `rm ./config.cache' and start over
> make[1]: *** [configure-intl] Error 1
> make[1]: Leaving directory `/home/kjow/arm/binutils'
> make: *** [all] Error 2

The makefiles of GNU binutils are broken: if you compile for another
target, distclean is not enough, just delete the whole binutils source
dir and unpack it again.




More information about the Lazarus mailing list