-
-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
Description
Trying to compile x264 with UndefinedBehaviorSanitizer
./configure --extra-cflags="-fsanitize=undefined" --extra-ldflags="-fsanitize=undefined"
fails with linker error:
lld-link: error: undefined symbol: _stpcpy
>>> referenced by x264.o:(_stringify_names)
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:264: x264.exe] Error 1
Adding -fno-builtin-stpcpy
to CFLAGS helps but this looks like regression of LLVM12. But I don't understand why it fails only when using sanitizers.
Metadata
Metadata
Assignees
Labels
No labels