On 10/3/26 3:20 PM, Dave Young wrote:
5. below chunk is not for supporting x86_64 on arm64, please separate it in another
patch:
if ((target_data.initial_gdb_target == ARM64) &&
(target_data.target != ARM64)) {
- if (target_data.target == X86_64)
+ if ((target_data.target == X86_64) &&
+ (target_data.host == X86_64))
target_data.target = ARM64;
else
arch_mismatch(sp);
without it, would be wrong gdb arch and wrong build after native arm64 build, so it
directly related
$ make target=x86_64 lzo snappy zstd
TARGET: ARM64
CRASH: 9.0.3++
GDB: 16.2
gcc -c -g -DARM64 -DLZO -DSNAPPY -DZSTD -DGDB_16_2 build_data.c
gcc -c -g -DARM64 -DLZO -DSNAPPY -DZSTD -DGDB_16_2 diskdump.c
ar -rs crashlib.a main.o tools.o global_data.o memory.o filesys.o help.o task.o
build_data.o kernel.o test.o gdb_interface.o net.o dev.o bpf.o printk.o alpha.o x86.o
ppc.o ia64.o s390.o s390x.o s390dbf.o ppc64.o x86_64.o arm.o arm64.o mips.o mips64.o
riscv64.o loongarch64.o sparc64.o extensions.o remote.o va_server.o va_server_v1.o
symbols.o cmdline.o lkcd_common.o lkcd_v1.o lkcd_v2_v3.o lkcd_v5.o lkcd_v7.o
lkcd_v8.o lkcd_fix_mem.o s390_dump.o netdump.o diskdump.o makedumpfile.o xendump.o
lkcd_x86_trace.o unwind_v1.o unwind_v2.o unwind_v3.o unwind_x86_32_64.o unwind_arm.o
xen_hyper.o xen_hyper_command.o xen_hyper_global_data.o xen_hyper_dump_tables.o kvmdump.o
qemu.o qemu-load.o sadump.o ipcs.o ramdump.o vmware_vmss.o vmware_guestdump.o xen_dom0.o
kaslr_helper.o sbitmap.o maple_tree.o lzorle_decompress.o
make[4]: warning: Clock skew detected. Your build may be incomplete.
CXXLD gdb
instead of
$make target=x86_64 lzo snappy zstd
The initial build in this source tree was for the ARM64 architecture.
In order to build a crash binary for the X86_64 architecture:
1. remove the gdb-16.2 subdirectory
2. perform a "make clean"
3. retry the build
make: *** [Makefile:306: all] Error 1