<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">This sounds like we’ve included a header which does not exist on Ubuntu 14.04 in CoreFoundation.h.<div class=""><br class=""></div><div class=""><a href="https://github.com/apple/swift-corelibs-foundation/blob/master/CoreFoundation/Base.subproj/SwiftRuntime/CoreFoundation.h#L36" class="">https://github.com/apple/swift-corelibs-foundation/blob/master/CoreFoundation/Base.subproj/SwiftRuntime/CoreFoundation.h#L36</a></div><div class=""><br class=""></div><div class="">but that include has been there since the beginning… (and the sys/types.h include)</div><div class=""><br class=""></div><div class="">- Tony</div><div class=""><br class=""></div><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Jan 18, 2017, at 6:57 AM, Andrew Cornett via swift-server-dev &lt;<a href="mailto:swift-server-dev@swift.org" class="">swift-server-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Has anyone been able to `import Foundation` using a development snapshot on Ubuntu 14.04? I'm getting errors that make it seem like my environment isn't setup correctly, but the same environment works fine for the 3.0.2 release.<br class=""><br class="">```<br class="">root@a079e93a1c57:/# swift <br class="">Welcome to Swift version 3.1-dev (LLVM 7e421db87c, Clang 8df9d5d9f9, Swift 6f08335ce0). Type :help for assistance.<br class=""> &nbsp;1&gt; import Foundation<br class=""><br class="">error: /usr/include/x86_64-linux-gnu/sys/types.h:146:10: error: 'stddef.h' file not found<br class="">error: /usr/lib/swift/CoreFoundation/CoreFoundation.h:25:10: error: could not build module 'SwiftGlibc'<br class="">error: /usr/include/x86_64-linux-gnu/sys/cdefs.h:23:11: error: could not build module 'SwiftGlibc'<br class="">error: could not build Objective-C module 'CoreFoundation'<br class="">```<br class=""><br class="">I've tried manually providing some include paths to the swift command, which did remove the SwiftGlibc error, but nothing else seems to be working out for me :-(<br class=""><br class="">```<br class="">root@a079e93a1c57:/# swift -I /usr/include/lldb/Symbol -I /usr/lib/swift/clang/include<br class="">Welcome to Swift version 3.1-dev (LLVM 7e421db87c, Clang 8df9d5d9f9, Swift 6f08335ce0). Type :help for assistance.<br class=""> &nbsp;1&gt; import Glibc<br class=""> &nbsp;2&gt; &nbsp;<br class=""> &nbsp;3&gt; print(random())<br class="">1804289383<br class=""> &nbsp;4&gt; <br class=""> &nbsp;5&gt; import Foundation<br class=""><br class="">error: /usr/lib/swift/CoreFoundation/CoreFoundation.h:26:10: error: 'stdarg.h' file not found<br class="">error: /usr/lib/swift/dispatch/dispatch.h:43:10: error: 'stddef.h' file not found<br class="">error: could not build Objective-C module 'CoreFoundation'<br class="">```<br class=""><br class="">Since the 3.0.2 release version can import Foundation no problem, I'm wondering if there's something I'm missing when setting up a new development snapshot?<br class=""><br class="">_______________________________________________<br class="">swift-server-dev mailing list<br class=""><a href="mailto:swift-server-dev@swift.org" class="">swift-server-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-server-dev<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>