[swift-corelibs-dev] Troubleshooting libdispatch build failure

Jean-Pierre Simard jp at jpsim.com
Wed Jul 6 15:28:38 CDT 2016


Up until a few days ago, running 'util/build-script --libdispatch'
completed successfully.

Now it fails, generating the following errors. Any ideas on how to resolve
these? Or other ways people are using to build libdispatch at the moment?
Thanks!

/bin/bash ../libtool  --tag=CXX   --mode=compile
/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang++ -DHAVE_CONFIG_H -I.
-I//swift-corelibs-libdispatch/src -I../config  -I..
-I//swift-corelibs-libdispatch -I//swift-corelibs-libdispatch/private
-DDISPATCH_USE_DTRACE=0 -I//swift-corelibs-libdispatch/libpwq/include -Wall
-fvisibility=hidden -momit-leaf-frame-pointer  -I/usr/include/kqueue
-isystem /usr/include/bsd -DLIBBSD_OVERLAY -fblocks -std=gnu++11
-fno-exceptions -g -O2 -c -o swift/libdispatch_la-DispatchStubs.lo `test -f
'swift/DispatchStubs.cc' || echo
'//swift-corelibs-libdispatch/src/'`swift/DispatchStubs.cc
libtool: compile:  /build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang++
-DHAVE_CONFIG_H -I. -I//swift-corelibs-libdispatch/src -I../config -I..
-I//swift-corelibs-libdispatch -I//swift-corelibs-libdispatch/private
-DDISPATCH_USE_DTRACE=0 -I//swift-corelibs-libdispatch/libpwq/include -Wall
-fvisibility=hidden -momit-leaf-frame-pointer -I/usr/include/kqueue
-isystem /usr/include/bsd -DLIBBSD_OVERLAY -fblocks -std=gnu++11
-fno-exceptions -g -O2 -c
//swift-corelibs-libdispatch/src/swift/DispatchStubs.cc  -fPIC -DPIC -o
swift/.libs/libdispatch_la-DispatchStubs.o
/build/Ninja-DebugAssert/swift-linux-x86_64/bin/swiftc -frontend -c
//swift-corelibs-libdispatch/src/swift/Block.swift
//swift-corelibs-libdispatch/src/swift/Data.swift
//swift-corelibs-libdispatch/src/swift/Dispatch.swift
//swift-corelibs-libdispatch/src/swift/IO.swift
//swift-corelibs-libdispatch/src/swift/Private.swift
//swift-corelibs-libdispatch/src/swift/Queue.swift
//swift-corelibs-libdispatch/src/swift/Source.swift
//swift-corelibs-libdispatch/src/swift/Time.swift
//swift-corelibs-libdispatch/src/swift/Wrapper.swift -primary-file
//swift-corelibs-libdispatch/src/swift/Block.swift \
-Xcc
-fmodule-map-file=//swift-corelibs-libdispatch/dispatch/module.modulemap
-I//swift-corelibs-libdispatch -Xcc -fblocks -module-name Dispatch
-module-link-name dispatch \
-o /build/Ninja-DebugAssert/libdispatch-linux-x86_64/src/swift/Block.o
-emit-module-path
/build/Ninja-DebugAssert/libdispatch-linux-x86_64/src/swift/Block.o.~partial.swiftmodule
\
-emit-module-doc-path
/build/Ninja-DebugAssert/libdispatch-linux-x86_64/src/swift/Block.o.~partial.swiftdoc
-emit-dependencies-path
/build/Ninja-DebugAssert/libdispatch-linux-x86_64/src/swift/Block.o.d \
-emit-reference-dependencies-path
/build/Ninja-DebugAssert/libdispatch-linux-x86_64/src/swift/Block.o.swiftdeps
\
-module-cache-path ..
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "dispatch.h"
         ^
//swift-corelibs-libdispatch/dispatch/dispatch.h:99:10: error:
'os/object.h' file not found
#include <os/object.h>
         ^
//swift-corelibs-libdispatch/src/swift/Block.swift:13:8: error: could not
build Objective-C module 'CDispatch'
import CDispatch
       ^
Makefile:956: recipe for target
'/build/Ninja-DebugAssert/libdispatch-linux-x86_64/src/swift/Block.o' failed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160706/70c75f69/attachment.html>


More information about the swift-corelibs-dev mailing list