llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

DirectoryWatcher-linux.cpp fails to build on SLES11

Open llvmbot opened this issue 7 years ago • 4 comments

Bugzilla Link 42824
Resolution FIXED
Resolved on Aug 06, 2019 01:23
Version 9.0
OS Windows NT
Blocks llvm/llvm-project#41819
Reporter LLVM Bugzilla Contributor
CC @zmodem,@jkorous-apple,@zygoloid

Extended Description

IN_EXCL_UNLINK is supported by this kernel (3.0.101-108.77-default) but the symbol's not provided.

SLES11 has glibc-devel-2.11.3-17.110.19.2

9.0 rc1 clang build fails like so:

/local/mnt/workspace/bcain_0721/llvm/utils/release/rc1/llvm.src/tools/clang/lib/DirectoryWatcher /linux/DirectoryWatcher-linux.cpp:339:9: error: use of undeclared identifier 'IN_EXCL_UNLINK' | IN_EXCL_UNLINK

llvmbot avatar Jul 30 '19 13:07 llvmbot

Should be fixed by 57f4bacf65a.

I just replaced the kernel version check by #ifdef IN_EXCL_UNLINK.

Thanks! Merged to release_90 in r367995.

zmodem avatar Aug 06 '19 08:08 zmodem

Should be fixed by 57f4bacf65a.

I just replaced the kernel version check by #ifdef IN_EXCL_UNLINK.

jkorous-apple avatar Aug 05 '19 18:08 jkorous-apple

Ping?

zmodem avatar Aug 05 '19 08:08 zmodem

+jkorous

Needs more #ifdef?

zmodem avatar Jul 30 '19 13:07 zmodem