bkryza / clang-uml

Customizable automatic UML diagram generator for C++ based on Clang.
Apache License 2.0
616 stars 44 forks source link

MacOS Runtime Error: trace trap clang-uml --help #270

Closed iAbadia closed 3 months ago

iAbadia commented 6 months ago

Hi, I've just built clang-uml from source on Sonoma 14.5 using brew's clang 18 and I'm getting a trace trap when running the built binary

Clang version

$ /opt/homebrew/opt/llvm/bin/clang++ --version
Homebrew clang version 18.1.5
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin

Trace trap error

$ ./clang-uml --help    
[1]    25282 trace trap  ./clang-uml --help

Build log

$ export CXX=/opt/homebrew/opt/llvm/bin/clang++
$ export CC=/opt/homebrew/opt/llvm/bin/clang
$ CMAKE_PREFIX=/opt/homebrew/opt/llvm/lib/cmake/llvm make release 
cmake -S . -B release \
                -G"Unix Makefiles" \
                -DGIT_VERSION=0.5.2-1-gee3ae34 \
                -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
                -DCMAKE_BUILD_TYPE=Release \
                -DCMAKE_CXX_FLAGS="" \
                -DCMAKE_EXE_LINKER_FLAGS="" \
                -DLLVM_VERSION= \
                -DLLVM_CONFIG_PATH= \
                -DLINK_LLVM_SHARED=ON \
                -DCMAKE_PREFIX=/opt/homebrew/opt/llvm/lib/cmake/llvm \
                -DENABLE_CUDA_TEST_CASES=OFF \
                -DENABLE_CXX_MODULES_TEST_CASES=OFF
