FPC 3.0 needs armhf support

Request a package to be made here. Make sure you have searched before requesting.

FPC 3.0 needs armhf support

Postby nxshock » Thu Feb 25, 2016 5:05 pm

Hi there!

Looks like FPC must be build with armhf support for arm7 platform.
Quote from http://wiki.freepascal.org/ARM_compiler_options:
$this->bbcode_second_pass_quote('', 'C')urrent (FPC 2.6.x/2.7.x) compilers (and RTL PPUs etc) are built for just one ABI and cannot output other ABIs once built - e.g. adding -dFPC_ARMHF when compiling a program will not change anything


So, when I try to build any Pascal Program, I get this message:
$this->bbcode_second_pass_code('', 'Free Pascal Compiler version 3.0.0 [2016/01/09] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for ARMEL
')

Looks like FPC build with ARMEL ABI, not ARMHF ABI.

P.S. sorry for my english, im russian.
nxshock
 
Posts: 12
Joined: Thu Feb 25, 2016 4:55 pm

Re: FPC 3.0 needs armhf support

Postby WarheadsSE » Thu Feb 25, 2016 7:21 pm

What is the result of the binaries? Are they the correct ABI?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: FPC 3.0 needs armhf support

Postby nxshock » Fri Feb 26, 2016 5:46 am

$this->bbcode_second_pass_quote('WarheadsSE', 'W')hat is the result of the binaries? Are they the correct ABI?


readelf -h says (even if i build my apps with ARMHF flags):
$this->bbcode_second_pass_code('', 'Flags: ..., Version5 EABI, soft-float ABI')

But for ARMHF flags must be:
$this->bbcode_second_pass_code('', 'Flags: ..., Version5 EABI, hard-float ABI')

I think FPC must build with -dFPC_ARMHF flag for building ARMHF binaries. Quote from http://wiki.freepascal.org/FPC_New_Features_3.0#Support_for_the_armhf_EABI:
$this->bbcode_second_pass_quote('', 'M')ore information: To bootstrap a compiler with armhf support, the compiler must be compiled with -dFPC_ARMHF. An armhf compiler compiling itself will automatically create a new armhf compiler.
nxshock
 
Posts: 12
Joined: Thu Feb 25, 2016 4:55 pm
Top

Re: FPC 3.0 needs armhf support

Postby WarheadsSE » Fri Feb 26, 2016 1:44 pm

Yes, I read your first post and the article you linked.

Since the wording is slightly round-about, I wanted to confirm with you what the output binaries appeared as.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: FPC 3.0 needs armhf support

Postby nxshock » Fri Feb 26, 2016 2:05 pm

I just got fpc 3.0.0-1.1 package. As new fpc reported, now fpc must build binaries for ARMHF EABI.
fpc -is reports the same.

But resulting binaries still has "soft-float ABI" header.

I reported an upstream bug there: http://bugs.freepascal.org/view.php?id=29734.

Thank you for fast response.
nxshock
 
Posts: 12
Joined: Thu Feb 25, 2016 4:55 pm


Return to Package Requests

Who is online

Users browsing this forum: No registered users and 7 guests