[fpc-pascal] Is it just me or... trunk cross compile failure on arm-linux

Reinier Olislagers reinierolislagers at gmail.com
Thu Jan 9 11:24:39 CET 2014


On 08/01/2014 20:38, Florian Klämpfl wrote:
> Reinier Olislagers <reinierolislagers at gmail.com> schrieb:
>> On 08/01/2014 18:01, Pierre Free Pascal wrote:
>>>> -----Message d'origine-----
>>>> De : fpc-pascal-bounces at lists.freepascal.org [mailto:fpc-pascal-
>>>> bounces at lists.freepascal.org] De la part de Reinier Olislagers
>>>> Envoyé : mercredi 8 janvier 2014 17:05
>>>> À : FPC Mailing list
>>>> Objet : Re: [fpc-pascal] Is it just me or... trunk cross compile
>>>> failure on arm-linux
>>>>
>>>> On 08/01/2014 16:40, Pierre Free Pascal wrote:
>>>>> -CaEABI fails for me,
>>>>> now the correct option dis -CaEABIHF
>>>> Mmm, interesting. Seems opposite on trunk. -CaEABI works; -CaEABIHF
>>>> fails (I'm using current trunk as a starting compiler)
>>>
>>>  Sorry, in fact, you need to compile the cross-compiler with
>> -dFPC_ARMHF for
>>> this...
>>> without this only -CaEABI works indeed...
>>
>> Yes, I'm passing -dFPC_ARMHF in crossopt; see my original mail.
> 
> This is wrong. You have to pass FPC_ARMHF when the ARM compiler is built because armhf is considered as separate architecture. - Cparmv6 must be passed to  CROSSOPT though. Nothing else is needed except when you have some strange setup. 

Ah, thanks a lot - that helps!
Now passing
--fpcopt=-fPIC -dFPC_ARMHF
--crossopt=-CpARMV6 -CaEABIHF -CfVFPV2
with trunk compiler as a bootstrap compiler works nicely


Thanks again,
Reinier




More information about the fpc-pascal mailing list