crash
crash copied to clipboard
Makefile:254: recipe for target 'gdb_merge' failed
I download the crash files from: https://crash-utility.github.io/
$ tar -xf crash-7.3.2.tar.gz
$ cd crash-7.3.2
$ make target=ARM64
then,errors as following:
.o probe.o common-utils.o buffer.o ptid.o gdb-dlfcn.o common-agent.o format.o registry.o btrace.o record-btrace.o inflow.o init.o
../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -ldl -lncurses -lz -lm ../libiberty/libiberty.a build-gnulib/import/libgnu.a -lz -ldl -rdynamic
c-exp.o: In function main': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/c-exp.c:1: multiple definition of
main'
../../crashlib.a(main.o):/home/dongyue.hao/crash_tools/8.1/crash-7.3.2/main.c:80: first defined here
cp-name-parser.o: In function main': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-name-parser.c:1: multiple definition of
main'
../../crashlib.a(main.o):/home/dongyue.hao/crash_tools/8.1/crash-7.3.2/main.c:1979: first defined here
ada-exp.o: In function main': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/ada-exp.c:1: multiple definition of
main'
../../crashlib.a(main.o):/home/dongyue.hao/crash_tools/8.1/crash-7.3.2/main.c:1979: first defined here
f-exp.o: In function main': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/f-exp.c:1: multiple definition of
main'
../../crashlib.a(main.o):/home/dongyue.hao/crash_tools/8.1/crash-7.3.2/main.c:1979: first defined here
p-exp.o: In function main': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/p-exp.c:1: multiple definition of
main'
../../crashlib.a(main.o):/home/dongyue.hao/crash_tools/8.1/crash-7.3.2/main.c:1979: first defined here
go-exp.o: In function parse_string_or_char': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/go-exp.y:943: undefined reference to
c_parse_escape'
macroexp.o: In function get_string_literal': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/macroexp.c:418: undefined reference to
c_parse_escape'
macroexp.o: In function get_character_constant': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/macroexp.c:364: undefined reference to
c_parse_escape'
ada-lang.o: In function parse': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/ada-lang.c:12703: undefined reference to
ada_parse'
ada-lang.o:(.rodata+0x1b90): undefined reference to ada_error' c-lang.o:(.rodata+0x28): undefined reference to
c_parse'
c-lang.o:(.rodata+0x30): undefined reference to c_error' c-lang.o:(.rodata+0x148): undefined reference to
c_parse'
c-lang.o:(.rodata+0x150): undefined reference to c_error' c-lang.o:(.rodata+0x268): undefined reference to
c_parse'
c-lang.o:(.rodata+0x270): undefined reference to c_error' c-lang.o:(.rodata+0x388): undefined reference to
c_parse'
c-lang.o:(.rodata+0x390): undefined reference to c_error' d-lang.o:(.rodata+0x1e8): undefined reference to
c_parse'
d-lang.o:(.rodata+0x1f0): undefined reference to c_error' f-lang.o:(.rodata+0x28): undefined reference to
f_parse'
f-lang.o:(.rodata+0x30): undefined reference to f_error' objc-lang.o:(.rodata+0xe8): undefined reference to
c_parse'
objc-lang.o:(.rodata+0xf0): undefined reference to c_error' opencl-lang.o:(.rodata+0x308): undefined reference to
c_parse'
opencl-lang.o:(.rodata+0x310): undefined reference to c_error' p-lang.o:(.rodata+0x28): undefined reference to
pascal_parse'
p-lang.o:(.rodata+0x30): undefined reference to pascal_error' cp-support.o: In function
mangled_name_to_comp':
/home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:644: undefined reference to cp_demangled_name_to_comp' /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:629: undefined reference to
cp_new_demangle_parse_info'
cp-support.o: In function cp_canonicalize_string_full': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:534: undefined reference to
cp_demangled_name_to_comp'
/home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:541: undefined reference to cp_comp_to_string' /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:545: undefined reference to
cp_demangled_name_parse_free'
cp-support.o: In function inspect_type': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:260: undefined reference to
cp_demangled_name_to_comp'
/home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:264: undefined reference to cp_merge_demangle_parse_infos' cp-support.o: In function
replace_typedefs':
/home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:441: undefined reference to cp_comp_to_string' cp-support.o: In function
replace_typedefs_qualified_name':
/home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:368: undefined reference to cp_comp_to_string' /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:343: undefined reference to
cp_comp_to_string'
cp-support.o: In function cp_canonicalize_string': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:582: undefined reference to
cp_demangled_name_to_comp'
/home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:587: undefined reference to cp_comp_to_string' /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:588: undefined reference to
cp_demangled_name_parse_free'
cp-support.o: In function cp_class_name_from_physname': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:743: undefined reference to
cp_demangled_name_parse_free'
/home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:738: undefined reference to cp_comp_to_string' cp-support.o: In function
method_name_from_physname':
/home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:826: undefined reference to cp_comp_to_string' /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:830: undefined reference to
cp_demangled_name_parse_free'
cp-support.o: In function cp_func_name': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:847: undefined reference to
cp_demangled_name_to_comp'
/home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:855: undefined reference to cp_comp_to_string' /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:857: undefined reference to
cp_demangled_name_parse_free'
cp-support.o: In function cp_remove_params': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:876: undefined reference to
cp_demangled_name_to_comp'
/home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:903: undefined reference to cp_demangled_name_parse_free' /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:901: undefined reference to
cp_comp_to_string'
cp-support.o: In function do_demangled_name_parse_free_cleanup': /home9/dongyue.hao/crash_tools/8.1/crash-7.3.2/gdb-7.6/gdb/cp-support.c:108: undefined reference to
cp_demangled_name_parse_free'
collect2: error: ld returned 1 exit status
Makefile:1174: recipe for target 'gdb' failed
make[3]: *** [gdb] Error 1
Makefile:269: recipe for target 'rebuild' failed
make[2]: *** [rebuild] Error 2
Makefile:254: recipe for target 'gdb_merge' failed
make[1]: *** [gdb_merge] Error 2
Makefile:249: recipe for target 'all' failed
make: *** [all] Error 2
crash-7.3.2$ vim README
Not reproducible at my environment. Can you please look into what is wrong on your environment?
@k-hagio hi, i was faced with similar error, looks like
TARGET: X86_64
CRASH: 8.0.0
GDB: 10.2
make[5]: Nothing to be done for 'all'.
make[5]: Nothing to be done for 'all'.
crash build failed
Makefile:234: recipe for target 'gdb_merge' failed
make[1]: *** [gdb_merge] Error 1
Makefile:229: recipe for target 'all' failed
make: *** [all] Error 2
kernel and distribution infos:
4.19.0-0.bpo.19-amd64 #1 SMP Debian 4.19.232-1~deb9u1 (2022-03-08) x86_64 GNU/Linux
debian 9
Is there any error that indicates the cause?
Debian has its crash, is there any helpful information for build? For example, https://packages.debian.org/en/sid/crash -> crash_8.0.0-1.dsc
Build-Depends: debhelper (>= 13), dpkg-dev (>= 1.16.1), quilt (>= 0.47), binutils, binutils-dev, bison, gawk, flex, zlib1g-dev, libncurses5-dev, liblzo2-dev, libsnappy-dev, libzstd-dev, texinfo
@Davidrjx I also got the same error. solution:make without -jx example: make target=X86_64 ---- build ok make target=X86_64 -j16 ---- build fail
make target=X86_64 -j16 ---- build fail
fwiw, the make -j
option was supported at crash-8.0.1.
@Davidrjx I also got the same error. solution:make without -jx example: make target=X86_64 ---- build ok make target=X86_64 -j16 ---- build fail
very nice
Hi, I met the same question too. The arch is ARM64: root@ft:~/kdump/crash# make target=ARM64 TARGET: ARM64 CRASH: 8.0.3++ GDB: 10.2
make[3]: *** No targets specified and no makefile found. Stop. make[2]: *** [Makefile:274: rebuild] Error 2 make[1]: *** [Makefile:262: gdb_merge] Error 2 make: *** [Makefile:254: all] Error 2
Maybe it only happen on ARM arch? My os is ubuntu, kernel version is 5.15.0, gdb 9.2
Thank you !