-
Notifications
You must be signed in to change notification settings - Fork 350
Description
| Previous ID | SR-3794 |
| Radar | None |
| Original Reporter | Ronnquist (JIRA User) |
| Type | Bug |
| Status | Resolved |
| Resolution | Done |
Environment
Ubuntu 16.10
swift -v
Swift version 3.1-dev (LLVM 3e67f314a4, Clang 0540ceb7ad, Swift ca7046e)
Target: x86_64-unknown-linux-gnu
/home/peter/Documents/programs/swift/swift-DEVELOPMENT-SNAPSHOT-2017-01-04-a-ubuntu16.10/usr/bin/lldb "--repl=-disable-objc-interop -color-diagnostics"
Welcome to Swift version 3.1-dev (LLVM 3e67f314a4, Clang 0540ceb7ad, Swift ca7046e).
Additional Detail from JIRA
| Votes | 10 |
| Component/s | LLDB for Swift |
| Labels | Bug, Linux, REPL |
| Assignee | None |
| Priority | Medium |
md5: 68542641f5966ad72f7a08689e36c7b3
is duplicated by:
- SR-3868 Unable to import Glibc, Foundation or Dispatch in REPL (linux)
relates to:
- SR-3648 Unable to Import Foundation
- SR-5524 Importing a modulemapped C library in REPL throws an error
Issue Description:
I get the following error when I try to import Glibc in the swift 3.1-dev REPL
peter@peter-UX305CA:~/Documents/dev/swift/measurement$ swift -v
Swift version 3.1-dev (LLVM 3e67f314a4, Clang 0540ceb7ad, Swift ca7046e)
Target: x86_64-unknown-linux-gnu
/home/peter/Documents/programs/swift/swift-DEVELOPMENT-SNAPSHOT-2017-01-04-a-ubuntu16.10/usr/bin/lldb "--repl=-disable-objc-interop -color-diagnostics"
Welcome to Swift version 3.1-dev (LLVM 3e67f314a4, Clang 0540ceb7ad, Swift ca7046e). Type :help for assistance.
1> import Glibc
<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>
^
error: could not build Objective-C module 'SwiftGlibc'
1>