Ranjeet Singh via llvm-dev
2019-Jul-15 10:56 UTC
[llvm-dev] DirectoryWatcher causing build failures on Redhat linux with kernel version 2.6.32
Hi Jan, our builds have been failing on Redhat linux kernel version 2.6.32 with the following error: 2019.07.15 11:10:28 ../llvm/tools/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp:335:47: error: 'IN_EXCL_UNLINK' was not declared in this scope 2019.07.15 11:10:28 IN_CREATE | IN_DELETE | IN_DELETE_SELF | IN_EXCL_UNLINK | IN_MODIFY | this is because of the patch https://reviews.llvm.org/rG77dd8a79286d2fff94c765f787d7f7debb2a10c4 which adds this code in. We build on a platform that uses the linux kernel version 2.6.32 which doesn't have the IN_EXCL_UNLINK feature, could you please take a look ? Thanks, Ranjeet -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190715/ab5e6245/attachment.html>
Mikael Holmén via llvm-dev
2019-Jul-15 11:01 UTC
[llvm-dev] DirectoryWatcher causing build failures on Redhat linux with kernel version 2.6.32
Hi, Same thing for me, as I described here: http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20190708/279184.html I think the problem is that the patch assumes that if sys/inotify.h exists, then IN_EXCL_UNLINK is defined in it. But I think that there are old versions of inotify.h where IN_EXCL_UNLINK isn't defined. /Mikael On 2019-07-15 12:56, Ranjeet Singh via llvm-dev wrote:> Hi Jan, > > > our builds have been failing on Redhat linux kernel version 2.6.32 with > the following error: > > > *2019.07.15 11:10:28* > ../llvm/tools/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp:335:47: > error: 'IN_EXCL_UNLINK' was not declared in this scope *2019.07.15 > 11:10:28* IN_CREATE | IN_DELETE | IN_DELETE_SELF | IN_EXCL_UNLINK | > IN_MODIFY | > > > this is because of the patch > https://reviews.llvm.org/rG77dd8a79286d2fff94c765f787d7f7debb2a10c4 which adds > this code in. We build on a platform that uses the linux kernel version > 2.6.32 which doesn't have the IN_EXCL_UNLINK feature, could you please > take a look ? > > > Thanks, > > Ranjeet > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >
Tom Stellard via llvm-dev
2019-Jul-15 19:22 UTC
[llvm-dev] DirectoryWatcher causing build failures on Redhat linux with kernel version 2.6.32
On 07/15/2019 04:01 AM, Mikael Holmén via llvm-dev wrote:> Hi, > > Same thing for me, as I described here: > > http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20190708/279184.html > > I think the problem is that the patch assumes that if sys/inotify.h > exists, then IN_EXCL_UNLINK is defined in it. > > But I think that there are old versions of inotify.h where > IN_EXCL_UNLINK isn't defined. >Could you file a bug for this and cc me. Thanks, Tom> /Mikael > > On 2019-07-15 12:56, Ranjeet Singh via llvm-dev wrote: >> Hi Jan, >> >> >> our builds have been failing on Redhat linux kernel version 2.6.32 with >> the following error: >> >> >> *2019.07.15 11:10:28* >> ../llvm/tools/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp:335:47: >> error: 'IN_EXCL_UNLINK' was not declared in this scope *2019.07.15 >> 11:10:28* IN_CREATE | IN_DELETE | IN_DELETE_SELF | IN_EXCL_UNLINK | >> IN_MODIFY | >> >> >> this is because of the patch >> https://reviews.llvm.org/rG77dd8a79286d2fff94c765f787d7f7debb2a10c4 which adds >> this code in. We build on a platform that uses the linux kernel version >> 2.6.32 which doesn't have the IN_EXCL_UNLINK feature, could you please >> take a look ? >> >> >> Thanks, >> >> Ranjeet >> >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >