Skip to content

Instantly share code, notes, and snippets.

@lodle
Created October 27, 2015 20:59
Show Gist options
  • Save lodle/47493c8ea2a51eff5322 to your computer and use it in GitHub Desktop.
Save lodle/47493c8ea2a51eff5322 to your computer and use it in GitHub Desktop.
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/common/File.cpp: In member function ‘lldb_private::Error lldb_private::File::Open(const char*, uint32_t, uint32_t)’:
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/common/File.cpp:300:18: error: ‘O_CLOEXEC’ was not declared in this scope
oflag |= O_CLOEXEC;
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/FileSystem.cpp:21:25: fatal error: linux/magic.h: No such file or directory
#include <linux/magic.h>
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/FileSystem.cpp: In function ‘bool IsLocal(const statfs&)’:
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/FileSystem.cpp:266:10: error: ‘NFS_SUPER_MAGIC’ was not declared in this scope
case NFS_SUPER_MAGIC:
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/FileSystem.cpp:267:10: error: ‘SMB_SUPER_MAGIC’ was not declared in this scope
case SMB_SUPER_MAGIC:
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/PipePosix.cpp: In member function ‘virtual lldb_private::Error lldb_private::PipePosix::CreateNew(bool)’:
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/PipePosix.cpp:174:9: error: ‘::pipe2’ has not been declared
if (::pipe2(m_fds, (child_processes_inherit) ? 0 : O_CLOEXEC) == 0)
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/PipePosix.cpp:174:56: error: ‘O_CLOEXEC’ was not declared in this scope
if (::pipe2(m_fds, (child_processes_inherit) ? 0 : O_CLOEXEC) == 0)
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/PipePosix.cpp: In member function ‘virtual lldb_private::Error lldb_private::PipePosix::OpenAsReader(llvm::StringRef, bool)’:
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/PipePosix.cpp:252:18: error: ‘O_CLOEXEC’ was not declared in this scope
flags |= O_CLOEXEC;
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/PipePosix.cpp: In member function ‘virtual lldb_private::Error lldb_private::PipePosix::OpenAsWriterWithTimeout(llvm::StringRef, bool, const microseconds&)’:
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/posix/PipePosix.cpp:272:18: error: ‘O_CLOEXEC’ was not declared in this scope
flags |= O_CLOEXEC;
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/linux/HostThreadLinux.cpp: In static member function ‘static void lldb_private::HostThreadLinux::SetName(lldb::thread_t, llvm::StringRef)’:
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Host/linux/HostThreadLinux.cpp:34:5: error: ‘::pthread_setname_np’ has not been declared
::pthread_setname_np(thread, name.data());
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/include/lldb/Host/linux/Signalfd.h:51:26: fatal error: sys/signalfd.h: No such file or directory
#include <sys/signalfd.h>
In file included from /usr/include/asm-x86_64/fcntl.h:1:0,
from /usr/include/asm/fcntl.h:5,
from /usr/include/linux/fcntl.h:4,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/include/lldb/Host/linux/Signalfd.h:22,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:61:
/usr/include/asm-generic/fcntl.h:115:8: error: redefinition of ‘struct flock’
struct flock {
^
In file included from /usr/include/fcntl.h:34:0,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/include/lldb/Utility/PseudoTerminal.h:15,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/include/lldb/Target/ProcessLaunchInfo.h:22,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/include/lldb/Target/Process.h:43,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:37:
/usr/include/bits/fcntl.h:155:8: error: previous definition of ‘struct flock’
struct flock
^
In file included from /usr/include/asm-x86_64/fcntl.h:1:0,
from /usr/include/asm/fcntl.h:5,
from /usr/include/linux/fcntl.h:4,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/include/lldb/Host/linux/Signalfd.h:22,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:61:
/usr/include/asm-generic/fcntl.h:138:8: error: redefinition of ‘struct flock64’
struct flock64 {
^
In file included from /usr/include/fcntl.h:34:0,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/include/lldb/Utility/PseudoTerminal.h:15, [10/1843]
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/include/lldb/Target/ProcessLaunchInfo.h:22,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/include/lldb/Target/Process.h:43,
from /build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:37:
/usr/include/bits/fcntl.h:170:8: error: previous definition of ‘struct flock64’
struct flock64
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp: In member function ‘pid_t lldb_private::process_linux::NativeProcessLinux::Launch(lldb_p
rivate::process_linux::NativeProcessLinux::LaunchArgs*, lldb_private::Error&)’:
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:622:58: error: ‘ADDR_NO_RANDOMIZE’ was not declared in this scope
const int new_personality = personality (ADDR_NO_RANDOMIZE | old_personality);
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp: In static member function ‘static lldb_private::Error lldb_private::process_linux::Nativ
eProcessLinux::SetDefaultPtraceOpts(lldb::pid_t)’:
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:893:20: error: ‘PTRACE_O_TRACEEXIT’ was not declared in this scope
ptrace_opts |= PTRACE_O_TRACEEXIT;
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:898:20: error: ‘PTRACE_O_TRACECLONE’ was not declared in this scope
ptrace_opts |= PTRACE_O_TRACECLONE;
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:902:20: error: ‘PTRACE_O_TRACEEXEC’ was not declared in this scope
ptrace_opts |= PTRACE_O_TRACEEXEC;
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp: In member function ‘void lldb_private::process_linux::NativeProcessLinux::MonitorSIGTRAP
(const siginfo_t&, lldb_private::process_linux::NativeThreadLinux&)’:
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:1161:22: error: ‘PTRACE_EVENT_CLONE’ was not declared in this scope
case (SIGTRAP | (PTRACE_EVENT_CLONE << 8)):
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:1181:22: error: ‘PTRACE_EVENT_EXEC’ was not declared in this scope
case (SIGTRAP | (PTRACE_EVENT_EXEC << 8)):
^
/build/robotics/workspace/lldb_publish/llvm/tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:1240:22: error: ‘PTRACE_EVENT_EXIT’ was not declared in this scope
case (SIGTRAP | (PTRACE_EVENT_EXIT << 8)):
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment