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-388] Swift REPL fails to launch on ARM #43005

Open
hpux735 opened this issue Dec 26, 2015 · 4 comments
Open

[SR-388] Swift REPL fails to launch on ARM #43005

hpux735 opened this issue Dec 26, 2015 · 4 comments
Labels
arm Architecture: any ARM armhf Architecture: the Debian port for ARM processors (armv7+) that have hardware floating point support bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@hpux735
Copy link
Contributor

hpux735 commented Dec 26, 2015

Previous ID SR-388
Radar None
Original Reporter @hpux735
Type Bug
Additional Detail from JIRA
Votes 4
Component/s
Labels Bug, arm, armhf, linux
Assignee None
Priority Medium

md5: 8ce4b131d10efde6968bd4f0294d6a7d

Issue Description:

wdillon@tegra-ubuntu:~/swift$ swift -v
Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift 9bd3eb7bc2)
Target: armv7-unknown-linux-gnueabihf
/home/wdillon/build/Ninja-ReleaseAssert/swift-linux-armv7/bin/swift -frontend -repl -target armv7-unknown-linux-gnueabihf -disable-objc-interop -color-diagnostics -module-name REPL
LLVM ERROR: Compiler-internal integrated REPL unimplemented for this platform; use the LLDB-enhanced REPL instead.
wdillon@tegra-ubuntu:~/swift$ swift -v -lldb-repl
Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift 9bd3eb7bc2)
Target: armv7-unknown-linux-gnueabihf
lldb "--repl=-target armv7-unknown-linux-gnueabihf -disable-objc-interop -color-diagnostics"
wdillon@tegra-ubuntu:~/swift$ lldb "--repl=-target armv7-unknown-linux-gnueabihf -disable-objc-interop -color-diagnostics"
-bash: lldb: command not found
wdillon@tegra-ubuntu:~/swift$ ../build/Ninja-ReleaseAssert/lldb-linux-armv7/bin/lldb "--repl=-target armv7-unknown-linux-gnueabihf -disable-objc-interop -color-diagnostics"
error: failed to launch REPL process: process launch failed: Lost debug server connection
wdillon@tegra-ubuntu:~/swift$

@hpux735
Copy link
Contributor Author

hpux735 commented Dec 26, 2015

This appears to have been addressed by Joe Bell https://github.com/hpux735/swift-lldb/commit/e3e023f54c69512a77a87dfc328b3a8e75a9e185

I'll need to verify it, and once it's merged into apple/swift-llvm I'll close this bug.

@hpux735
Copy link
Contributor Author

hpux735 commented Jan 6, 2016

I've implemented and tested a better fix that relies upon a diff at llvm, and a seperate diff at lldb. The problem is effectively resolved, it just needs to be merged in.

@hpux735
Copy link
Contributor Author

hpux735 commented Feb 18, 2016

I'm taking myself off of this bug for now. The problem is fairly easy to resolve in lldb, but the REPL is extremely unstable on ARM at the moment, even with that fix.

@swift-ci
Copy link
Collaborator

swift-ci commented Jul 1, 2016

Comment by Joe (JIRA)

I've converted this from SR-40 subtask to a separate issue. Swift on ARM (for BeagleBone and Raspberry Pi 2 and 3 at least) has been working for some time. The REPL does not; I figured it deserved attention in its own right.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Architecture: any ARM armhf Architecture: the Debian port for ARM processors (armv7+) that have hardware floating point support bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

2 participants