[ipxe-devel] [RFC] [gdb] fix compilation error with gcc 9.2

Christian Ehrhardt christian.ehrhardt at canonical.com
Wed Sep 11 07:15:36 UTC 2019


On Tue, Sep 10, 2019 at 12:10 PM Christian Ehrhardt
<christian.ehrhardt at canonical.com> wrote:
>
> When building the x86_64 gdbidt with newer gcc it fails recognizing
> the segment registers FS/GS being too short for pushq/popq.
>   arch/x86_64/core/gdbidt.S:109: Error: operand type mismatch for `push'
>   arch/x86_64/core/gdbidt.S:110: Error: operand type mismatch for `push'
>   arch/x86_64/core/gdbidt.S:161: Error: operand type mismatch for `pop'
>   arch/x86_64/core/gdbidt.S:162: Error: operand type mismatch for `pop'
>

FYI the following seem to be the easiest steps to trigger the issue:

git clone git://git.ipxe.org/ipxe.git
cd ipxe/src
make veryclean
make V=1 bin-x86_64-efi/ipxe.efi

Much easier than changing config headers I'd think.
And it reliably triggers above issue for me.



More information about the ipxe-devel mailing list