Bug 1593431 - Perf fails to compile with python 3.7
Summary: Perf fails to compile with python 3.7
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel-tools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Laura Abbott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON37
TreeView+ depends on / blocked
 
Reported: 2018-06-20 19:34 UTC by Laura Abbott
Modified: 2018-07-02 18:18 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-07-02 18:18:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1596874 0 unspecified CLOSED python3.7-config --cflags contains -flto 2021-02-22 00:41:40 UTC

Internal Links: 1596874

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.


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