Uploaded image for project: 'Swift'
  1. Swift
  2. SR-3794

import Glibc does not work from the swift 3.1-dev REPL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: LLDB for Swift
    • Labels:
    • Environment:

      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 ca7046e4a3)
      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 ca7046e4a3). 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>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Ronnquist Peter
              Votes:
              10 Vote for this issue
              Watchers:
              22 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: