Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1491788 - fpc: needs bootstrap for armhfp
Summary: fpc: needs bootstrap for armhfp
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: fpc
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Joost van der Sluis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1485628 1491974
TreeView+ depends on / blocked
 
Reported: 2017-09-14 16:34 UTC by Mattia Verga
Modified: 2018-03-02 13:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-02 13:04:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 992285 0 unspecified CLOSED fpc: Needs to be boot-strapped for ARM 2022-05-16 11:32:56 UTC

Internal Links: 992285

Description Mattia Verga 2017-09-14 16:34:39 UTC
FPC (and Lazarus) needs to be rebuilt to use the new dynamic linker path on armhfp. The latest build attempts made by mass rebuild failed.

See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/TEG3LZU4BVUO2AS47O2ZBML3RFDAVOK6/

Comment 1 Florian Weimer 2017-09-14 17:25:18 UTC
rawhide currently fails during chroot setup due to an unrelated texlive issue.

Comment 2 Florian Weimer 2017-09-14 17:53:06 UTC
Apparently, FPC_ARMHF is not set during build:

{$ifdef arm}
{$ifdef FPC_ARMHF}
  const defdynlinker='/lib/ld-linux-armhf.so.3';
{$else FPC_ARMHF}
{$ifdef FPC_ARMEL}
  const defdynlinker='/lib/ld-linux.so.3';
{$else FPC_ARMEL}
  const defdynlinker='/lib/ld-linux.so.2';
{$endif FPC_ARMEL}
{$endif FPC_ARMHF}
{$endif arm}

This is from fpcsrc/compiler/systems/t_linux.pas.  We get FPC_ARMEL instead, it seems.

Comment 3 Florian Weimer 2017-09-14 19:14:15 UTC
The compiler currently produces softfloat binaries, which is not what we want.  We simply forgot to switch it from EABI to EABIHF.

I asked for help on the arm list:

https://lists.fedoraproject.org/archives/list/arm@lists.fedoraproject.org/message/BYAONKJ76O5N4DG3RJHA72FD7UBBC7SY/

We might not need a full bootstrap.  Switching around compiler options may be enough.

Comment 4 Florian Weimer 2017-09-15 10:39:41 UTC
I reverted the glibc change on the F27 branch, so some form of bootstrapping is only needed for rawhide (where we could revert it temporarily, too, if it helps with bootstrapping).

Comment 5 Richard Shaw 2017-10-24 13:54:45 UTC
I still get:

lazbuild --ws=gtk2 --pcp=/tmp/.lazarus src/cqrlog.lpi
make: lazbuild: Command not found

When trying to build cqrlog. Is there something I need to do or is the problem still with fpc/lazarus?

Comment 6 Fedora End Of Life 2018-02-20 15:37:34 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 7 Richard Shaw 2018-03-02 13:04:34 UTC
I have been able to build cqrlog in Branched F28 and Rawhide. Still waiting for fpc 3.0.4 and lazarus 1.8 to find their way into F26 & 27 before I can do builds there.


Note You need to log in before you can comment on or make changes to this bug.