gdb: fix build with x32
PATCH 1/1 gdb: fix build with x32
When compiling gdb for x32, it fails with errors:
|../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c: In function 'const target_desc* get_ipa_tdesc(int)': |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:184:10: error: 'X86_TDESC_AVX512' was not declared in this scope | case X86_TDESC_AVX512: | ^~~~~~~~~~~~~~~~ |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:184:10: note: suggested alternative: 'X86_TDESC_AVX' | case X86_TDESC_AVX512: | ^~~~~~~~~~~~~~~~ | X86_TDESC_AVX |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:185:14: error: 'tdesc_x32_avx512_linux' was not declared in this scope | return tdesc_x32_avx512_linux; | ^~~~~~~~~~~~~~~~~~~~~~ |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:185:14: note: suggested alternative: 'tdesc_x32_avx_linux' | return tdesc_x32_avx512_linux; | ^~~~~~~~~~~~~~~~~~~~~~ | tdesc_x32_avx_linux |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c: In function 'void initialize_low_tracepoint()': |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:282:3: error: 'init_registers_x32_avx512_linux' was not declared in this scope | init_registers_x32_avx512_linux (); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:282:3: note: suggested alternative: 'init_registers_x32_avx_linux' | init_registers_x32_avx512_linux (); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | init_registers_x32_avx_linux
Fixes [YOCTO #12120]
Signed-off-by Anuj Mittal <[email protected]>
--- meta/recipes-devtools/gdb/gdb-8.0.inc | 1 + .../gdb/0012-Unbreak-GDBserver-build-for-x32.patch | 101 +++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
meta/recipes-devtools/gdb/gdb-8.0.inc +1 -0
@@ -16,6 +16,7 @@ SRC_URI = "http://ftp.gnu.org/gnu/gdb/gdb-${PV}.tar.xz \ file://0009-Change-order-of-CFLAGS.patch \ file://0010-resolve-restrict-keyword-conflict.patch \ file://package_devel_gdb_patches_120-sigprocmask-invalid-call.patch \ + file://0012-Unbreak-GDBserver-build-for-x32.patch \ " SRC_URI[md5sum] = "c3d35cd949084be53b92cc1e03485f88" SRC_URI[sha256sum] = "f6a24ffe4917e67014ef9273eb8b547cb96a13e5ca74895b06d683b391f3f4ee"
meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch new file +101 -0
101 lines not on this page · raw message
Signature · 1 line
2.7.4
Quoted 1 line · Anuj Mittal
When compiling gdb for x32, it fails with errors:
Sorry, I merged a gdb minor version change and this no longer applies. Was the patch included in gdb 8.0.1 or do we still need this patch? If so could you rebase please?
Cheers,
Richard
PATCH v2 1/1 gdb: fix build with x32
In reply to Anuj MittalWhen compiling gdb for x32, it fails with errors:
|../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c: In function 'const target_desc* get_ipa_tdesc(int)': |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:184:10: error: 'X86_TDESC_AVX512' was not declared in this scope | case X86_TDESC_AVX512: | ^~~~~~~~~~~~~~~~ |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:184:10: note: suggested alternative: 'X86_TDESC_AVX' | case X86_TDESC_AVX512: | ^~~~~~~~~~~~~~~~ | X86_TDESC_AVX |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:185:14: error: 'tdesc_x32_avx512_linux' was not declared in this scope | return tdesc_x32_avx512_linux; | ^~~~~~~~~~~~~~~~~~~~~~ |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:185:14: note: suggested alternative: 'tdesc_x32_avx_linux' | return tdesc_x32_avx512_linux; | ^~~~~~~~~~~~~~~~~~~~~~ | tdesc_x32_avx_linux |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c: In function 'void initialize_low_tracepoint()': |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:282:3: error: 'init_registers_x32_avx512_linux' was not declared in this scope | init_registers_x32_avx512_linux (); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |../../../gdb-8.0/gdb/gdbserver/linux-amd64-ipa.c:282:3: note: suggested alternative: 'init_registers_x32_avx_linux' | init_registers_x32_avx512_linux (); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | init_registers_x32_avx_linux
Fixes [YOCTO #12120]
Signed-off-by Anuj Mittal <[email protected]>
--- meta/recipes-devtools/gdb/gdb-8.0.1.inc | 1 + .../gdb/0012-Unbreak-GDBserver-build-for-x32.patch | 101 +++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
meta/recipes-devtools/gdb/gdb-8.0.1.inc +1 -0
@@ -16,6 +16,7 @@ SRC_URI = "http://ftp.gnu.org/gnu/gdb/gdb-${PV}.tar.xz \ file://0009-Change-order-of-CFLAGS.patch \ file://0010-resolve-restrict-keyword-conflict.patch \ file://package_devel_gdb_patches_120-sigprocmask-invalid-call.patch \ + file://0012-Unbreak-GDBserver-build-for-x32.patch \ " SRC_URI[md5sum] = "48cac527e6f3018b865ece021e9723ac" SRC_URI[sha256sum] = "3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3"
meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch new file +101 -0
101 lines not on this page · raw message
Signature · 1 line
2.7.4