<div dir="ltr"><div>I'm getting the below warnings when building on Linux now. Some of the macros are being redefined to different values.</div><div><br></div><div>[2091/2364] Building CXX object tools/lldb/source/Host/common/CMakeFiles/lldbHostCommon.dir/File.cpp.o</div>

<div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:844:9: warning: 'O_RDONLY' macro redefined</div><div>#define O_RDONLY        0x0000          /* open for reading only */</div><div>
        ^</div>
<div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:35:9: note: previous definition is here</div><div>#define O_RDONLY             00</div><div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:845:9: warning: 'O_WRONLY' macro redefined</div>

<div>#define O_WRONLY        0x0001          /* open for writing only */</div><div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:36:9: note: previous definition is here</div><div>#define O_WRONLY             01</div>

<div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:846:9: warning: 'O_RDWR' macro redefined</div><div>#define O_RDWR          0x0002          /* open for reading and writing */</div>

<div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:37:9: note: previous definition is here</div><div>#define O_RDWR               02</div><div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:847:9: warning: 'O_ACCMODE' macro redefined</div>

<div>#define O_ACCMODE       0x0003          /* mask for above modes */</div><div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:34:9: note: previous definition is here</div><div>#define O_ACCMODE          0003</div>

<div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:848:9: warning: 'O_NONBLOCK' macro redefined</div><div>#define O_NONBLOCK      0x0004          /* no delay */</div>

<div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:43:9: note: previous definition is here</div><div>#define O_NONBLOCK        04000</div><div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:849:9: warning: 'O_APPEND' macro redefined</div>

<div>#define O_APPEND        0x0008          /* set append mode */</div><div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:42:9: note: previous definition is here</div><div>#define O_APPEND          02000</div>

<div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:850:9: warning: 'O_SYNC' macro redefined</div><div>#define O_SYNC          0x0080          /* synch I/O file integrity */</div>

<div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:45:9: note: previous definition is here</div><div>#define O_SYNC         04010000</div><div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:853:9: warning: 'O_ASYNC' macro redefined</div>

<div>#define O_ASYNC         0x0040          /* signal pgrp when data ready */</div><div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:47:9: note: previous definition is here</div><div>#define O_ASYNC          020000</div>

<div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:855:9: warning: 'O_NOFOLLOW' macro redefined</div><div>#define O_NOFOLLOW  0x0100      /* don't follow symlinks */</div>

<div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:51:10: note: previous definition is here</div><div># define O_NOFOLLOW     0400000 /* Do not follow links.  */</div><div>         ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:856:9: warning: 'O_CREAT' macro redefined</div>

<div>#define O_CREAT         0x0200          /* create if nonexistant */</div><div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:38:9: note: previous definition is here</div><div>#define O_CREAT            0100 /* not fcntl */</div>

<div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:857:9: warning: 'O_TRUNC' macro redefined</div><div>#define O_TRUNC         0x0400          /* truncate to zero length */</div>

<div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:41:9: note: previous definition is here</div><div>#define O_TRUNC           01000 /* not fcntl */</div><div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:858:9: warning: 'O_EXCL' macro redefined</div>

<div>#define O_EXCL          0x0800          /* error if already exists */</div><div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:39:9: note: previous definition is here</div><div>#define O_EXCL             0200 /* not fcntl */</div>

<div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:860:9: warning: 'O_NOCTTY' macro redefined</div><div>#define O_NOCTTY        0x20000         /* don't assign controlling terminal */</div>

<div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:40:9: note: previous definition is here</div><div>#define O_NOCTTY           0400 /* not fcntl */</div><div><div>        ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:861:9: warning: 'O_DIRECTORY' macro redefined</div>

<div>#define O_DIRECTORY     0x100000</div><div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:50:10: note: previous definition is here</div><div># define O_DIRECTORY    0200000 /* Must be a directory.  */</div>

<div>         ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:863:9: warning: 'O_DSYNC' macro redefined</div><div>#define O_DSYNC         0x400000        /* synch I/O data integrity */</div>

<div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:64:10: note: previous definition is here</div><div># define O_DSYNC        010000  /* Synchronize data.  */</div><div>         ^</div><div>/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:864:9: warning: 'O_CLOEXEC' macro redefined</div>

<div>#define O_CLOEXEC       0x1000000       /* implicitly set FD_CLOEXEC */</div><div>        ^</div><div>/usr/include/x86_64-linux-gnu/bits/fcntl.h:52:10: note: previous definition is here</div><div># define O_CLOEXEC     02000000 /* Set close_on_exec.  */</div>

<div>         ^</div><div>16 warnings generated.</div></div><div><br></div></div>