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?
Any update on this one?
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.
Thank You! I wonder whether we should remove -flto from the exported cflags.