CMake encountered an error during the configuration process due to a duplicate custom target definition.

12 views
Skip to first unread message

kkXK XXX

unread,
Jun 16, 2025, 11:40:37 AMJun 16
to Dr. Memory Users
  • It tried to create a custom target named generate_asm_utils_x86.asm in the file:

    cpp2asm_support.cmake:439
  • However, a target with the same name already exists, previously defined in:
  • drmemory/dynamorio/ext/drsyscall
  • CMake does not allow two targets with the same name, even across different directories.

  • This is related to CMake policy CMP0002, which states that all target names must be globally unique.

  • 微信截图_20250616150248.png

Derek Bruening

unread,
Jun 16, 2025, 11:49:49 AMJun 16
to drmemor...@googlegroups.com
This is due to drsyscall having been moved to dynamorio but not yet removed from drmemory: https://github.com/DynamoRIO/dynamorio/issues/7303

--

---
You received this message because you are subscribed to the Google Groups "Dr. Memory Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drmemory-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/drmemory-users/074edd8a-b72a-4376-90f5-d0972f122a26n%40googlegroups.com.

Derek Bruening

unread,
Jun 16, 2025, 3:46:05 PMJun 16
to drmemor...@googlegroups.com
However, https://github.com/DynamoRIO/drmemory/pull/2554 renamed the drsyscall inside drmemory to drmf_drsyscall, so there should be no configuration issue. Are you using the latest source version?
Reply all
Reply to author
Forward
0 new messages