-- clang-uml version: 0.5.2-1-gee3ae34
-- Checking for LLVM and Clang...
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/lib/libffi.tbd
-- Looking for histedit.h
-- Looking for histedit.h - found
-- Found LibEdit: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include (found version "2.11")
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/lib/libcurses.tbd
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/lib/libz.tbd (found version "1.2.12")
-- Found zstd: /opt/homebrew/lib/libzstd.dylib
-- Found LibXml2: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/lib/libxml2.tbd (found version "2.9.4")
-- Linker detection: Apple
-- Found LLVM 18.1.5
-- Using LLVMConfig.cmake from: /opt/homebrew/opt/llvm/lib/cmake/llvm
-- LLVM library dir: /opt/homebrew/opt/llvm/lib
-- Found LibTooling libraries: clang-cpp;LLVM
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Checking for yaml-cpp...
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2")
-- Checking for module 'yaml-cpp'
--   Found yaml-cpp, version 0.8.0
-- Found yaml-cpp libraries: yaml-cpp
-- Disabling C++ modules test cases
-- Disabling CUDA test cases
-- Enabling C++20 test cases
-- Configuring done (6.1s)
-- Generating done (1.8s)
-- Build files have been written to: MY_FOLDER/clang-uml/release
cmake --build release -j8
gmake[1]: Entering directory 'MY_FOLDER/clang-uml/release'
[  1%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/generators/mermaid/class_diagram_generator.cc.o
[  1%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/model/class.cc.o
[  1%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/generators/json/class_diagram_generator.cc.o
[  1%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/model/class_element.cc.o
[  2%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/generators/plantuml/class_diagram_generator.cc.o
[  2%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/model/class_method.cc.o
[  3%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/model/class_parent.cc.o
[  4%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/model/class_member.cc.o
[  4%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/model/concept.cc.o
[  4%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/model/diagram.cc.o
[  5%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/model/enum.cc.o
[  5%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/model/method_parameter.cc.o
[  6%] Building CXX object src/CMakeFiles/clang-umllib.dir/class_diagram/visitor/translation_unit_visitor.cc.o
[  6%] Building CXX object src/CMakeFiles/clang-umllib.dir/cli/cli_handler.cc.o
[  7%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/clang_utils.cc.o
[  7%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/compilation_database.cc.o
[  7%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/generators/generators.cc.o
[  8%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/generators/json/generator.cc.o
[  8%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/generators/mermaid/generator.cc.o
[  9%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/generators/plantuml/generator.cc.o
[  9%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/generators/progress_indicator.cc.o
[  9%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/decorated_element.cc.o
[ 10%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/diagram.cc.o
[ 10%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/diagram_element.cc.o
[ 11%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/diagram_filter.cc.o
[ 11%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/element.cc.o
[ 12%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/enums.cc.o
[ 12%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/namespace.cc.o
[ 12%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/package.cc.o
[ 13%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/path.cc.o
[ 13%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/relationship.cc.o
[ 14%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/source_file.cc.o
[ 14%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/source_location.cc.o
[ 14%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/stylable_element.cc.o
[ 15%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/template_element.cc.o
[ 15%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/template_parameter.cc.o
[ 16%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/model/template_trait.cc.o
[ 16%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/types.cc.o
[ 17%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/visitor/ast_id_mapper.cc.o
[ 17%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/visitor/comment/clang_visitor.cc.o
[ 17%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/visitor/comment/comment_visitor.cc.o
[ 18%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/visitor/comment/plain_visitor.cc.o
[ 18%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/visitor/template_builder.cc.o
[ 19%] Building CXX object src/CMakeFiles/clang-umllib.dir/common/visitor/translation_unit_visitor.cc.o
[ 19%] Building CXX object src/CMakeFiles/clang-umllib.dir/config/config.cc.o
[ 19%] Building CXX object src/CMakeFiles/clang-umllib.dir/config/diagram_templates.cc.o
[ 20%] Building CXX object src/CMakeFiles/clang-umllib.dir/config/yaml_decoders.cc.o
[ 20%] Building CXX object src/CMakeFiles/clang-umllib.dir/config/yaml_emitters.cc.o
[ 21%] Building CXX object src/CMakeFiles/clang-umllib.dir/decorators/decorators.cc.o
[ 21%] Building CXX object src/CMakeFiles/clang-umllib.dir/docs/architecture.cc.o
[ 21%] Building CXX object src/CMakeFiles/clang-umllib.dir/include_diagram/generators/json/include_diagram_generator.cc.o
[ 22%] Building CXX object src/CMakeFiles/clang-umllib.dir/include_diagram/generators/mermaid/include_diagram_generator.cc.o
[ 22%] Building CXX object src/CMakeFiles/clang-umllib.dir/include_diagram/generators/plantuml/include_diagram_generator.cc.o
[ 23%] Building CXX object src/CMakeFiles/clang-umllib.dir/include_diagram/model/diagram.cc.o
[ 23%] Building CXX object src/CMakeFiles/clang-umllib.dir/include_diagram/visitor/translation_unit_visitor.cc.o
[ 24%] Building CXX object src/CMakeFiles/clang-umllib.dir/package_diagram/generators/json/package_diagram_generator.cc.o
[ 24%] Building CXX object src/CMakeFiles/clang-umllib.dir/package_diagram/generators/mermaid/package_diagram_generator.cc.o
[ 24%] Building CXX object src/CMakeFiles/clang-umllib.dir/package_diagram/generators/plantuml/package_diagram_generator.cc.o
[ 25%] Building CXX object src/CMakeFiles/clang-umllib.dir/package_diagram/model/diagram.cc.o
[ 25%] Building CXX object src/CMakeFiles/clang-umllib.dir/package_diagram/visitor/translation_unit_visitor.cc.o
[ 26%] Building CXX object src/CMakeFiles/clang-umllib.dir/sequence_diagram/generators/json/sequence_diagram_generator.cc.o
[ 26%] Building CXX object src/CMakeFiles/clang-umllib.dir/sequence_diagram/generators/mermaid/sequence_diagram_generator.cc.o
[ 26%] Building CXX object src/CMakeFiles/clang-umllib.dir/sequence_diagram/generators/plantuml/sequence_diagram_generator.cc.o
[ 27%] Building CXX object src/CMakeFiles/clang-umllib.dir/sequence_diagram/model/activity.cc.o
[ 27%] Building CXX object src/CMakeFiles/clang-umllib.dir/sequence_diagram/model/diagram.cc.o
[ 28%] Building CXX object src/CMakeFiles/clang-umllib.dir/sequence_diagram/model/message.cc.o
[ 28%] Building CXX object src/CMakeFiles/clang-umllib.dir/sequence_diagram/model/participant.cc.o
[ 29%] Building CXX object src/CMakeFiles/clang-umllib.dir/sequence_diagram/visitor/call_expression_context.cc.o
[ 29%] Building CXX object src/CMakeFiles/clang-umllib.dir/sequence_diagram/visitor/translation_unit_visitor.cc.o
[ 29%] Building CXX object src/CMakeFiles/clang-umllib.dir/util/query_driver_output_extractor.cc.o
[ 30%] Building CXX object src/CMakeFiles/clang-umllib.dir/util/thread_pool_executor.cc.o
[ 30%] Building CXX object src/CMakeFiles/clang-umllib.dir/util/util.cc.o
[ 30%] Built target clang-umllib
[ 30%] Building CXX object src/CMakeFiles/clang-uml.dir/main.cc.o
[ 30%] Building CXX object tests/CMakeFiles/test_compilation_database.dir/test_compilation_database.cc.o
[ 30%] Building CXX object tests/CMakeFiles/test_config.dir/test_config.cc.o
[ 30%] Building CXX object tests/CMakeFiles/test_cli_handler.dir/test_cli_handler.cc.o
[ 30%] Building CXX object tests/CMakeFiles/test_util.dir/test_util.cc.o
[ 30%] Building CXX object tests/CMakeFiles/test_decorator_parser.dir/test_decorator_parser.cc.o
[ 31%] Building CXX object tests/CMakeFiles/test_model.dir/test_model.cc.o
[ 32%] Building CXX object tests/CMakeFiles/test_cases.dir/test_cases.cc.o
[ 32%] Linking CXX executable test_decorator_parser
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
[ 32%] Built target test_decorator_parser
[ 32%] Building CXX object tests/CMakeFiles/test_cases.dir/t00002/t00002.cc.o
[ 33%] Linking CXX executable test_cli_handler
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
[ 33%] Built target test_cli_handler
[ 34%] Building CXX object tests/CMakeFiles/test_filters.dir/test_filters.cc.o
[ 34%] Linking CXX executable clang-uml
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
[ 34%] Built target clang-uml
[ 34%] Building CXX object tests/CMakeFiles/test_cases.dir/t00003/t00003.cc.o
[ 35%] Linking CXX executable test_util
[ 36%] Linking CXX executable test_config
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
[ 36%] Built target test_util
[ 36%] Built target test_config
[ 36%] Building CXX object tests/CMakeFiles/test_query_driver_output_extractor.dir/test_query_driver_output_extractor.cc.o
[ 36%] Building CXX object tests/CMakeFiles/test_thread_pool_executor.dir/test_thread_pool_executor.cc.o
[ 36%] Linking CXX executable test_model
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
[ 36%] Built target test_model
[ 37%] Building CXX object tests/CMakeFiles/test_cases.dir/t00004/t00004.cc.o
[ 37%] Building CXX object tests/CMakeFiles/test_cases.dir/t00005/t00005.cc.o
[ 38%] Building CXX object tests/CMakeFiles/test_cases.dir/t00006/t00006.cc.o
[ 38%] Building CXX object tests/CMakeFiles/test_cases.dir/t00007/t00007.cc.o
[ 39%] Building CXX object tests/CMakeFiles/test_cases.dir/t00008/t00008.cc.o
[ 40%] Linking CXX executable test_compilation_database
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
[ 40%] Built target test_compilation_database
[ 40%] Building CXX object tests/CMakeFiles/test_cases.dir/t00009/t00009.cc.o
[ 40%] Building CXX object tests/CMakeFiles/test_cases.dir/t00010/t00010.cc.o
[ 41%] Building CXX object tests/CMakeFiles/test_cases.dir/t00011/t00011.cc.o
[ 41%] Building CXX object tests/CMakeFiles/test_cases.dir/t00012/t00012.cc.o
[ 42%] Building CXX object tests/CMakeFiles/test_cases.dir/t00013/t00013.cc.o
[ 42%] Building CXX object tests/CMakeFiles/test_cases.dir/t00014/t00014.cc.o
[ 42%] Building CXX object tests/CMakeFiles/test_cases.dir/t00015/t00015.cc.o
[ 43%] Linking CXX executable test_query_driver_output_extractor
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
[ 44%] Linking CXX executable test_thread_pool_executor
[ 45%] Building CXX object tests/CMakeFiles/test_cases.dir/t00016/t00016.cc.o
[ 45%] Built target test_query_driver_output_extractor
[ 45%] Building CXX object tests/CMakeFiles/test_cases.dir/t00017/t00017.cc.o
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
[ 45%] Built target test_thread_pool_executor
[ 46%] Building CXX object tests/CMakeFiles/test_cases.dir/t00018/t00018.cc.o
[ 46%] Building CXX object tests/CMakeFiles/test_cases.dir/t00018/t00018_impl.cc.o
[ 47%] Building CXX object tests/CMakeFiles/test_cases.dir/t00019/t00019.cc.o
[ 47%] Building CXX object tests/CMakeFiles/test_cases.dir/t00020/t00020.cc.o
[ 47%] Building CXX object tests/CMakeFiles/test_cases.dir/t00021/t00021.cc.o
[ 48%] Building CXX object tests/CMakeFiles/test_cases.dir/t00022/t00022.cc.o
[ 48%] Building CXX object tests/CMakeFiles/test_cases.dir/t00023/t00023.cc.o
[ 49%] Building CXX object tests/CMakeFiles/test_cases.dir/t00024/t00024.cc.o
[ 49%] Building CXX object tests/CMakeFiles/test_cases.dir/t00025/t00025.cc.o
[ 49%] Building CXX object tests/CMakeFiles/test_cases.dir/t00026/t00026.cc.o
[ 50%] Building CXX object tests/CMakeFiles/test_cases.dir/t00027/t00027.cc.o
[ 50%] Building CXX object tests/CMakeFiles/test_cases.dir/t00028/t00028.cc.o
[ 51%] Building CXX object tests/CMakeFiles/test_cases.dir/t00029/t00029.cc.o
[ 51%] Building CXX object tests/CMakeFiles/test_cases.dir/t00030/t00030.cc.o
[ 51%] Building CXX object tests/CMakeFiles/test_cases.dir/t00031/t00031.cc.o
[ 52%] Building CXX object tests/CMakeFiles/test_cases.dir/t00032/t00032.cc.o
[ 52%] Building CXX object tests/CMakeFiles/test_cases.dir/t00033/t00033.cc.o
[ 53%] Building CXX object tests/CMakeFiles/test_cases.dir/t00034/t00034.cc.o
[ 53%] Building CXX object tests/CMakeFiles/test_cases.dir/t00035/t00035.cc.o
[ 54%] Building CXX object tests/CMakeFiles/test_cases.dir/t00036/t00036.cc.o
[ 54%] Building CXX object tests/CMakeFiles/test_cases.dir/t00037/t00037.cc.o
[ 54%] Building CXX object tests/CMakeFiles/test_cases.dir/t00038/t00038.cc.o
[ 55%] Building CXX object tests/CMakeFiles/test_cases.dir/t00039/t00039.cc.o
[ 55%] Building CXX object tests/CMakeFiles/test_cases.dir/t00040/t00040.cc.o
[ 56%] Building CXX object tests/CMakeFiles/test_cases.dir/t00041/t00041.cc.o
[ 56%] Building CXX object tests/CMakeFiles/test_cases.dir/t00042/t00042.cc.o
[ 56%] Building CXX object tests/CMakeFiles/test_cases.dir/t00043/t00043.cc.o
[ 57%] Building CXX object tests/CMakeFiles/test_cases.dir/t00044/t00044.cc.o
[ 57%] Building CXX object tests/CMakeFiles/test_cases.dir/t00045/t00045.cc.o
[ 58%] Building CXX object tests/CMakeFiles/test_cases.dir/t00046/t00046.cc.o
[ 58%] Building CXX object tests/CMakeFiles/test_cases.dir/t00047/t00047.cc.o
[ 59%] Building CXX object tests/CMakeFiles/test_cases.dir/t00048/a_t00048.cc.o
[ 59%] Building CXX object tests/CMakeFiles/test_cases.dir/t00048/b_t00048.cc.o
[ 59%] Building CXX object tests/CMakeFiles/test_cases.dir/t00048/t00048.cc.o
[ 60%] Building CXX object tests/CMakeFiles/test_cases.dir/t00049/t00049.cc.o
[ 60%] Building CXX object tests/CMakeFiles/test_cases.dir/t00050/t00050.cc.o
[ 61%] Building CXX object tests/CMakeFiles/test_cases.dir/t00051/t00051.cc.o
[ 61%] Building CXX object tests/CMakeFiles/test_cases.dir/t00052/t00052.cc.o
[ 61%] Building CXX object tests/CMakeFiles/test_cases.dir/t00053/t00053.cc.o
[ 62%] Building CXX object tests/CMakeFiles/test_cases.dir/t00054/t00054.cc.o
[ 62%] Building CXX object tests/CMakeFiles/test_cases.dir/t00055/t00055.cc.o
[ 63%] Building CXX object tests/CMakeFiles/test_cases.dir/t00056/t00056.cc.o
[ 63%] Building C object tests/CMakeFiles/test_cases.dir/t00057/src/t00057_impl.c.o
[ 64%] Building C object tests/CMakeFiles/test_cases.dir/t00057/t00057.c.o
[ 64%] Building CXX object tests/CMakeFiles/test_cases.dir/t00058/t00058.cc.o
[ 64%] Building CXX object tests/CMakeFiles/test_cases.dir/t00059/t00059.cc.o
[ 65%] Building CXX object tests/CMakeFiles/test_cases.dir/t00060/t00060.cc.o
[ 65%] Building CXX object tests/CMakeFiles/test_cases.dir/t00061/t00061.cc.o
[ 66%] Building CXX object tests/CMakeFiles/test_cases.dir/t00062/t00062.cc.o
[ 66%] Building CXX object tests/CMakeFiles/test_cases.dir/t00063/t00063.cc.o
[ 66%] Building CXX object tests/CMakeFiles/test_cases.dir/t00064/t00064.cc.o
[ 66%] Linking CXX executable test_filters
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
[ 66%] Built target test_filters
[ 67%] Building CXX object tests/CMakeFiles/test_cases.dir/t00065/t00065.cc.o
[ 67%] Building CXX object tests/CMakeFiles/test_cases.dir/t00066/t00066.cc.o
[ 68%] Building CXX object tests/CMakeFiles/test_cases.dir/t00067/t00067.cc.o
[ 68%] Building CXX object tests/CMakeFiles/test_cases.dir/t00068/t00068.cc.o
[ 68%] Building CXX object tests/CMakeFiles/test_cases.dir/t00073/t00073.cc.o
[ 69%] Building CXX object tests/CMakeFiles/test_cases.dir/t00074/t00074.cc.o
[ 69%] Building CXX object tests/CMakeFiles/test_cases.dir/t00075/t00075.cc.o
[ 70%] Building CXX object tests/CMakeFiles/test_cases.dir/t20001/t20001.cc.o
[ 70%] Building CXX object tests/CMakeFiles/test_cases.dir/t20002/t20002.cc.o
[ 71%] Building CXX object tests/CMakeFiles/test_cases.dir/t20003/t20003.cc.o
[ 71%] Building CXX object tests/CMakeFiles/test_cases.dir/t20004/t20004.cc.o
[ 71%] Building CXX object tests/CMakeFiles/test_cases.dir/t20005/t20005.cc.o
[ 72%] Building CXX object tests/CMakeFiles/test_cases.dir/t20006/t20006.cc.o
[ 72%] Building CXX object tests/CMakeFiles/test_cases.dir/t20007/t20007.cc.o
[ 73%] Building CXX object tests/CMakeFiles/test_cases.dir/t20008/t20008.cc.o
[ 73%] Building CXX object tests/CMakeFiles/test_cases.dir/t20009/t20009.cc.o
[ 73%] Building CXX object tests/CMakeFiles/test_cases.dir/t20010/t20010.cc.o
[ 74%] Building CXX object tests/CMakeFiles/test_cases.dir/t20011/t20011.cc.o
[ 74%] Building CXX object tests/CMakeFiles/test_cases.dir/t20012/t20012.cc.o
[ 75%] Building CXX object tests/CMakeFiles/test_cases.dir/t20013/t20013.cc.o
[ 75%] Building CXX object tests/CMakeFiles/test_cases.dir/t20014/t20014.cc.o
[ 76%] Building CXX object tests/CMakeFiles/test_cases.dir/t20014/t20014_a.cc.o
[ 76%] Building CXX object tests/CMakeFiles/test_cases.dir/t20014/t20014_b.cc.o
[ 76%] Building CXX object tests/CMakeFiles/test_cases.dir/t20014/t20014_c.cc.o
[ 77%] Building CXX object tests/CMakeFiles/test_cases.dir/t20015/t20015.cc.o
[ 77%] Building CXX object tests/CMakeFiles/test_cases.dir/t20016/t20016.cc.o
[ 78%] Building CXX object tests/CMakeFiles/test_cases.dir/t20017/t20017.cc.o
[ 78%] Building CXX object tests/CMakeFiles/test_cases.dir/t20017/t20017_b.cc.o
[ 78%] Building CXX object tests/CMakeFiles/test_cases.dir/t20018/t20018.cc.o
[ 79%] Building CXX object tests/CMakeFiles/test_cases.dir/t20019/t20019.cc.o
[ 79%] Building CXX object tests/CMakeFiles/test_cases.dir/t20020/t20020.cc.o
[ 80%] Building CXX object tests/CMakeFiles/test_cases.dir/t20021/t20021.cc.o
[ 80%] Building CXX object tests/CMakeFiles/test_cases.dir/t20022/t20022.cc.o
[ 81%] Building CXX object tests/CMakeFiles/test_cases.dir/t20023/t20023.cc.o
[ 81%] Building CXX object tests/CMakeFiles/test_cases.dir/t20024/t20024.cc.o
[ 81%] Building CXX object tests/CMakeFiles/test_cases.dir/t20025/t20025.cc.o
[ 82%] Building CXX object tests/CMakeFiles/test_cases.dir/t20026/t20026.cc.o
[ 82%] Building CXX object tests/CMakeFiles/test_cases.dir/t20027/t20027.cc.o
[ 83%] Building CXX object tests/CMakeFiles/test_cases.dir/t20028/t20028.cc.o
[ 83%] Building CXX object tests/CMakeFiles/test_cases.dir/t20029/t20029.cc.o
[ 83%] Building CXX object tests/CMakeFiles/test_cases.dir/t20030/t20030.cc.o
[ 84%] Building CXX object tests/CMakeFiles/test_cases.dir/t20031/t20031.cc.o
[ 84%] Building CXX object tests/CMakeFiles/test_cases.dir/t20032/t20032.cc.o
[ 85%] Building CXX object tests/CMakeFiles/test_cases.dir/t20033/t20033.cc.o
[ 85%] Building CXX object tests/CMakeFiles/test_cases.dir/t20034/t20034.cc.o
[ 86%] Building CXX object tests/CMakeFiles/test_cases.dir/t20035/t20035.cc.o
[ 86%] Building CXX object tests/CMakeFiles/test_cases.dir/t20036/t20036.cc.o
[ 86%] Building CXX object tests/CMakeFiles/test_cases.dir/t20037/t20037.cc.o
[ 87%] Building CXX object tests/CMakeFiles/test_cases.dir/t20038/t20038.cc.o
[ 87%] Building CXX object tests/CMakeFiles/test_cases.dir/t20039/t20039.cc.o
[ 88%] Building CXX object tests/CMakeFiles/test_cases.dir/t20040/t20040.cc.o
[ 88%] Building CXX object tests/CMakeFiles/test_cases.dir/t20041/t20041.cc.o
[ 88%] Building CXX object tests/CMakeFiles/test_cases.dir/t20042/t20042.cc.o
[ 89%] Building CXX object tests/CMakeFiles/test_cases.dir/t20043/t20043.cc.o
[ 89%] Building CXX object tests/CMakeFiles/test_cases.dir/t20044/t20044.cc.o
[ 90%] Building CXX object tests/CMakeFiles/test_cases.dir/t20045/t20045.cc.o
[ 90%] Building CXX object tests/CMakeFiles/test_cases.dir/t20046/t20046.cc.o
[ 90%] Building CXX object tests/CMakeFiles/test_cases.dir/t20047/t20047.cc.o
[ 91%] Building CXX object tests/CMakeFiles/test_cases.dir/t20048/t20048.cc.o
[ 91%] Building CXX object tests/CMakeFiles/test_cases.dir/t20052/t20052.cc.o
[ 92%] Building CXX object tests/CMakeFiles/test_cases.dir/t20053/t20053.cc.o
[ 92%] Building CXX object tests/CMakeFiles/test_cases.dir/t30001/t30001.cc.o
[ 93%] Building CXX object tests/CMakeFiles/test_cases.dir/t30002/t30002.cc.o
[ 93%] Building CXX object tests/CMakeFiles/test_cases.dir/t30003/t30003.cc.o
[ 93%] Building CXX object tests/CMakeFiles/test_cases.dir/t30004/t30004.cc.o
[ 94%] Building CXX object tests/CMakeFiles/test_cases.dir/t30005/t30005.cc.o
[ 94%] Building CXX object tests/CMakeFiles/test_cases.dir/t30006/t30006.cc.o
[ 95%] Building CXX object tests/CMakeFiles/test_cases.dir/t30007/t30007.cc.o
[ 95%] Building CXX object tests/CMakeFiles/test_cases.dir/t30008/t30008.cc.o
[ 95%] Building CXX object tests/CMakeFiles/test_cases.dir/t30009/t30009.cc.o
[ 96%] Building CXX object tests/CMakeFiles/test_cases.dir/t30010/t30010.cc.o
[ 96%] Building C object tests/CMakeFiles/test_cases.dir/t30011/t30011.c.o
[ 97%] Building CXX object tests/CMakeFiles/test_cases.dir/t40001/src/t40001.cc.o
[ 97%] Building CXX object tests/CMakeFiles/test_cases.dir/t40002/src/lib1/lib1.cc.o
[ 98%] Building CXX object tests/CMakeFiles/test_cases.dir/t40002/src/lib2/lib2.cc.o
[ 98%] Building CXX object tests/CMakeFiles/test_cases.dir/t40002/src/t40002.cc.o
[ 98%] Building CXX object tests/CMakeFiles/test_cases.dir/t40003/src/dependants/t1.cc.o
[ 99%] Building CXX object tests/CMakeFiles/test_cases.dir/t40003/src/dependencies/t2.cc.o
[ 99%] Building CXX object tests/CMakeFiles/test_cases.dir/t90000/t90000.cc.o
[100%] Building CXX object tests/CMakeFiles/test_cases.dir/t90001/t90001.cc.o
In file included from MY_FOLDER/clang-uml/tests/test_cases.cc:19:
In file included from MY_FOLDER/clang-uml/tests/test_cases.h:22:
In file included from MY_FOLDER/clang-uml/src/class_diagram/generators/mermaid/class_diagram_generator.h:24:
In file included from MY_FOLDER/clang-uml/src/class_diagram/visitor/translation_unit_visitor.h:25:
In file included from MY_FOLDERclang-uml/src/common/visitor/template_builder.h:24:
In file included from MY_FOLDER/clang-uml/src/common/visitor/translation_unit_visitor.h:20:
In file included from MY_FOLDER/clang-uml/src/common/visitor/comment/clang_visitor.h:21:
/opt/homebrew/opt/llvm/include/clang/AST/Comment.h:181:54: warning: arithmetic between different enumeration types ('clang::comments::Comment::(unnamed enum at /opt/homebrew/opt/llvm/include/clang/AST/Comment.h:80:3)' and 'clang::comments::CommandInfo::(unnamed enum at /opt/homebrew/opt/llvm/include/clang/AST/CommentCommandTraits.h:43:3)') is deprecated [-Wdeprecated-anon-enum-enum-conversion]
  181 |   enum { NumBlockCommandCommentBits = NumCommentBits +
      |                                       ~~~~~~~~~~~~~~ ^
  182 |                                       CommandInfo::NumCommandIDBits + 1 };
      |                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[100%] Linking CXX executable test_cases
ld: warning: reexported library with install name '/opt/homebrew/opt/llvm/lib/libunwind.1.dylib' found at '/opt/homebrew/Cellar/llvm/18.1.5/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
[100%] Built target test_cases
gmake[1]: Leaving directory 'MY_FOLDER/clang-uml/release'
bkryza commented 6 months ago

@iAbadia Thanks for the info. At the moment I don't have access to a Mac to reproduce it, I'll try next week.

Can you also share the output of:

otool -L ./clang-uml

?

iAbadia commented 6 months ago

Thanks @bkryza , here it is:

$ otool -L clang-uml
clang-uml:
        /opt/homebrew/opt/yaml-cpp/lib/libyaml-cpp.0.8.dylib (compatibility version 0.8.0, current version 0.8.0)
        /opt/homebrew/opt/llvm/lib/libclang-cpp.dylib (compatibility version 0.0.0, current version 0.0.0)
        /opt/homebrew/opt/llvm/lib/libLLVM.dylib (compatibility version 1.0.0, current version 18.1.5)
        /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1700.255.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1345.100.2)
        /opt/homebrew/opt/llvm/lib/libunwind.1.dylib (compatibility version 1.0.0, current version 1.0.0)
bkryza commented 6 months ago

@iAbadia I tried to reproduce it on my MBP (unfortunately it's an old Intel based) but it works fine:

➜  clang-uml git:(master) debug/src/clang-uml --version
clang-uml 0.5.2-18-gaa62c47
Copyright (C) 2021-2024 Bartek Kryza <bkryza@gmail.com>
Darwin x86_64 21.1.0
Built against LLVM/Clang libraries version: 17.0.6
Using LLVM/Clang libraries version: Homebrew clang version 17.0.6

➜  clang-uml git:(master) debug/src/clang-uml --help   
Clang-based UML diagram generator for C++
Usage: debug/src/clang-uml [OPTIONS]

Options:
  -h,--help                   Print this help message and exit
  -c,--config TEXT            Location of configuration file, when '-' read from stdin
  -d,--compile-database TEXT  Location of compilation database directory
  -n,--diagram-name TEXT ...  List of diagram names to generate
  ...

Also on my system brew does not offer to install LLVM 18 yet:

➜  clang-uml git:(master) brew update
==> Updating Homebrew...
Already up-to-date.
➜  clang-uml git:(master) brew search llvm
==> Formulae
cargo-llvm-cov            llvm@11                   llvm@14                   llvm@17                   spirv-llvm-translator
cargo-llvm-lines          llvm@12                   llvm@15                   llvm@8                    wllvm
llvm ✔                    llvm@13                   llvm@16 ✔                 llvm@9                    llm

One more idea I have is if you could rebuild clang-uml in debug mode, i.e.:

CMAKE_PREFIX=/opt/homebrew/opt/llvm/lib/cmake/llvm make debug

and run again:

debug/src/clang-uml --help

in which case it should print stacktrace to the console and maybe it will provider some useful info...

bkryza commented 4 months ago

@iAbadia FYI, I've managed to resolve this issue on macOS, there is now a Github Action for macOS Arm which makes sure that it works. I've also updated the build instructions here.

iAbadia commented 4 months ago

Oh! I missed your previous comment, sorry! That's great news @bkryza , thanks so much 🙂