Opened 5 years ago

Closed 5 years ago

#58813 closed defect (duplicate)

clang-8.0 installs libclang_rt.asan_osx_dynamic.dylib with incorrect install_name

Reported by: mouse07410 (Mouse) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: larryv (Lawrence Velázquez)
Port: clang-8.0

Description

MacOS Mojave 10.14.6, Xcode-10.3, current Macports.

$ port installed clang-8.0
The following ports are currently installed:
  clang-8.0 @8.0.0_0+analyzer+assertions+libstdcxx (active)
$ sudo port select --set clang mp-clang-8.0
$ [configure and build asn1c from https://github.com/mouse07410/asn1c.git]
. . . . .
FAIL: check_unber.sh
====================

dyld: Library not loaded: /opt/local/libexec/llvm-8.0/lib/libclang_rt.asan_osx_dynamic.dylib
  Referenced from: /Users/ur20980/src/asn1c-new/asn1-tools/unber/./check_unber
  Reason: image not found
./check_unber.sh: line 9: 78451 Abort trap: 6           env ${ASAN_ENV_FLAGS:-} ${builddir}/check_unber -timeout=3 -max_total_time=${FUZZ_TIME} -max_len=500
FAIL check_unber.sh (exit status: 134)

As you can see, library /opt/local/libexec/llvm-8.0/lib/libclang_rt.asan_osx_dynamic.dylib not found, because it does not exist where the linker thought. It's located in

/opt/local/libexec/llvm-8.0/lib/clang/8.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib

instead.

I do not know whether clang is responsible for this problem, or llvm is.

Change History (2)

comment:1 Changed 5 years ago by kencu (Ken)

Cc: jeremyhu removed
Owner: set to jeremyhu
Status: newassigned
Summary: clang-8.0 missing libraryclang-8.0 installs libclang_rt.asan_osx_dynamic.dylib with incorrect install_name

comment:2 Changed 5 years ago by kencu (Ken)

Resolution: duplicate
Status: assignedclosed

this is essentially a duplicate of 57152

Note: See TracTickets for help on using tickets.