Bug 2005910 - Undefined reference to __libc_csu_init, __libc_csu_fini on ppc64le
Summary: Undefined reference to __libc_csu_init, __libc_csu_fini on ppc64le
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fpc
Version: rawhide
Hardware: ppc64le
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Joost van der Sluis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-20 13:09 UTC by Artur Frenszek-Iwicki
Modified: 2021-09-29 00:18 UTC (History)
4 users (show)

Fixed In Version: fpc-3.2.2-3.fc36 fpc-3.2.2-3.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-29 00:18:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
FPC build log (279.96 KB, text/plain)
2021-09-20 13:09 UTC, Artur Frenszek-Iwicki
no flags Details
Attempted patch and build log (286.89 KB, text/plain)
2021-09-20 13:21 UTC, Artur Frenszek-Iwicki
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Gitlab freepascal.org/fpc source issues 39295 0 None None None 2021-09-20 13:09:11 UTC

Description Artur Frenszek-Iwicki 2021-09-20 13:09:12 UTC
Created attachment 1824639 [details]
FPC build log

Description of problem:
Trying to compile anything with FPC on ppc64le fails with a linking error.

Version-Release number of selected component:
fpc-3.2.2-1.fc35

How reproducible:
Always

Steps to Reproduce:
1. Try to compile anything

Actual results:
Compilation fails with a linking error (see attached build log).

Expected results:
Compilation is successful.

Additional info:
Related to changes made in glibc between 2.33 and 2.34.
See: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/RLTQ5CJ7F2FAFYVPBZZHVRJK2LZX7D36/

Comment 1 Artur Frenszek-Iwicki 2021-09-20 13:21:12 UTC
Created attachment 1824645 [details]
Attempted patch and build log

Attempted patching FPC as suggested in the original discussion on the devel mailing list.
For this purpose, I went through a process similar to how bootstrapping a new architecture works:
- rebuilt FPC with the patch on x86_64
- used the patched x86_64 FPC to cross-compile a patched ppc64le FPC
- used the patched ppc64le FPC to try and re-build FPC in koji
This unfortunately failed, with a segmentation fault occurring during the build.
For the full patch and the build log, check the attachment.

Comment 3 Fedora Update System 2021-09-21 13:54:24 UTC
FEDORA-2021-032397269f has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-032397269f

Comment 4 Fedora Update System 2021-09-21 18:52:48 UTC
FEDORA-2021-032397269f has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-032397269f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-032397269f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-09-23 16:23:29 UTC
FEDORA-2021-6c20029f5d has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-6c20029f5d

Comment 6 Fedora Update System 2021-09-24 02:52:11 UTC
FEDORA-2021-6c20029f5d has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-6c20029f5d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-6c20029f5d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-09-29 00:18:42 UTC
FEDORA-2021-6c20029f5d has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


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