Bug 1593431

Summary: Perf fails to compile with python 3.7
Product: [Fedora] Fedora Reporter: Laura Abbott <labbott>
Component: kernel-toolsAssignee: Laura Abbott <labbott>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jcline, labbott, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-02 18:18:58 UTC Type: Bug
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: 1565020    

Description Laura Abbott 2018-06-20 19:34:06 UTC
Building against python 3.7 produces build errors:

`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of util/scripting-engines/trace-event-python.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4.callchain.h.13.8c91f83d39086e8c5d7606adc7b71cc8]' of util/scripting-engines/trace-event-python.o
`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of util/scripting-engines/trace-event-python.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4.evsel.h.235.b50f4c5779355e4c2ecf20d9278cf898]' of util/scripting-engines/trace-event-python.o
`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of util/scripting-engines/trace-event-python.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4.strlist.h.77.1e9ab09c9ec4a8cf0cf361d5ee90b5ab]' of util/scripting-engines/trace-event-python.o
`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of util/scripting-engines/trace-event-python.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4.intlist.h.3.411e6d350d533916b2b7e7c30f8f8e9c]' of util/scripting-engines/trace-event-python.o
`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of util/scripting-engines/trace-event-python.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4.machine.h.3.3c5e7a8d2eedaef887b781fc1bd4b6e3]' of util/scripting-engines/trace-event-python.o
`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of util/scripting-engines/trace-event-python.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4.regex.h.21.e418023f4d8b056f7c48ced3927d27dd]' of util/scripting-engines/trace-event-python.o
`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of util/scripting-engines/trace-event-python.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4.eventparse.h.37.4e1afecbfe482fd00fd9d336aeed7c9a]' of util/scripting-engines/trace-event-python.o
`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of util/scripting-engines/trace-event-python.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4.parseevents.h.3.1ff97938bcade4f5aabb4a73a913e604]' of util/scripting-engines/trace-event-python.o

Looks like some kind of linking needs to be updated?

Comment 1 Miro Hrončok 2018-06-28 11:07:32 UTC
Any update on this one?

Comment 2 Jeremy Cline 2018-06-29 21:23:14 UTC
The issue turned out to be perf is getting CFLAGS (for a few files) from 'python3-config --cflags' which started including -flto in 3.7. This caused the linker to be unhappy since not everything included link-time optimization (I think). 

I've added a quick patch to fix the issue and built it into the f29-python tag. I'll see about fixing it properly next week.

Comment 3 Miro Hrončok 2018-06-29 21:25:08 UTC
Thank You!

I wonder whether we should remove -flto from the exported cflags.