Giter Club home page Giter Club logo

Comments (9)

swift-ci avatar swift-ci commented on July 21, 2024

Comment by Stan Chang Khin Boon (JIRA)

I do have similar issue on ubuntu 14.04. This is intermittent. Some user reported having it working and some don't.

I had experience both working (on my MBP) and non working case (on digital ocean).

The following repository is the Dockerfile that can hopefully recreate the environment.

https://github.com/lxcid/docker-swift

Please use 2.2 as master is attempting to try to build from source.

from llvm-project.

swift-ci avatar swift-ci commented on July 21, 2024

Comment by Stan Chang Khin Boon (JIRA)

If you are using Docker, run your container with --privileged=true will fix the issue. Not ideal but at least we know that its related to permissions.

from llvm-project.

swift-ci avatar swift-ci commented on July 21, 2024

Comment by Stan Chang Khin Boon (JIRA)

The solution is discovered here: swiftlang/swift-docker#9 (comment)

From docker's documentation at https://docs.docker.com/engine/reference/commandline/run/#full-container-capabilities-privileged

… by default, most potentially dangerous kernel capabilities are dropped; … However, the --privileged flag will allow it to run

It seems that the REPL requires some kernel level capabilities. Is this something we can avoid?

from llvm-project.

swift-ci avatar swift-ci commented on July 21, 2024

Comment by Kito (JIRA)

Thanks Stan. Confirmed that running privileged works around the issue.

I'm going to continue debugging to see if there is a more permanent solution.

from llvm-project.

swift-ci avatar swift-ci commented on July 21, 2024

Comment by Kate Stone (JIRA)

The REPL is actually a special case of the Swift debugger for reasons elaborated on here, so kernel privileges associated with debugging processes are definitely required.

from llvm-project.

swift-ci avatar swift-ci commented on July 21, 2024

Comment by Kate Stone (JIRA)

Works as expected. Debugging privileges are required for the REPL.

from llvm-project.

swift-ci avatar swift-ci commented on July 21, 2024

Comment by Kate Stone (JIRA)

I've edited the title to better reflect the presumed nature of the issue and have resolved it per my comment above. Go ahead and re-open if this turns out not to be an accurate assessment.

from llvm-project.

drewcrawford avatar drewcrawford commented on July 21, 2024

Could we get a better diagnostic here? The current error is

error: failed to launch REPL process: process launch failed: 'A' packet returned an error: 8

Maybe something about lacking privileges? The issue here is not clear at all from the error message.

from llvm-project.

swift-ci avatar swift-ci commented on July 21, 2024

Comment by Timothy S Hawkins (JIRA)

This is the same issue you get when trying to run Swift on the "Ubuntu on windows" subsystem on windows 10. However there is no opportunity to change the kernel permissions on this version.

from llvm-project.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.