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

Summary: mono: FTBFS in Fedora rawhide/f33
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: monoAssignee: Jeff Law <law>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: chkr, dan, hannsj_uhl, itamar, john.j5live, lxtnow, mailinglists, rhughes, rstrode, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-15 04:17:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1071880, 1803234    

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 :)