HI!
I've compiled a command line utility written in plain C on macOS Monterey on macBook m1 pro. The compilation command is just following:
clang -std=gnu11 -Wall -o my_run_ht run_ht.c ht.c
It compiles fine but when I try running it, it is aborted with the following message:
dyld[8385]: dyld cache '/System/Library/dyld/dyld_shared_cache_arm64e' not loaded: syscall to map cache into shared region failed
dyld[8385]: Library not loaded: /usr/lib/libSystem.B.dylib
Referenced from: /Users/sasha/Src/my/ht/run_ht
Reason: tried: '/usr/lib/libSystem.B.dylib' (no such file), '/usr/local/lib/libSystem.B.dylib' (no such file)
What is more strange that I can compile and run other command line utilities. So I'm quite puzzled and have no idea what is the reason for that and how to fix it.
Could anybody please help me with this?
Thanks in advance.