Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created December 13, 2017 07:59
Show Gist options
  • Save kaworu/de13675cad73883a57bf8a43e5f13428 to your computer and use it in GitHub Desktop.
Save kaworu/de13675cad73883a57bf8a43e5f13428 to your computer and use it in GitHub Desktop.
Welcome to Swift version 4.0.2 (swift-4.0.2-RELEASE). Type :help for assistance.
1> import Foundation
/home/alex/.local/swift-4.0.2-RELEASE-ubuntu16.04/usr/lib/swift/CoreFoundation/CoreFoundation.h:25:10: note: while building module 'SwiftGlibc' imported from /home/alex/.local/swift-4.0.2-RELEASE-ubuntu16.04/usr/lib/swift/CoreFoundation/CoreFoundation.h:25:
#include <sys/types.h>
^
<module-includes>:3:10: note: in file included from <module-includes>:3:
#include "///usr/include/utmp.h"
^
///usr/include/utmp.h:23:10: note: in file included from ///usr/include/utmp.h:23:
#include <sys/types.h>
^
error: /usr/include/x86_64-linux-gnu/sys/types.h:146:10: error: 'stddef.h' file not found
#include <stddef.h>
^
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "CoreFoundation.h"
^
error: /home/alex/.local/swift-4.0.2-RELEASE-ubuntu16.04/usr/lib/swift/CoreFoundation/CoreFoundation.h:25:10: error: could not build module 'SwiftGlibc'
#include <sys/types.h>
^
/home/alex/.local/swift-4.0.2-RELEASE-ubuntu16.04/usr/lib/swift/CoreFoundation/CFStream.h:20:10: note: while building module 'CDispatch' imported from /home/alex/.local/swift-4.0.2-RELEASE-ubuntu16.04/usr/lib/swift/CoreFoundation/CFStream.h:20:
#include <dispatch/dispatch.h>
^
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "dispatch.h"
^
/home/alex/.local/swift-4.0.2-RELEASE-ubuntu16.04/usr/lib/swift/dispatch/dispatch.h:30:10: note: in file included from /home/alex/.local/swift-4.0.2-RELEASE-ubuntu16.04/usr/lib/swift/dispatch/dispatch.h:30:
#include <os/linux_base.h>
^
/home/alex/.local/swift-4.0.2-RELEASE-ubuntu16.04/usr/lib/swift/os/linux_base.h:17:10: note: in file included from /home/alex/.local/swift-4.0.2-RELEASE-ubuntu16.04/usr/lib/swift/os/linux_base.h:17:
#include <sys/sysmacros.h>
^
error: /usr/include/x86_64-linux-gnu/sys/sysmacros.h:22:10: error: could not build module 'SwiftGlibc'
#include <features.h>
^
error: could not build C module 'CoreFoundation'
1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment