Created attachment 1365066 [details] Minimal reproducer - Patch of mariadb.spec on top of add7d9cf1ac commit When used "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" compiler option, MariaDB FTBFS. Event | Plugins PLUGIN_FINISH_UNIT | Generate final annotations PLUGIN_START_UNIT | Generate global annotations PLUGIN_ALL_PASSES_END | Generate per-function annotations lto1: internal compiler error: Segmentation fault --- This issue apperas only in part of TokuDB storage engine, which is only available on x86_64 arch. I was able to prepeare minimal reproducer SPECfile (note, that normally, MariaDB can take hours to compile and hours to run self tests, so this one onli takes tow or three minutes). I basically call Cmake to prepare and test everything, then 'cd' to the directory where the issue appears and make only that directory (~30 files?) The reproducer is meand as patch of 'mariadb' SPECfile on top of add7d9cf1ac64708c2111c2b8fe068c656f9b56b commit. Note the "exit 5" command at the end of the patch, that kills the build anyway, if it won't end on internal compiler error. When following line un-commented, the issue won't appear. #CFLAGS=`echo $CFLAGS| sed -e "s|-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1||g" ` --- Well, this one took me several days to trace. I was not amused ... :D
Sample build log: https://koji.fedoraproject.org/koji/getfile?taskID=23575677&volume=DEFAULT&name=build.log
@Michael: I am not sure why I am on needinfo? Is there any information you need from me ?
@Jan: Sorry, I meant Florian. I looked at the #1502660 bug picking Reporter instead of Asignee, my bad.
Hi Michal, I am sorry that the plugin has caused you so much grief. The problem is the LTO process which can run the compiler without an output file attached. The annobin plugin was not expecting this, and just assumed that the file was there. I have checked in a patch to the annobin plugin which fixes this behaviour, so please try re-enabling the redhat-annobin-cc1 spec file and see if compilation now works for you. Cheers Nick
Hi, thanks Compilation sucessful: https://koji.fedoraproject.org/koji/getfile?taskID=23641086&volume=DEFAULT&name=build.log I pushed the removal of the workaround to the Rawhide and bumped release as commit 1b8fb85b0fa3aed4703b0012f798cd52cfdc693b. I'm not gonna rebuild MariaDB yet, from what I understood, Annobin isn't critical or highly important for the package. However, it will be present in any later releases. I'm glad it was resolved that fast :)
*** Bug 1524737 has been marked as a duplicate of this bug. ***