Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
[jw@cn05 kudu]$ thirdparty/build-if-necessary.sh
...
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src -I../include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include/tdep-aarch64 -I. -D_GNU_SOURCE -DNDEBUG -g -O2 -fexceptions -Wall -Wsign-compare -MT dwarf/Gfind_proc_info-lsb.lo -MD -MP -MF dwarf/.deps/Gfind_proc_info-lsb.Tpo -c /home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src/dwarf/Gfind_proc_info-lsb.c -fPIC -DPIC -o dwarf/.libs/Gfind_proc_info-lsb.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src -I../include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include/tdep-aarch64 -I. -D_GNU_SOURCE -DNDEBUG -g -O2 -fexceptions -Wall -Wsign-compare -MT dwarf/Gfind_unwind_table.lo -MD -MP -MF dwarf/.deps/Gfind_unwind_table.Tpo -c /home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src/dwarf/Gfind_unwind_table.c -fPIC -DPIC -o dwarf/Gfind_unwind_table.o >/dev/null 2>&1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src -I../include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include/tdep-aarch64 -I. -D_GNU_SOURCE -DNDEBUG -g -O2 -fexceptions -Wall -Wsign-compare -MT setjmp/siglongjmp.lo -MD -MP -MF setjmp/.deps/siglongjmp.Tpo -c /home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src/setjmp/siglongjmp.c -fPIC -DPIC -o setjmp/.libs/siglongjmp.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src -I../include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include/tdep-aarch64 -I. -D_GNU_SOURCE -DNDEBUG -g -O2 -fexceptions -Wall -Wsign-compare -MT setjmp/longjmp.lo -MD -MP -MF setjmp/.deps/longjmp.Tpo -c /home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src/setjmp/longjmp.c -fPIC -DPIC -o setjmp/.libs/longjmp.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src -I../include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include/tdep-aarch64 -I. -D_GNU_SOURCE -DNDEBUG -g -O2 -fexceptions -Wall -Wsign-compare -MT dwarf/Gfind_proc_info-lsb.lo -MD -MP -MF dwarf/.deps/Gfind_proc_info-lsb.Tpo -c /home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src/dwarf/Gfind_proc_info-lsb.c -fPIC -DPIC -o dwarf/Gfind_proc_info-lsb.o >/dev/null 2>&1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src -I../include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include/tdep-aarch64 -I. -D_GNU_SOURCE -DNDEBUG -g -O2 -fexceptions -Wall -Wsign-compare -MT setjmp/siglongjmp.lo -MD -MP -MF setjmp/.deps/siglongjmp.Tpo -c /home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src/setjmp/siglongjmp.c -fPIC -DPIC -o setjmp/siglongjmp.o >/dev/null 2>&1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src -I../include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include -I/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/include/tdep-aarch64 -I. -D_GNU_SOURCE -DNDEBUG -g -O2 -fexceptions -Wall -Wsign-compare -MT setjmp/longjmp.lo -MD -MP -MF setjmp/.deps/longjmp.Tpo -c /home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src/setjmp/longjmp.c -fPIC -DPIC -o setjmp/longjmp.o >/dev/null 2>&1
libtool: link: rm -fr .libs/libunwind-ptrace.a .libs/libunwind-ptrace.la .libs/libunwind-ptrace.lai .libs/libunwind-ptrace.so .libs/libunwind-ptrace.so.0 .libs/libunwind-ptrace.so.0.0.0
libtool: link: rm -fr .libs/libunwind-coredump.a .libs/libunwind-coredump.la .libs/libunwind-coredump.lai .libs/libunwind-coredump.so .libs/libunwind-coredump.so.0 .libs/libunwind-coredump.so.0.0.0
libtool: link: gcc -shared -fPIC -DPIC ptrace/.libs/_UPT_elf.o ptrace/.libs/_UPT_accessors.o ptrace/.libs/_UPT_access_fpreg.o ptrace/.libs/_UPT_access_mem.o ptrace/.libs/_UPT_access_reg.o ptrace/.libs/_UPT_create.o ptrace/.libs/_UPT_destroy.o ptrace/.libs/_UPT_find_proc_info.o ptrace/.libs/_UPT_get_dyn_info_list_addr.o ptrace/.libs/_UPT_put_unwind_info.o ptrace/.libs/_UPT_get_proc_name.o ptrace/.libs/_UPT_reg_offset.o ptrace/.libs/_UPT_resume.o -g -O2 -Wl,-soname -Wl,libunwind-ptrace.so.0 -o .libs/libunwind-ptrace.so.0.0.0
libtool: link: gcc -shared -fPIC -DPIC coredump/.libs/_UCD_accessors.o coredump/.libs/_UCD_create.o coredump/.libs/_UCD_destroy.o coredump/.libs/_UCD_access_mem.o coredump/.libs/_UCD_elf_map_image.o coredump/.libs/_UCD_find_proc_info.o coredump/.libs/_UCD_get_proc_name.o coredump/.libs/_UPT_elf.o coredump/.libs/_UPT_access_fpreg.o coredump/.libs/_UPT_get_dyn_info_list_addr.o coredump/.libs/_UPT_put_unwind_info.o coredump/.libs/_UPT_resume.o coredump/.libs/_UCD_access_reg_linux.o -g -O2 -nostartfiles -Wl,-soname -Wl,libunwind-coredump.so.0 -o .libs/libunwind-coredump.so.0.0.0
libtool: link: rm -fr .libs/libunwind-elf64.a .libs/libunwind-elf64.la
libtool: link: rm -fr .libs/libunwind-dwarf-common.a .libs/libunwind-dwarf-common.la
libtool: link: ar cru .libs/libunwind-elf64.a .libs/elf64.o
libtool: link: ar cru .libs/libunwind-dwarf-common.a dwarf/.libs/global.o
libtool: link: (cd ".libs" && rm -f "libunwind-ptrace.so.0" && ln -s "libunwind-ptrace.so.0.0.0" "libunwind-ptrace.so.0")
libtool: link: ranlib .libs/libunwind-dwarf-common.a
libtool: link: ranlib .libs/libunwind-elf64.a
libtool: link: (cd ".libs" && rm -f "libunwind-coredump.so.0" && ln -s "libunwind-coredump.so.0.0.0" "libunwind-coredump.so.0")
libtool: link: (cd ".libs" && rm -f "libunwind-ptrace.so" && ln -s "libunwind-ptrace.so.0.0.0" "libunwind-ptrace.so")
libtool: link: (cd ".libs" && rm -f "libunwind-coredump.so" && ln -s "libunwind-coredump.so.0.0.0" "libunwind-coredump.so")
libtool: link: ar cru .libs/libunwind-ptrace.a ptrace/_UPT_elf.o ptrace/_UPT_accessors.o ptrace/_UPT_access_fpreg.o ptrace/_UPT_access_mem.o ptrace/_UPT_access_reg.o ptrace/_UPT_create.o ptrace/_UPT_destroy.o ptrace/_UPT_find_proc_info.o ptrace/_UPT_get_dyn_info_list_addr.o ptrace/_UPT_put_unwind_info.o ptrace/_UPT_get_proc_name.o ptrace/_UPT_reg_offset.o ptrace/_UPT_resume.o
libtool: link: ar cru .libs/libunwind-coredump.a coredump/_UCD_accessors.o coredump/_UCD_create.o coredump/_UCD_destroy.o coredump/_UCD_access_mem.o coredump/_UCD_elf_map_image.o coredump/_UCD_find_proc_info.o coredump/_UCD_get_proc_name.o coredump/_UPT_elf.o coredump/_UPT_access_fpreg.o coredump/_UPT_get_dyn_info_list_addr.o coredump/_UPT_put_unwind_info.o coredump/_UPT_resume.o coredump/_UCD_access_reg_linux.o
libtool: link: ranlib .libs/libunwind-ptrace.a
libtool: link: ranlib .libs/libunwind-coredump.a
libtool: link: ( cd ".libs" && rm -f "libunwind-dwarf-common.la" && ln -s "../libunwind-dwarf-common.la" "libunwind-dwarf-common.la" )
libtool: link: ( cd ".libs" && rm -f "libunwind-elf64.la" && ln -s "../libunwind-elf64.la" "libunwind-elf64.la" )
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -fexceptions -Wall -Wsign-compare -o libunwind-dwarf-local.la dwarf/Lexpr.lo dwarf/Lfde.lo dwarf/Lparser.lo dwarf/Lpe.lo dwarf/Lfind_proc_info-lsb.lo dwarf/Lfind_unwind_table.lo libunwind-dwarf-common.la
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -fexceptions -Wall -Wsign-compare -o libunwind-dwarf-generic.la dwarf/Gexpr.lo dwarf/Gfde.lo dwarf/Gparser.lo dwarf/Gpe.lo dwarf/Gfind_proc_info-lsb.lo dwarf/Gfind_unwind_table.lo libunwind-dwarf-common.la
libtool: link: ( cd ".libs" && rm -f "libunwind-ptrace.la" && ln -s "../libunwind-ptrace.la" "libunwind-ptrace.la" )
libtool: link: ( cd ".libs" && rm -f "libunwind-coredump.la" && ln -s "../libunwind-coredump.la" "libunwind-coredump.la" )
libtool: link: rm -fr .libs/libunwind-dwarf-local.a .libs/libunwind-dwarf-local.la
libtool: link: rm -fr .libs/libunwind-dwarf-generic.a .libs/libunwind-dwarf-generic.la
libtool: link: (cd .libs/libunwind-dwarf-local.lax/libunwind-dwarf-common.a && ar x "/home/jw/apache/kudu/thirdparty/build/libunwind-1.4.0/src/./.libs/libunwind-dwarf-common.a")
libtool: link: (cd .libs/libunwind-dwarf-generic.lax/libunwind-dwarf-common.a && ar x "/home/jw/apache/kudu/thirdparty/build/libunwind-1.4.0/src/./.libs/libunwind-dwarf-common.a")
libtool: link: ar cru .libs/libunwind-dwarf-generic.a dwarf/.libs/Gexpr.o dwarf/.libs/Gfde.o dwarf/.libs/Gparser.o dwarf/.libs/Gpe.o dwarf/.libs/Gfind_proc_info-lsb.o dwarf/.libs/Gfind_unwind_table.o .libs/libunwind-dwarf-generic.lax/libunwind-dwarf-common.a/global.o
libtool: link: ar cru .libs/libunwind-dwarf-local.a dwarf/.libs/Lexpr.o dwarf/.libs/Lfde.o dwarf/.libs/Lparser.o dwarf/.libs/Lpe.o dwarf/.libs/Lfind_proc_info-lsb.o dwarf/.libs/Lfind_unwind_table.o .libs/libunwind-dwarf-local.lax/libunwind-dwarf-common.a/global.o
libtool: link: ranlib .libs/libunwind-dwarf-local.a
libtool: link: ranlib .libs/libunwind-dwarf-generic.a
libtool: link: rm -fr .libs/libunwind-dwarf-local.lax
libtool: link: rm -fr .libs/libunwind-dwarf-generic.lax
libtool: link: ( cd ".libs" && rm -f "libunwind-dwarf-local.la" && ln -s "../libunwind-dwarf-local.la" "libunwind-dwarf-local.la" )
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -fexceptions -Wall -Wsign-compare -XCClinker -nostartfiles -XCClinker -nostdlib -version-info 8:1:0 -o libunwind.la -rpath /home/jw/apache/kudu/thirdparty/installed/uninstrumented/lib os-linux.lo mi/init.lo mi/flush_cache.lo mi/mempool.lo mi/strerror.lo aarch64/is_fpreg.lo aarch64/regname.lo mi/backtrace.lo mi/dyn-cancel.lo mi/dyn-info-list.lo mi/dyn-register.lo mi/Ldyn-extract.lo mi/Lfind_dynamic_proc_info.lo mi/Lget_accessors.lo mi/Lget_proc_info_by_ip.lo mi/Lget_proc_name.lo mi/Lput_dynamic_unwind_info.lo mi/Ldestroy_addr_space.lo mi/Lget_reg.lo mi/Lset_reg.lo mi/Lget_fpreg.lo mi/Lset_fpreg.lo mi/Lset_caching_policy.lo mi/Lset_cache_size.lo aarch64/Lapply_reg_state.lo aarch64/Lreg_states_iterate.lo aarch64/Lcreate_addr_space.lo aarch64/Lget_proc_info.lo aarch64/Lget_save_loc.lo aarch64/Lglobal.lo aarch64/Linit.lo aarch64/Linit_local.lo aarch64/Linit_remote.lo aarch64/Lis_signal_frame.lo aarch64/Lregs.lo aarch64/Lresume.lo aarch64/Lstash_frame.lo aarch64/Lstep.lo aarch64/Ltrace.lo aarch64/getcontext.lo libunwind-dwarf-local.la libunwind-elf64.la -lc -lgcc_s
libtool: link: ( cd ".libs" && rm -f "libunwind-dwarf-generic.la" && ln -s "../libunwind-dwarf-generic.la" "libunwind-dwarf-generic.la" )
libtool: link: gcc shared -fPIC -DPIC .libs/os-linux.o mi/.libs/init.o mi/.libs/flush_cache.o mi/.libs/mempool.o mi/.libs/strerror.o aarch64/.libs/is_fpreg.o aarch64/.libs/regname.o mi/.libs/backtrace.o mi/.libs/dyn-cancel.o mi/.libs/dyn-info-list.o mi/.libs/dyn-register.o mi/.libs/Ldyn-extract.o mi/.libs/Lfind_dynamic_proc_info.o mi/.libs/Lget_accessors.o mi/.libs/Lget_proc_info_by_ip.o mi/.libs/Lget_proc_name.o mi/.libs/Lput_dynamic_unwind_info.o mi/.libs/Ldestroy_addr_space.o mi/.libs/Lget_reg.o mi/.libs/Lset_reg.o mi/.libs/Lget_fpreg.o mi/.libs/Lset_fpreg.o mi/.libs/Lset_caching_policy.o mi/.libs/Lset_cache_size.o aarch64/.libs/Lapply_reg_state.o aarch64/.libs/Lreg_states_iterate.o aarch64/.libs/Lcreate_addr_space.o aarch64/.libs/Lget_proc_info.o aarch64/.libs/Lget_save_loc.o aarch64/.libs/Lglobal.o aarch64/.libs/Linit.o aarch64/.libs/Linit_local.o aarch64/.libs/Linit_remote.o aarch64/.libs/Lis_signal_frame.o aarch64/.libs/Lregs.o aarch64/.libs/Lresume.o aarch64/.libs/Lstash_frame.o aarch64/.libs/Lstep.o aarch64/.libs/Ltrace.o aarch64/.libs/getcontext.o -Wl,whole-archive ./.libs/libunwind-dwarf-local.a ./.libs/libunwind-elf64.a -Wl,-no-whole-archive -lc -lgcc_s -g -O2 -nostartfiles -nostdlib -Wl,-soname -Wl,libunwind.so.8 -o .libs/libunwind.so.8.0.1
/usr/bin/ld: aarch64/.libs/Linit.o:/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src/aarch64/Ginit.c:64: multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:/home/jw/apache/kudu/thirdparty/src/libunwind-1.4.0/src/mi/dyn-info-list.c:28: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:3252: libunwind.la] Error 1
make[2]: Leaving directory '/home/jw/apache/kudu/thirdparty/build/libunwind-1.4.0/src'
make[1]: *** [Makefile:3987: install] Error 2
make[1]: Leaving directory '/home/jw/apache/kudu/thirdparty/build/libunwind-1.4.0/src'
make: *** [Makefile:603: install-recursive] Error 1
[jw@cn05 kudu]$