[lldb-dev] file.cpp redefined warnings
Malea, Daniel
daniel.malea at intel.com
Tue Aug 27 11:59:33 PDT 2013
Ah, my bad; meant to remove these as I merged the platform branch. Thanks for the heads up.
Fixed in r189392.
Dan
From: Michael Sartain <mikesart at gmail.com<mailto:mikesart at gmail.com>>
Date: Tuesday, 27 August, 2013 2:40 PM
To: "lldb-dev at cs.uiuc.edu<mailto:lldb-dev at cs.uiuc.edu>" <lldb-dev at cs.uiuc.edu<mailto:lldb-dev at cs.uiuc.edu>>
Subject: [lldb-dev] file.cpp redefined warnings
I'm getting the below warnings when building on Linux now. Some of the macros are being redefined to different values.
[2091/2364] Building CXX object tools/lldb/source/Host/common/CMakeFiles/lldbHostCommon.dir/File.cpp.o
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:844:9: warning: 'O_RDONLY' macro redefined
#define O_RDONLY 0x0000 /* open for reading only */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:35:9: note: previous definition is here
#define O_RDONLY 00
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:845:9: warning: 'O_WRONLY' macro redefined
#define O_WRONLY 0x0001 /* open for writing only */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:36:9: note: previous definition is here
#define O_WRONLY 01
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:846:9: warning: 'O_RDWR' macro redefined
#define O_RDWR 0x0002 /* open for reading and writing */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:37:9: note: previous definition is here
#define O_RDWR 02
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:847:9: warning: 'O_ACCMODE' macro redefined
#define O_ACCMODE 0x0003 /* mask for above modes */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:34:9: note: previous definition is here
#define O_ACCMODE 0003
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:848:9: warning: 'O_NONBLOCK' macro redefined
#define O_NONBLOCK 0x0004 /* no delay */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:43:9: note: previous definition is here
#define O_NONBLOCK 04000
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:849:9: warning: 'O_APPEND' macro redefined
#define O_APPEND 0x0008 /* set append mode */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:42:9: note: previous definition is here
#define O_APPEND 02000
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:850:9: warning: 'O_SYNC' macro redefined
#define O_SYNC 0x0080 /* synch I/O file integrity */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:45:9: note: previous definition is here
#define O_SYNC 04010000
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:853:9: warning: 'O_ASYNC' macro redefined
#define O_ASYNC 0x0040 /* signal pgrp when data ready */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:47:9: note: previous definition is here
#define O_ASYNC 020000
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:855:9: warning: 'O_NOFOLLOW' macro redefined
#define O_NOFOLLOW 0x0100 /* don't follow symlinks */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:51:10: note: previous definition is here
# define O_NOFOLLOW 0400000 /* Do not follow links. */
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:856:9: warning: 'O_CREAT' macro redefined
#define O_CREAT 0x0200 /* create if nonexistant */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:38:9: note: previous definition is here
#define O_CREAT 0100 /* not fcntl */
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:857:9: warning: 'O_TRUNC' macro redefined
#define O_TRUNC 0x0400 /* truncate to zero length */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:41:9: note: previous definition is here
#define O_TRUNC 01000 /* not fcntl */
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:858:9: warning: 'O_EXCL' macro redefined
#define O_EXCL 0x0800 /* error if already exists */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:39:9: note: previous definition is here
#define O_EXCL 0200 /* not fcntl */
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:860:9: warning: 'O_NOCTTY' macro redefined
#define O_NOCTTY 0x20000 /* don't assign controlling terminal */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:40:9: note: previous definition is here
#define O_NOCTTY 0400 /* not fcntl */
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:861:9: warning: 'O_DIRECTORY' macro redefined
#define O_DIRECTORY 0x100000
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:50:10: note: previous definition is here
# define O_DIRECTORY 0200000 /* Must be a directory. */
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:863:9: warning: 'O_DSYNC' macro redefined
#define O_DSYNC 0x400000 /* synch I/O data integrity */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:64:10: note: previous definition is here
# define O_DSYNC 010000 /* Synchronize data. */
^
/home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Host/common/File.cpp:864:9: warning: 'O_CLOEXEC' macro redefined
#define O_CLOEXEC 0x1000000 /* implicitly set FD_CLOEXEC */
^
/usr/include/x86_64-linux-gnu/bits/fcntl.h:52:10: note: previous definition is here
# define O_CLOEXEC 02000000 /* Set close_on_exec. */
^
16 warnings generated.
More information about the lldb-dev
mailing list