Closed iAbadia closed 3 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
?
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)
@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...
@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.
Oh! I missed your previous comment, sorry! That's great news @bkryza , thanks so much 🙂
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
Trace trap error
Build log