alsa-project / alsa-lib

The Advanced Linux Sound Architecture (ALSA) - library
GNU Lesser General Public License v2.1
345 stars 176 forks source link

Failing to link with lld 16, version script assignment of 'ALSA_0.9.5' to symbol 'alsa_lisp' failed: symbol not defined #305

Closed listout closed 6 months ago

listout commented 1 year ago

lld 16 has gotten more stricter with version scripts. Using llvm 16 as my compiler produced this error.

The full build log can be found here: https://bpa.st/F6DDW

My environments:

CC="clang"
CXX="clang++"
AR="llvm-ar"
NM="llvm-nm"
RANLIB="llvm-ranlib"
LDFLAGS="${LDFLAGS} -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed"