Comments (9)
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.
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.
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.
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.
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.
Comment by Kate Stone (JIRA)
Works as expected. Debugging privileges are required for the REPL.
from llvm-project.
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.
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.
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)
- Infinite recursion in ParseTrieEntries when parsing libGPUCompilerUtils.dylib HOT 1
- Apple Clang: std::source_location returns a wrong result if called in a function parameter.
- xros and visionos compilation support? HOT 4
- Module not found diagnostics are repeated multiply
- Compiler crash while serializing `std::optional` HOT 1
- A request to Apple to open-source the Metal Shading Language compiler
- [CI] apple-llvm-project-PR-windows fails to checkout `release/5.10`
- Usage of RemoteCachingService?
- CAS Unittests broken on Windows HOT 1
- `-finstrument-functions` linking error on Apple clang
- [IR lower bug] Apple's clang generated code will not abort when empty std::string call pop_back(), while llvm/clang do
- Compiler crash on Windows with `-index-store-path` HOT 1
- Compilation fails on Amazon Linux 2023 aarch64 HOT 1
- Doc Comments Are Ignored for Macros HOT 3
- DAP support
- Apple fork clang++ regression in partial specialization templates for hasher
- [HELP]what's the exactly command to build Xcode toolchain from this apple repo? HOT 1
- LLDB never finishes importing Swift modules/setting up Swift reflection HOT 8
- Clang crash: Idx < Size && "access in bound" in AssignmentTrackingAnalysis HOT 5
- Add support for <bit>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llvm-project.