alexhude / FRIEND

Flexible Register/Instruction Extender aNd Documentation
545 stars 70 forks source link

Build failure with IDA 7.2 #22

Closed RobertBuhren closed 3 years ago

RobertBuhren commented 5 years ago

Build fails on IDA 7.2 ( Version 7.2.181105 Linux x86_64 (32-bit address size))

Build log:

[  3%] Creating directories for 'pugixml'
[  6%] Performing download step (git clone) for 'pugixml'
-- Avoiding repeated git clone, stamp file is up to date: '/home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/src/pugixml-stamp/pugixml-gitclone-lastrun.txt'
[ 10%] No patch step for 'pugixml'
[ 13%] Performing update step for 'pugixml'
Current branch master is up to date.
[ 16%] Performing configure step for 'pugixml'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/src/pugixml-build
[ 20%] Performing build step for 'pugixml'
[100%] Built target pugixml
[ 23%] Performing install step for 'pugixml'
[100%] Built target pugixml
Install the project...
-- Install configuration: ""
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/lib64/libpugixml.a
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/include/pugixml.hpp
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/include/pugiconfig.hpp
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/lib64/cmake/pugixml/pugixml-config.cmake
-- Installing: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/lib64/cmake/pugixml/pugixml-config-noconfig.cmake
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/lib64/pkgconfig/pugixml.pc
[ 26%] Completed 'pugixml'
[ 26%] Built target pugixml
[ 30%] Creating directories for 'capstone'
[ 33%] Performing download step (git clone) for 'capstone'
-- Avoiding repeated git clone, stamp file is up to date: '/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone-stamp/capstone-gitclone-lastrun.txt'
[ 36%] Performing patch step for 'capstone'
HEAD is now at 4948fd1 PPC: print 16bit imm as unsigned
[ 40%] Performing update step for 'capstone'
Current branch master is up to date.
[ 43%] Performing configure step for 'capstone'
CMake Deprecation Warning at CMakeLists.txt:18 (cmake_policy):
  The OLD behavior for policy CMP0048 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

Enabling CAPSTONE_ARM_SUPPORT
Enabling CAPSTONE_ARM64_SUPPORT
Enabling CAPSTONE_M68K_SUPPORT
Enabling CAPSTONE_TMS320C64X_SUPPORT
Enabling CAPSTONE_M680X_SUPPORT
Enabling CAPSTONE_EVM_SUPPORT
-- Configuring done
-- Generating done
-- Build files have been written to: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone-build
[ 46%] Performing build step for 'capstone'
Scanning dependencies of target capstone-static
[  3%] Building C object CMakeFiles/capstone-static.dir/arch/AArch64/AArch64InstPrinter.c.o
[  6%] Building C object CMakeFiles/capstone-static.dir/arch/AArch64/AArch64Module.c.o
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c: In function ‘AArch64_reg_name_ex’:
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:42:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
    regName = A64NamedImmMapper_toString(&A64PState_PStateMapper, value, &valid);
            ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:49:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64AT_ATMapper, value, &valid);
              ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:54:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64DC_DCMapper, value, &valid);
              ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:59:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64IC_ICMapper, value, &valid);
              ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:64:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64TLBI_TLBIMapper, value, &valid);
              ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:75:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64ISB_ISBMapper, value, &valid);
              ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:81:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64DB_DBarrierMapper, value, &valid);
              ^
