Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-5686] Swift 4 REPL broken on Linux (Docker) #685

Closed
swift-ci opened this issue Aug 14, 2017 · 1 comment
Closed

[SR-5686] Swift 4 REPL broken on Linux (Docker) #685

swift-ci opened this issue Aug 14, 2017 · 1 comment

Comments

@swift-ci
Copy link

Previous ID SR-5686
Radar None
Original Reporter harisamin (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment

Using Docker for Mac Version 17.07.0-ce-rc2-mac22 (18909)

MacOS 10.12.4

Additional Detail from JIRA
Votes 0
Component/s Compiler, Foundation, libdispatch
Labels Bug, Linux
Assignee None
Priority Medium

md5: 46539e22f276cc8714116ca8c993d701

duplicates:

  • SR-3648 Unable to Import Foundation

Issue Description:

Hi there. I'm one of the maintainers of https://github.com/swiftdocker/docker-swift . I've tried w/ the latest (at the time of writing) August 4th Swift 4 develop ubuntu 16.04 image. Importing Foundation and Libdispatch seems to be broken.

I've attached the REPL output but basically the two errors are:

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'

and

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 'CDispatch'

I'm attaching the Dockerfile that I'm using. Note I've commented out the gpg validation in the Dockerfile that we usually do in our image (as requested/recommended by DockerHub for official Docker images) since there aren't new keys available for Swift 4 images yet. Would be great to have that too but can file a separate issue for this if need be

With the Dockerfile saved you can build and run the image by doing the following

```

docker build . --tag swift4fun

and then

docker run --privileged -i -t --name swiftFoo swift4fun /bin/bash

At that point you should be in a bash prompt and can start the REPL by typing swift

Happy to explain further and debug further if need be

@belkadan
Copy link

Looks like SR-3648. You should be able to try the -I workaround described there.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants