Hello, When building with target architecture "x86_64" and setting an architecture variant as anything other than "x86_64" ie. "haswell" or "broadwell", package "gobject-introspection" fails to build and ends erroring out with messages like: qemu: uncaught target signal 4 (Illegal instruction) - core dumped Illegal instruction (core dumped) Many examples of this error can be found on the buildbot at http://autobuild.buildroot.org/?arch=x86_64&reason=gobject-introspection-1.72.0&step=50&start=0 and checking out endlog data. When building with target architecture "x86_64" and architecture variant "x86_64" it completes correctly. Could it be there is some confusion between host and target for the wrapper commands?
gobject-introspection tries to build some of its code inside a qemu environment. Selecting an "advanced" x86_64 architecture produces some instructions that qemu does not understand. I'm not sure if a -cpu mode flag could be set on qemu to enable those instructions.
from experimenting with an image with cpu flags set to x86_64/slivermont on a i9-9900 machine, setting "-cpu max" for qemu takes advantage of all instructions available to the host processor and would likely fix your issue assuming your host is at least as modern as your target architecture
(In reply to Jonathan Bittner from comment #2) Thank you for the investigation. I think it would work in my case as well building on a R9 5950X targeting i7 broadwell. Which file would I add this "-cpu max" to ?
FYI I have a series bumping gobject-introspection and libglib2 to version 1.74.0, I wonder if that might be helpful here: https://patchwork.ozlabs.org/project/buildroot/list/?series=321845&submitter=&state=*&q=&archive=both&delegate=
Thank you for your report. The issue tracker for the Buildroot project has been moved to the Gitlab.com issue tracker: https://gitlab.com/buildroot.org/buildroot/-/issues We are taking this opportunity to close old issues in this old tracker. If you believe your issue is still relevant, please open one in the new issue tracker. Thank you!