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 1863685 - mono: FTBFS in Fedora rawhide/f33
Summary: mono: FTBFS in Fedora rawhide/f33
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mono
Version: 33
Hardware: ppc64le
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Law
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PPCTracker F33FTBFS
TreeView+ depends on / blocked
 
Reported: 2020-08-03 17:11 UTC by Fedora Release Engineering
Modified: 2020-08-15 04:17 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-15 04:17:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fedora Release Engineering 2020-08-03 17:11:58 UTC
mono failed to build from source in Fedora rawhide/f33

https://koji.fedoraproject.org/koji/taskinfo?taskID=47963830


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Please fix mono at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
mono will be orphaned. Before branching of Fedora 34,
mono will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://fedoraproject.org/wiki/Fails_to_build_from_source

Comment 1 Timotheus Pokorra 2020-08-10 04:49:01 UTC
only ppc64le is failing now, with this error:

/tmp/cc8MKcf4.s: Assembler messages:
/tmp/cc8MKcf4.s:1239: Error: can't resolve `.toc1' {.toc1 section} - `.LCTOC1' {*UND* section}
/tmp/cc8MKcf4.s:1245: Error: can't resolve `.toc1' {.toc1 section} - `.LCTOC1' {*UND* section}
/tmp/cc8MKcf4.s:1291: Error: can't resolve `.toc1' {.toc1 section} - `.LCTOC1' {*UND* section}

on the Internet, I can find this hint:

https://gcc.gnu.org/legacy-ml/gcc/2017-08/msg00111.html
"Maybe you want to
#define USE_TM_CLONE_REGISTRY 0
for your subtarget?"

Comment 2 Dan Horák 2020-08-10 06:42:23 UTC
Have you tried building it with LTO disabled?

Comment 3 Timotheus Pokorra 2020-08-11 11:39:26 UTC
Thanks for the hint!

I inserted now:

+%ifarch ppc64le
+# workaround for LTO being enabled by default
+%define _lto_cflags %{nil}
+%endif

into the mono.spec file, and the scratch build worked fine: https://koji.fedoraproject.org/koji/taskinfo?taskID=49072756

Assigning to Jeff Law, perhaps you want to have a look? Thanks!

Comment 4 Ben Cotton 2020-08-11 14:05:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 5 Jeff Law 2020-08-11 15:21:52 UTC
Sure.  I'd looked at mono yesterday and marked it as potentially LTO related.  I tried a scratch build with LTO disabled last night, but still had the PPC failure.  At least I thought I did.  But it was a long long day and I could have missed something.  I'll take another look today.

THanks,
Jeff

Comment 6 Timotheus Pokorra 2020-08-15 04:17:48 UTC
Thank you, that worked :)


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