#68336 closed defect (fixed)

avidemux @2.8.1: dyld: Library not loaded: '@rpath/libclang_rt.asan_osx_dynamic.dylib'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: chrstphrchvz (Christopher Chavez)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: monterey x86_64 Cc: chrstphrchvz (Christopher Chavez)
Port: avidemux

Description

avidemux installs (from binary archive) but does not open. Trying to start it from the Terminal shows why:

% Avidemux2.8
dyld[61720]: Library not loaded: '@rpath/libclang_rt.asan_osx_dynamic.dylib'
  Referenced from: '/opt/local/bin/Avidemux2.8'
  Reason: tried: '/opt/local/lib/libclang_rt.asan_osx_dynamic.dylib' (no such file), '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_multimedia_avidemux/avidemux/work/destroot/opt/local/lib/libclang_rt.asan_osx_dynamic.dylib' (no such file), '/opt/local/bin/libclang_rt.asan_osx_dynamic.dylib' (no such file), '/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.asan_osx_dynamic.dylib' (no such file), '/opt/local/lib/libclang_rt.asan_osx_dynamic.dylib' (no such file), '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_multimedia_avidemux/avidemux/work/destroot/opt/local/lib/libclang_rt.asan_osx_dynamic.dylib' (no such file), '/opt/local/bin/libclang_rt.asan_osx_dynamic.dylib' (no such file), '/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.asan_osx_dynamic.dylib' (no such file), '/usr/local/lib/libclang_rt.asan_osx_dynamic.dylib' (no such file), '/usr/lib/libclang_rt.asan_osx_dynamic.dylib' (no such file)
zsh: abort      Avidemux2.8

Change History (5)

comment:1 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

After rebuilding from source it works. There's no change to the library linkage for libclang_rt.asan_osx_dynamic.dylib but the LC_RPATH is now /Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/lib/darwin which matches what my command line tools version provides. However, it's unexpected that an application would depend on the presence of the CLT.

comment:2 Changed 12 months ago by chrstphrchvz (Christopher Chavez)

It looks like avidemux has been building with AddressSanitizer enabled since -DASAN=True was added by [f014af682381/macports-ports]. But I think ports are not supposed to do this, because doing so links to the compiler-rt libraries for a specific version of Xcode, CLT, or MacPorts LLVM.

comment:3 Changed 12 months ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:4 Changed 12 months ago by chrstphrchvz (Christopher Chavez)

comment:5 Changed 12 months ago by chrstphrchvz (Christopher Chavez)

Owner: set to chrstphrchvz
Resolution: fixed
Status: newclosed

In a0c91cf6411071c7ffa5acf40362a39faff16eeb/macports-ports (master):

avidemux: disable AddressSanitizer

Fixes: #68336

Note: See TracTickets for help on using tickets.