As part of helping to resolve old libdispatch pull requests, I have run
into a problem with the GLibc module map on Linux that I need help
understanding and fixing.

The symptom I am trying to resolve is that somewhere between the March 16
and March 24 Swift development snapshots, the Dispatch overlay for
libdispatch on Linux stopped building.  We've been hacking around the
problem for 2 months (
https://github.com/apple/swift-corelibs-libdispatch/pull/62), but we don't
want to merge that hack back to the master branch of libdispatch.

The issue is that swiftc is convinced that off_t and mode_t should be
defined in the stdio module (by including stdio.h).  We don't want to
include stdio.h in dispatch.h;  it is sufficient (and the C compilation of
libdispatch succeeds) to only include fcntl.h and unistd.h.  However
without including stdio.h in dispatch.h, building the swiftmodule from
Dispatch.swift fails, starting with the March 24 driver (and is still
broken on master as of this morning).

I can hack around this by (a) including stdio.h in dispatch.h  or (b)
editing glibc.modulemap.gyb to put the module statements for fnctl and
unistd before the modile statement for stdio.   Neither of these seem like
the right fix.

Can anyone point me to a better solution?

I've attached the full buildlog.   The actual build errors are excerpted
below as well.

thanks,

--dave

(See attached file: buildLog.txt)

make[2]: Entering directory
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src'
/home/dgrove/swift/build/dpg/swift-linux-x86_64/bin/swiftc -Xcc
-fmodule-map-file=/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/module.map
 -I/home/dgrove/swift/swift-corelibs-libdispatch -parse-as-library -Xcc
-fblocks -c
-o /home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src/Dispatch.o 
/home/dgrove/swift/swift-corelibs-libdispatch/src/swift/Dispatch.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "dispatch.h"
         ^
/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/dispatch.h:59:10:
note: in file included
from /home/dgrove/swift/swift-corelibs-libdispatch/dispatch/dispatch.h:59:
#include <dispatch/io.h>
         ^
/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/io.h:253:31: error:
declaration of 'mode_t' must be imported from module
'SwiftGlibc.POSIX.sys.types' before it is required
        const char *path, int oflag, mode_t mode,
                                     ^
/usr/include/x86_64-linux-gnu/sys/types.h:70:18: note: previous declaration
is here
typedef __mode_t mode_t;
                 ^
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "dispatch.h"
         ^
/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/dispatch.h:59:10:
note: in file included
from /home/dgrove/swift/swift-corelibs-libdispatch/dispatch/dispatch.h:59:
#include <dispatch/io.h>
         ^
/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/io.h:355:2: error:
declaration of 'off_t' must be imported from module 'SwiftGlibc.C.stdio'
before it is required
        off_t offset,
        ^
/usr/include/stdio.h:90:17: note: previous declaration is here
typedef __off_t off_t;
                ^
/home/dgrove/swift/swift-corelibs-libdispatch/src/swift/Dispatch.swift:13:19:
 error: could not build Objective-C module 'Dispatch'
@_exported import Dispatch
                  ^
Makefile:909: recipe for target
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src/Dispatch.o'
failed
make[2]: ***
[/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src/Dispatch.o]
Error 1
make[2]: Leaving directory
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src'
Makefile:493: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src'
Makefile:454: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
./utils/build-script: command terminated with a non-zero exit status 2,
aborting
./utils/build-script: command terminated with a non-zero exit status 1,
aborting
./utils/build-script: using preset 'dpg', which expands to 

./utils/build-script --assertions --no-swift-stdlib-assertions --llbuild 
--swiftpm --xctest --build-subdir=dpg --lldb --release --foundation 
--libdispatch --debug-swift --debug-swift-stdlib -- 
--swift-enable-ast-verifier=0 --install-swift --install-lldb --install-llbuild 
--install-swiftpm --install-xctest --install-prefix=/usr 
'--swift-install-components=autolink-driver;compiler;clang-builtin-headers;stdlib;sdk-overlay;license'
 --build-swift-static-stdlib --build-swift-stdlib-unittest-extra 
--test-installable-package 
--install-destdir=/home/dgrove/swift/swift-local-install 
--installable-package=/home/dgrove/swift/swift_dpg.tar.gz --install-foundation 
--install-libdispatch --reconfigure

+ mkdir -p /home/dgrove/swift/build/dpg
Building the standard library for: swift-stdlib-linux-x86_64
cmark: using gold linker
+ rm -rf /home/dgrove/swift/build/dpg/cmark-linux-x86_64/module-cache
+ mkdir -p /home/dgrove/swift/build/dpg/cmark-linux-x86_64/module-cache
+ mkdir -p /home/dgrove/swift/build/dpg/cmark-linux-x86_64
+ pushd /home/dgrove/swift/build/dpg/cmark-linux-x86_64
~/swift/build/dpg/cmark-linux-x86_64 ~/swift/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang 
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ 
-DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold 
-DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold 
-DCMAKE_BUILD_TYPE:STRING=Release /home/dgrove/swift/cmark
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/dgrove/swift/build/dpg/cmark-linux-x86_64
+ popd
~/swift/swift
+ /usr/bin/cmake --build /home/dgrove/swift/build/dpg/cmark-linux-x86_64 -- -j2 
all
ninja: no work to do.
llvm: using gold linker
+ rm -rf /home/dgrove/swift/build/dpg/llvm-linux-x86_64/module-cache
+ mkdir -p /home/dgrove/swift/build/dpg/llvm-linux-x86_64/module-cache
+ mkdir -p /home/dgrove/swift/build/dpg/llvm-linux-x86_64
+ pushd /home/dgrove/swift/build/dpg/llvm-linux-x86_64
~/swift/build/dpg/llvm-linux-x86_64 ~/swift/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang 
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ 
-DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold 
-DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold '-DCMAKE_C_FLAGS=  
-fno-stack-protector' '-DCMAKE_CXX_FLAGS=  -fno-stack-protector' 
-DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE 
-DLLVM_TOOL_SWIFT_BUILD:BOOL=NO 
'-DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ' 
-DLLVM_INCLUDE_TESTS:BOOL=TRUE -DLLVM_INCLUDE_DOCS:BOOL=TRUE 
-DLLVM_ENABLE_LTO=FALSE -DCMAKE_INSTALL_PREFIX:PATH=/usr/ 
-DINTERNAL_INSTALL_PREFIX=local /home/dgrove/swift/llvm
-- Target triple: x86_64-unknown-linux-gnu
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing:  OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing:  OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Targeting ARM
-- Targeting AArch64
-- Targeting PowerPC
-- Targeting SystemZ
-- Clang version: 3.9.0
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/dgrove/swift/build/dpg/llvm-linux-x86_64
+ popd
~/swift/swift
symlinking the system headers (/usr/include/c++) into the local clang build 
directory (/home/dgrove/swift/build/dpg/llvm-linux-x86_64/include).
+ ln -s -f /usr/include/c++ 
/home/dgrove/swift/build/dpg/llvm-linux-x86_64/include
+ /usr/bin/cmake --build /home/dgrove/swift/build/dpg/llvm-linux-x86_64 -- -j2 
all
ninja: no work to do.
swift: using gold linker
+ rm -rf /home/dgrove/swift/build/dpg/swift-linux-x86_64/module-cache
+ mkdir -p /home/dgrove/swift/build/dpg/swift-linux-x86_64/module-cache
+ mkdir -p /home/dgrove/swift/build/dpg/swift-linux-x86_64
+ pushd /home/dgrove/swift/build/dpg/swift-linux-x86_64
~/swift/build/dpg/swift-linux-x86_64 ~/swift/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang 
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DSWIFT_ENABLE_GOLD_LINKER=TRUE 
-DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS= -DCMAKE_BUILD_TYPE:STRING=Debug 
-DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE -DLLVM_ENABLE_LTO=FALSE 
-DSWIFT_ANALYZE_CODE_COVERAGE:STRING=FALSE 
-DSWIFT_STDLIB_BUILD_TYPE:STRING=Debug -DSWIFT_STDLIB_ASSERTIONS:BOOL=FALSE 
-DSWIFT_STDLIB_ENABLE_RESILIENCE:BOOL=FALSE 
-DSWIFT_STDLIB_SIL_SERIALIZE_ALL:BOOL=TRUE 
-DSWIFT_NATIVE_LLVM_TOOLS_PATH:STRING= -DSWIFT_NATIVE_CLANG_TOOLS_PATH:STRING= 
-DSWIFT_NATIVE_SWIFT_TOOLS_PATH:STRING= -DSWIFT_BUILD_TOOLS:BOOL=TRUE 
-DSWIFT_BUILD_STDLIB:BOOL=TRUE -DSWIFT_SERIALIZE_STDLIB_UNITTEST:BOOL=FALSE 
-DSWIFT_STDLIB_SIL_DEBUGGING:BOOL=FALSE 
-DSWIFT_CHECK_INCREMENTAL_COMPILATION:BOOL=FALSE 
-DSWIFT_BUILD_SDK_OVERLAY:BOOL=TRUE -DSWIFT_BUILD_STATIC_STDLIB:BOOL=TRUE 
-DSWIFT_BUILD_PERF_TESTSUITE:BOOL=TRUE -DSWIFT_BUILD_EXAMPLES:BOOL=TRUE 
-DSWIFT_INCLUDE_TESTS:BOOL=TRUE 
'-DSWIFT_INSTALL_COMPONENTS:STRING=autolink-driver;compiler;clang-builtin-headers;stdlib;sdk-overlay;license'
 -DSWIFT_EMBED_BITCODE_SECTION:BOOL=FALSE -DSWIFT_ENABLE_LTO:BOOL=FALSE 
-DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=TRUE -DSWIFT_HOST_VARIANT=linux 
-DSWIFT_HOST_VARIANT_SDK=LINUX -DSWIFT_HOST_VARIANT_ARCH=x86_64 
-DSWIFT_DARWIN_XCRUN_TOOLCHAIN:STRING=default -DSWIFT_AST_VERIFIER:BOOL=FALSE 
-DSWIFT_SIL_VERIFY_ALL:BOOL=FALSE 
-DSWIFT_RUNTIME_ENABLE_LEAK_CHECKER:BOOL=FALSE 
-DCMAKE_INSTALL_PREFIX:PATH=/usr/ 
-DLLVM_CONFIG:PATH=/home/dgrove/swift/build/dpg/llvm-linux-x86_64/bin/llvm-config
 -DSWIFT_PATH_TO_CLANG_SOURCE:PATH=/home/dgrove/swift/llvm/tools/clang 
-DSWIFT_PATH_TO_CLANG_BUILD:PATH=/home/dgrove/swift/build/dpg/llvm-linux-x86_64 
-DSWIFT_PATH_TO_LLVM_SOURCE:PATH=/home/dgrove/swift/llvm 
-DSWIFT_PATH_TO_LLVM_BUILD:PATH=/home/dgrove/swift/build/dpg/llvm-linux-x86_64 
-DSWIFT_PATH_TO_CMARK_SOURCE:PATH=/home/dgrove/swift/cmark 
-DSWIFT_PATH_TO_CMARK_BUILD:PATH=/home/dgrove/swift/build/dpg/cmark-linux-x86_64
 
-DSWIFT_CMARK_LIBRARY_DIR:PATH=/home/dgrove/swift/build/dpg/cmark-linux-x86_64/src
 -DSWIFT_SDKS:STRING=LINUX 
-DSWIFT_EXEC:STRING=/home/dgrove/swift/build/dpg/swift-linux-x86_64/bin/swiftc 
/home/dgrove/swift/swift
-- Found LLVM_CONFIG as 
/home/dgrove/swift/build/dpg/llvm-linux-x86_64/bin/llvm-config
-- Building with -fPIC
-- Linux SDK:
--   Path: /
--   Version: don't use
--   Build number: don't use
--   Deployment version: don't use
--   Library subdir: linux
--   Version min name: 
--   Triple name: linux
--   Architectures: x86_64
--   Triple for x86_64 is x86_64-unknown-linux-gnu
-- 
-- Building host Swift tools for LINUX x86_64
--   Build type: Debug
--   Assertions: TRUE
--   LTO:        FALSE
-- 
-- Building Swift standard library and SDK overlays for SDKs: LINUX
--   Build type: Debug
--   Assertions: FALSE
-- 
-- Building Swift runtime with:
--   Leak Detection Checker Entrypoints: FALSE
-- 
-- Swift version: 3.0
-- Swift vendor: 
-- Swift compiler version: 
-- Embedded clang compiler version: 
CMake Warning at stdlib/CMakeLists.txt:5 (message):
  Building the swift runtime using the host compiler, and not the just-built
  clang.


CMake Warning at docs/CMakeLists.txt:130 (message):
  LitRe not found; code examples won't be tested.


-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/dgrove/swift/build/dpg/swift-linux-x86_64
+ popd
~/swift/swift
+ /usr/bin/cmake --build /home/dgrove/swift/build/dpg/swift-linux-x86_64 -- -j2 
all swift-stdlib-linux-x86_64
[1/2] Symlinking Clang resource headers into 
/home/dgrove/swift/build/dpg/swift-linux-x86_64/./lib/swift/clang
[2/2] Building HTML documentation
Running Sphinx v1.2.3
loading pickled environment... done
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
lldb: using gold linker
+ rm -rf /home/dgrove/swift/build/dpg/lldb-linux-x86_64/module-cache
+ mkdir -p /home/dgrove/swift/build/dpg/lldb-linux-x86_64/module-cache
+ mkdir -p /home/dgrove/swift/build/dpg/lldb-linux-x86_64
+ pushd /home/dgrove/swift/build/dpg/lldb-linux-x86_64
~/swift/build/dpg/lldb-linux-x86_64 ~/swift/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang 
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ 
-DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold 
-DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold 
-DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr/ 
-DLLDB_PATH_TO_LLVM_SOURCE:PATH=/home/dgrove/swift/llvm 
-DLLDB_PATH_TO_CLANG_SOURCE:PATH=/home/dgrove/swift/llvm/tools/clang 
-DLLDB_PATH_TO_SWIFT_SOURCE:PATH=/home/dgrove/swift/swift 
-DLLDB_PATH_TO_LLVM_BUILD:PATH=/home/dgrove/swift/build/dpg/llvm-linux-x86_64 
-DLLDB_PATH_TO_CLANG_BUILD:PATH=/home/dgrove/swift/build/dpg/llvm-linux-x86_64 
-DLLDB_PATH_TO_SWIFT_BUILD:PATH=/home/dgrove/swift/build/dpg/swift-linux-x86_64 
-DLLDB_PATH_TO_CMARK_BUILD:PATH=/home/dgrove/swift/build/dpg/cmark-linux-x86_64 
-DLLDB_PATH_TO_SWIFTC:PATH=/home/dgrove/swift/build/dpg/swift-linux-x86_64/bin/swiftc
 -DLLDB_IS_BUILDBOT_BUILD=0 '-DLLDB_BUILD_DATE:STRING="2016-06-02"' 
-DLLDB_ALLOW_STATIC_BINDINGS=1 /home/dgrove/swift/lldb
-- Found PythonInterp: /usr/bin/python2.7
-- LLDB version: 3.9.0
-- Symbols (liblldb): only exporting liblldb.exports symbols
-- Configuring done
CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbBase" does not exist.
Call Stack (most recent call first):
  source/CMakeLists.txt:56 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbBreakpoint" does not exist.
Call Stack (most recent call first):
  source/Breakpoint/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbCommands" does not exist.
Call Stack (most recent call first):
  source/Commands/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbCore" does not exist.
Call Stack (most recent call first):
  source/Core/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbDataFormatters" does not
  exist.
Call Stack (most recent call first):
  source/DataFormatters/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbExpression" does not exist.
Call Stack (most recent call first):
  source/Expression/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbHost" does not exist.
Call Stack (most recent call first):
  source/Host/CMakeLists.txt:186 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbInitialization" does not
  exist.
Call Stack (most recent call first):
  source/Initialization/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbInterpreter" does not
  exist.
Call Stack (most recent call first):
  source/Interpreter/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABISysV_arm" does not
  exist.
Call Stack (most recent call first):
  source/Plugins/ABI/SysV-arm/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABISysV_arm64" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/SysV-arm64/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABISysV_hexagon" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/SysV-hexagon/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABISysV_ppc" does not
  exist.
Call Stack (most recent call first):
  source/Plugins/ABI/SysV-ppc/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABISysV_ppc64" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/SysV-ppc64/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABISysV_mips" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/SysV-mips/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABISysV_mips64" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/SysV-mips64/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABISysV_s390x" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/SysV-s390x/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABISysV_i386" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/SysV-i386/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABISysV_x86_64" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/SysV-x86_64/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABIMacOSX_i386" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/MacOSX-i386/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABIMacOSX_arm" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/MacOSX-arm/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginABIMacOSX_arm64" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ABI/MacOSX-arm64/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginDisassemblerLLVM"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/Disassembler/llvm/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginDynamicLoaderMacOSXDYLD" does not exist.
Call Stack (most recent call first):
  source/Plugins/DynamicLoader/MacOSX-DYLD/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginDynamicLoaderPosixDYLD" does not exist.
Call Stack (most recent call first):
  source/Plugins/DynamicLoader/POSIX-DYLD/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginDynamicLoaderStatic"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/DynamicLoader/Static/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginDynamicLoaderHexagonDYLD" does not exist.
Call Stack (most recent call first):
  source/Plugins/DynamicLoader/Hexagon-DYLD/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginDynamicLoaderWindowsDYLD" does not exist.
Call Stack (most recent call first):
  source/Plugins/DynamicLoader/Windows-DYLD/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginExpressionParserClang" does not exist.
Call Stack (most recent call first):
  source/Plugins/ExpressionParser/Clang/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginExpressionParserGo"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/ExpressionParser/Go/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginExpressionParserSwift" does not exist.
Call Stack (most recent call first):
  source/Plugins/ExpressionParser/Swift/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginInstructionARM" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Instruction/ARM/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginInstructionARM64"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/Instruction/ARM64/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginInstructionMIPS" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Instruction/MIPS/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginInstructionMIPS64"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/Instruction/MIPS64/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginInstrumentationRuntimeAddressSanitizer" does not exist.
Call Stack (most recent call first):
  source/Plugins/InstrumentationRuntime/AddressSanitizer/CMakeLists.txt:1 
(add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginInstrumentationRuntimeThreadSanitizer" does not exist.
Call Stack (most recent call first):
  source/Plugins/InstrumentationRuntime/ThreadSanitizer/CMakeLists.txt:1 
(add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginJITLoaderGDB" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/JITLoader/GDB/CMakeLists.txt:3 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginCPlusPlusLanguage"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/Language/CPlusPlus/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginGoLanguage" does not
  exist.
Call Stack (most recent call first):
  source/Plugins/Language/Go/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginJavaLanguage" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Language/Java/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginObjCLanguage" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Language/ObjC/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginObjCPlusPlusLanguage"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/Language/ObjCPlusPlus/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginSwiftLanguage" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Language/Swift/CMakeLists.txt:3 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginCXXItaniumABI" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/CMakeLists.txt:1 
(add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginAppleObjCRuntime"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/CMakeLists.txt:1 
(add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginLanguageRuntimeGo"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/LanguageRuntime/Go/CMakeLists.txt:3 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginLanguageRuntimeJava"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/LanguageRuntime/Java/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginRenderScriptRuntime"
  does not exist.
Call Stack (most recent call first):
  
source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/CMakeLists.txt:1
 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginMemoryHistoryASan"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/MemoryHistory/asan/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginObjectContainerBSDArchive" does not exist.
Call Stack (most recent call first):
  source/Plugins/ObjectContainer/BSD-Archive/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginObjectContainerMachOArchive" does not exist.
Call Stack (most recent call first):
  source/Plugins/ObjectContainer/Universal-Mach-O/CMakeLists.txt:1 
(add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginObjectFileELF" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ObjectFile/ELF/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginObjectFileMachO" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ObjectFile/Mach-O/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginObjectFilePECOFF"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/ObjectFile/PECOFF/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginObjectFileJIT" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/ObjectFile/JIT/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginOSGo" does not exist.
Call Stack (most recent call first):
  source/Plugins/OperatingSystem/Go/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginOSPython" does not
  exist.
Call Stack (most recent call first):
  source/Plugins/OperatingSystem/Python/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginPlatformLinux" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Platform/Linux/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginPlatformFreeBSD" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Platform/FreeBSD/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginPlatformNetBSD" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Platform/NetBSD/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginPlatformMacOSX" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Platform/MacOSX/CMakeLists.txt:27 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginPlatformWindows" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Platform/Windows/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginPlatformPOSIX" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Platform/POSIX/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginPlatformGDB" does not
  exist.
Call Stack (most recent call first):
  source/Plugins/Platform/gdb-server/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginPlatformKalimba" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Platform/Kalimba/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginPlatformAndroid" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Platform/Android/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginProcessLinux" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Process/Linux/CMakeLists.txt:5 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginProcessPOSIX" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Process/POSIX/CMakeLists.txt:4 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginProcessGDBRemote"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/Process/gdb-remote/CMakeLists.txt:5 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginProcessUtility" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Process/Utility/CMakeLists.txt:3 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginProcessMachCore" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Process/mach-core/CMakeLists.txt:3 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginProcessElfCore" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/Process/elf-core/CMakeLists.txt:3 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginScriptInterpreterNone" does not exist.
Call Stack (most recent call first):
  source/Plugins/ScriptInterpreter/None/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginScriptInterpreterPython" does not exist.
Call Stack (most recent call first):
  source/Plugins/ScriptInterpreter/Python/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginSymbolFileDWARF" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/SymbolFile/DWARF/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginSymbolFileSymtab"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/SymbolFile/Symtab/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginSystemRuntimeMacOSX"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/SystemRuntime/MacOSX/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginSymbolVendorELF" does
  not exist.
Call Stack (most recent call first):
  source/Plugins/SymbolVendor/ELF/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target
  "lldbPluginUnwindAssemblyInstEmulation" does not exist.
Call Stack (most recent call first):
  source/Plugins/UnwindAssembly/InstEmulation/CMakeLists.txt:1 
(add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbPluginUnwindAssemblyX86"
  does not exist.
Call Stack (most recent call first):
  source/Plugins/UnwindAssembly/x86/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbSymbol" does not exist.
Call Stack (most recent call first):
  source/Symbol/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbTarget" does not exist.
Call Stack (most recent call first):
  source/Target/CMakeLists.txt:3 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "lldbUtility" does not exist.
Call Stack (most recent call first):
  source/Utility/CMakeLists.txt:1 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/modules/AddLLDB.cmake:96 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "libclang" of target "liblldb" does not exist.
Call Stack (most recent call first):
  source/API/CMakeLists.txt:14 (add_lldb_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: 
/home/dgrove/swift/build/dpg/lldb-linux-x86_64
+ popd
~/swift/swift
+ /usr/bin/cmake --build /home/dgrove/swift/build/dpg/lldb-linux-x86_64 -- -j2 
all
[1/3] Python script sym-linking LLDB Python API
[2/3] cd /home/dgrove/swift/build/dpg/lldb-linux-x86_64/tools/repl/swift && 
/usr/bin/cmake -E remove_directory 
/home/dgrove/swift/build/dpg/lldb-linux-x86_64/./repl_swift_module_cache
[3/3] cd /home/dgrove/swift/build/dpg/lldb-linux-x86_64/tools/repl/swift && 
/usr/bin/cmake -E make_directory 
/home/dgrove/swift/build/dpg/lldb-linux-x86_64/./repl_swift_module_cache
llbuild: using gold linker
+ rm -rf /home/dgrove/swift/build/dpg/llbuild-linux-x86_64/module-cache
+ mkdir -p /home/dgrove/swift/build/dpg/llbuild-linux-x86_64/module-cache
+ mkdir -p /home/dgrove/swift/build/dpg/llbuild-linux-x86_64
+ pushd /home/dgrove/swift/build/dpg/llbuild-linux-x86_64
~/swift/build/dpg/llbuild-linux-x86_64 ~/swift/swift
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang 
-DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ 
-DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold 
-DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold 
-DCMAKE_INSTALL_PREFIX:PATH=/usr/ 
-DLIT_EXECUTABLE:PATH=/home/dgrove/swift/llvm/utils/lit/lit.py 
-DFILECHECK_EXECUTABLE:PATH=/home/dgrove/swift/build/dpg/llvm-linux-x86_64/bin/FileCheck
 -DCMAKE_BUILD_TYPE:STRING=Debug -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE 
-DLLBUILD_SUPPORT_BINDINGS:= /home/dgrove/swift/llbuild
-- Not building Swift bindings
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/dgrove/swift/build/dpg/llbuild-linux-x86_64
+ popd
~/swift/swift
+ /usr/bin/cmake --build /home/dgrove/swift/build/dpg/llbuild-linux-x86_64 -- 
-j2 all
ninja: no work to do.
libdispatch: using gold linker
+ pushd /home/dgrove/swift/build/dpg/libdispatch-linux-x86_64
~/swift/build/dpg/libdispatch-linux-x86_64 ~/swift/swift
+ make
Making all in dispatch
make[1]: Entering directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/dispatch'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/dispatch'
Making all in libpwq
make[1]: Entering directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/libpwq'
make  all-am
make[2]: Entering directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/libpwq'
make[2]: Leaving directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/libpwq'
make[1]: Leaving directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/libpwq'
Making all in man
make[1]: Entering directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/man'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/man'
Making all in os
make[1]: Entering directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/os'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/os'
Making all in private
make[1]: Entering directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/private'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/private'
Making all in src
make[1]: Entering directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src'
make  all-am
make[2]: Entering directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src'
/home/dgrove/swift/build/dpg/swift-linux-x86_64/bin/swiftc -Xcc 
-fmodule-map-file=/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/module.map
 -I/home/dgrove/swift/swift-corelibs-libdispatch -parse-as-library -Xcc 
-fblocks -c -o 
/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src/Dispatch.o 
/home/dgrove/swift/swift-corelibs-libdispatch/src/swift/Dispatch.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "dispatch.h"
         ^
/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/dispatch.h:59:10: note: 
in file included from 
/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/dispatch.h:59:
#include <dispatch/io.h>
         ^
/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/io.h:253:31: error: 
declaration of 'mode_t' must be imported from module 
'SwiftGlibc.POSIX.sys.types' before it is required
        const char *path, int oflag, mode_t mode,
                                     ^
/usr/include/x86_64-linux-gnu/sys/types.h:70:18: note: previous declaration is 
here
typedef __mode_t mode_t;
                 ^
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "dispatch.h"
         ^
/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/dispatch.h:59:10: note: 
in file included from 
/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/dispatch.h:59:
#include <dispatch/io.h>
         ^
/home/dgrove/swift/swift-corelibs-libdispatch/dispatch/io.h:355:2: error: 
declaration of 'off_t' must be imported from module 'SwiftGlibc.C.stdio' before 
it is required
        off_t offset,
        ^
/usr/include/stdio.h:90:17: note: previous declaration is here
typedef __off_t off_t;
                ^
/home/dgrove/swift/swift-corelibs-libdispatch/src/swift/Dispatch.swift:13:19: 
error: could not build Objective-C module 'Dispatch'
@_exported import Dispatch
                  ^
Makefile:909: recipe for target 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src/Dispatch.o' failed
make[2]: *** 
[/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src/Dispatch.o] Error 1
make[2]: Leaving directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src'
Makefile:493: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory 
'/home/dgrove/swift/build/dpg/libdispatch-linux-x86_64/src'
Makefile:454: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
./utils/build-script: command terminated with a non-zero exit status 2, aborting
./utils/build-script: command terminated with a non-zero exit status 1, aborting

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to