Skip to content

LLVM12+UBSan: undefined symbol: _stpcpy #201

@MasterNobody

Description

@MasterNobody

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions