Skip to content

Try to do swift linux#4895

Open
mxcl wants to merge 2 commits into
mainfrom
swift-linux
Open

Try to do swift linux#4895
mxcl wants to merge 2 commits into
mainfrom
swift-linux

Conversation

@mxcl

@mxcl mxcl commented Jan 18, 2024

Copy link
Copy Markdown
Contributor

refs #4840

@mxcl

mxcl commented Jan 18, 2024

Copy link
Copy Markdown
Contributor Author

needs libtinfo which is an optional library built by ncurses.

Can probs fix with a few things, let me play around

@mxcl

mxcl commented Jan 18, 2024

Copy link
Copy Markdown
Contributor Author

k locally I have demonstrated that swift on linux only needs libncurses5 to work. It also requires that it be built the same as ubuntu, thus with libtinfo separate (usually it is built into the same .so)

We have no ncurses 5 at this time, I will try to build one. The libtinfo issue is separate. I don't think it's enough to build v5, but I'll try that first.

@mxcl

mxcl commented Jan 18, 2024

Copy link
Copy Markdown
Contributor Author

Alternatively we can just build this ourselves. I tried a couple of times and it is quite a bitch. Same as emscripten.org in that it requires a very specific LLVM toolchain to build.

@mxcl

mxcl commented Jan 18, 2024

Copy link
Copy Markdown
Contributor Author

Our delivery of this package may prove kinda problematic on mac since it depends on specific Xcode toolchain versions (xcode command line tools) and we have no control over that.

I don't think our LLVM is quite right enough for swift.

This is all unfortunate ofc. We may be better off delegating to swiftly in that respect, which we still have not built.

Ultimately one blames Apple. If OSS people without pay can make their software more portable than Apple, one of the richest companies in the world, then WTF is going on?

@krzyzanowskim

Copy link
Copy Markdown
Contributor

is linux/aarch64 no go? because you know, handy in VM on M1

@mxcl

mxcl commented Jan 24, 2024

Copy link
Copy Markdown
Contributor Author

is linux/aarch64 no go? because you know, handy in VM on M1

yeah we want it. Unfortunately we'll need to build it from source ourselves. I'll get to it eventually. I tried once and it's tricky because Apple.

@krzyzanowskim

Copy link
Copy Markdown
Contributor

Unfortunately we'll need to build it from source ourselves.

I don't understand. why so? I tried in docker and it seems just like x86_64, isn't it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants