Git Product home page Git Product logo

Comments (12)

yonaskolb avatar yonaskolb commented on May 4, 2024 1

I don’t think Ice supports Linux. I actually just opened an issue there

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

So that looks like master yes?
I don’t know why that would be happening.
Could you try running just a swift build Instead of make

from mint.

Jeehut avatar Jeehut commented on May 4, 2024

Ok, let me check both if it's master and if swift build works ...

from mint.

Jeehut avatar Jeehut commented on May 4, 2024

Yes, I'm quite confident that it's master and here's the swift build output (it doesn't show errors):

+ swift build
Compile clibc libc.c
Compile Swift Module 'PathKit' (1 sources)
Compile Swift Module 'Rainbow' (11 sources)
Compile Swift Module 'SwiftCLI' (20 sources)
Compile Swift Module 'SPMLibc' (1 sources)
Compile Swift Module 'POSIX' (11 sources)
Compile Swift Module 'Basic' (37 sources)
Compile Swift Module 'Utility' (19 sources)
Compile Swift Module 'MintKit' (9 sources)
Compile Swift Module 'MintCLI' (9 sources)
Compile Swift Module 'Mint' (1 sources)
Linking ./.build/x86_64-unknown-linux/debug/mint
Fetching https://github.com/jakeheis/SwiftCLI
Fetching https://github.com/kylef/Spectre.git
Fetching https://github.com/kylef/PathKit.git
Fetching https://github.com/onevcat/Rainbow.git
Fetching https://github.com/apple/swift-package-manager.git
Cloning https://github.com/jakeheis/SwiftCLI
Resolving https://github.com/jakeheis/SwiftCLI at 5.1.2
Cloning https://github.com/kylef/Spectre.git
Resolving https://github.com/kylef/Spectre.git at 0.8.0
Cloning https://github.com/kylef/PathKit.git
Resolving https://github.com/kylef/PathKit.git at 0.9.1
Cloning https://github.com/onevcat/Rainbow.git
Resolving https://github.com/onevcat/Rainbow.git at 3.1.4
Cloning https://github.com/apple/swift-package-manager.git
Resolving https://github.com/apple/swift-package-manager.git at 0.2.0

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

I suspect it’s the -Xswiftc -static-stdlib

from mint.

Jeehut avatar Jeehut commented on May 4, 2024

I'm just trying different swift build parameters, I'll report once the CI is done, just wait a moment ...

from mint.

Jeehut avatar Jeehut commented on May 4, 2024

Yeah, you were right, both swift build --disable-sandbox and swift build --disable-sandbox -c release passed as well. So it must be the -Xswiftc -static-stdlib. Can I work around it somehow? What happens, if I just don't add them?

from mint.

Jeehut avatar Jeehut commented on May 4, 2024

Looks like this SO question or this open Swift issue could be the issue, no?

from mint.

Jeehut avatar Jeehut commented on May 4, 2024

Okay, actually it looks more like this open Swift issue.

from mint.

Jeehut avatar Jeehut commented on May 4, 2024

I just tried the latest Swift snapshot (from 2018-08-02) and Swift 4.0.3 and the issue appears in all of the tested version.

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

Yes, Mint itself has to check for Linux to not add this flag when installing other tools here https://github.com/yonaskolb/Mint/blob/master/Sources/MintKit/Mint.swift#L289

The command basically just bundles up swift with the binary. Not having it means that the binary may fail when a new version of swift comes out and may have to be re-installed. ABI stability in Swift 5 should solve this though.

A workaround is to not run the make install script but to just install yourself

swift build --disable-sandbox -c release
cp -f .build/release/mint /usr/local/bin/mint

The fix would be to make the Makefile aware of it was running on Linux and adjust accordingly

from mint.

Jeehut avatar Jeehut commented on May 4, 2024

Thank you for the workaround, it kinda worked! 🌟
Though I still couldn't install SwiftLint or Ice running mint install jakeheis/Ice.

When running with the --verbose option set, I get something like this:

mint install jakeheis/Ice --verbose
🌱  Finding latest version of Ice
🌱  Resolved latest version of Ice to 0.6.1
🌱  Cloning https://github.com/jakeheis/Ice.git 0.6.1...
Cloning into 'github.com_jakeheis_Ice'...
Note: checking out '24eae42cfaa59ac4b8965ce5f0936a84b97287aa'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
  git checkout -b <new-branch-name>
🌱  Building Ice with SPM...
Failed to build Ice

from mint.

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.