[ 10%] Linking C static library libcapstone.a
[100%] Built target capstone-static
[ 50%] Performing install step for 'capstone'
[100%] Built target capstone-static
Install the project...
-- Install configuration: ""
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/arm64.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/arm.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/capstone.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/evm.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/mips.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/ppc.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/x86.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/sparc.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/systemz.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/xcore.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/m68k.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/tms320c64x.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/m680x.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/platform.h
-- Installing: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/lib64/libcapstone.a
[ 53%] Completed 'capstone'
[ 53%] Built target capstone
[ 56%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/AArch64Extender.cpp.o
[ 60%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/AArch32Extender.cpp.o
[ 63%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/Documentation.cpp.o
[ 66%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/FRIEND.cpp.o
/home/robert/repo/ida_plugings/FRIEND/FRIEND/FRIEND.cpp:41:46: warning: multi-character character constant [-Wmultichar]
 static const uint32_t kPluginNode_Instance = 'objn';
                                              ^~~~~~
/home/robert/repo/ida_plugings/FRIEND/FRIEND/FRIEND.cpp:42:46: warning: multi-character character constant [-Wmultichar]
 static const uint32_t kPluginNode_Settings = 'setn';
                                              ^~~~~~
[ 70%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/FunctionSummary.cpp.o
[ 73%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/Settings.cpp.o
/home/robert/repo/ida_plugings/FRIEND/FRIEND/Settings.cpp:64:49: warning: multi-character character constant [-Wmultichar]
 const ItemTag kSettingsBlobHeaderTag  = ItemTag('frnd');
                                                 ^~~~~~
make[2]: *** No rule to make target '../idasdk/plugins/plugin.script', needed by 'FRIEND64.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:74: CMakeFiles/FRIEND64.so.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
[  3%] Creating directories for 'pugixml'
[  6%] Performing download step (git clone) for 'pugixml'
-- Avoiding repeated git clone, stamp file is up to date: '/home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/src/pugixml-stamp/pugixml-gitclone-lastrun.txt'
[ 10%] No patch step for 'pugixml'
[ 13%] Performing update step for 'pugixml'
Current branch master is up to date.
[ 16%] Performing configure step for 'pugixml'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/src/pugixml-build
[ 20%] Performing build step for 'pugixml'
[100%] Built target pugixml
[ 23%] Performing install step for 'pugixml'
[100%] Built target pugixml
Install the project...
-- Install configuration: ""
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/lib64/libpugixml.a
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/include/pugixml.hpp
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/include/pugiconfig.hpp
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/lib64/cmake/pugixml/pugixml-config.cmake
-- Installing: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/lib64/cmake/pugixml/pugixml-config-noconfig.cmake
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/pugixml/lib64/pkgconfig/pugixml.pc
[ 26%] Completed 'pugixml'
[ 26%] Built target pugixml
[ 30%] Creating directories for 'capstone'
[ 33%] Performing download step (git clone) for 'capstone'
-- Avoiding repeated git clone, stamp file is up to date: '/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone-stamp/capstone-gitclone-lastrun.txt'
[ 36%] Performing patch step for 'capstone'
HEAD is now at 4948fd1 PPC: print 16bit imm as unsigned
[ 40%] Performing update step for 'capstone'
Current branch master is up to date.
[ 43%] Performing configure step for 'capstone'
CMake Deprecation Warning at CMakeLists.txt:18 (cmake_policy):
  The OLD behavior for policy CMP0048 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

Enabling CAPSTONE_ARM_SUPPORT
Enabling CAPSTONE_ARM64_SUPPORT
Enabling CAPSTONE_M68K_SUPPORT
Enabling CAPSTONE_TMS320C64X_SUPPORT
Enabling CAPSTONE_M680X_SUPPORT
Enabling CAPSTONE_EVM_SUPPORT
-- Configuring done
-- Generating done
-- Build files have been written to: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone-build
[ 46%] Performing build step for 'capstone'
Scanning dependencies of target capstone-static
[  3%] Building C object CMakeFiles/capstone-static.dir/arch/AArch64/AArch64InstPrinter.c.o
[  6%] Building C object CMakeFiles/capstone-static.dir/arch/AArch64/AArch64Module.c.o
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c: In function ‘AArch64_reg_name_ex’:
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:42:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
    regName = A64NamedImmMapper_toString(&A64PState_PStateMapper, value, &valid);
            ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:49:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64AT_ATMapper, value, &valid);
              ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:54:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64DC_DCMapper, value, &valid);
              ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:59:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64IC_ICMapper, value, &valid);
              ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:64:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64TLBI_TLBIMapper, value, &valid);
              ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:75:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64ISB_ISBMapper, value, &valid);
              ^
/home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/src/capstone/arch/AArch64/AArch64Module.c:81:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
      regName = A64NamedImmMapper_toString(&A64DB_DBarrierMapper, value, &valid);
              ^
[ 10%] Linking C static library libcapstone.a
[100%] Built target capstone-static
[ 50%] Performing install step for 'capstone'
[100%] Built target capstone-static
Install the project...
-- Install configuration: ""
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/arm64.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/arm.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/capstone.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/evm.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/mips.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/ppc.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/x86.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/sparc.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/systemz.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/xcore.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/m68k.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/tms320c64x.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/m680x.h
-- Up-to-date: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/include/capstone/platform.h
-- Installing: /home/robert/repo/ida_plugings/FRIEND/_build/third_party/capstone/lib64/libcapstone.a
[ 53%] Completed 'capstone'
[ 53%] Built target capstone
[ 56%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/AArch64Extender.cpp.o
[ 60%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/AArch32Extender.cpp.o
[ 63%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/Documentation.cpp.o
[ 66%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/FRIEND.cpp.o
/home/robert/repo/ida_plugings/FRIEND/FRIEND/FRIEND.cpp:41:46: warning: multi-character character constant [-Wmultichar]
 static const uint32_t kPluginNode_Instance = 'objn';
                                              ^~~~~~
/home/robert/repo/ida_plugings/FRIEND/FRIEND/FRIEND.cpp:42:46: warning: multi-character character constant [-Wmultichar]
 static const uint32_t kPluginNode_Settings = 'setn';
                                              ^~~~~~
[ 70%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/FunctionSummary.cpp.o
[ 73%] Building CXX object CMakeFiles/FRIEND64.so.dir/FRIEND/Settings.cpp.o
/home/robert/repo/ida_plugings/FRIEND/FRIEND/Settings.cpp:64:49: warning: multi-character character constant [-Wmultichar]
 const ItemTag kSettingsBlobHeaderTag  = ItemTag('frnd');
                                                 ^~~~~~
make[2]: *** No rule to make target '../idasdk/plugins/plugin.script', needed by 'FRIEND64.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:74: CMakeFiles/FRIEND64.so.dir/all] Error 2
make: *** [Makefile:84: all] Error 2