Bug 15356

Summary: package gobject-introspection-1.72.0 fails to build
Product: buildroot Reporter: hydrosaure
Component: OtherAssignee: unassigned
Status: RESOLVED MOVED    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description hydrosaure 2023-02-25 16:30:48 UTC
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?
Comment 1 Jonathan Bittner 2023-03-13 16:04:53 UTC
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.
Comment 2 Jonathan Bittner 2023-03-28 21:13:49 UTC
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
Comment 3 hydrosaure 2023-03-31 15:51:56 UTC
(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 ?
Comment 4 James Hilliard 2023-03-31 18:35:05 UTC
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=
Comment 5 Yann E. MORIN 2024-06-15 15:06:09 UTC
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!