Giter Club home page Giter Club logo

Comments (8)

ikey4u avatar ikey4u commented on May 25, 2024 1

@messense yes, I use rust 1.59.0, and the build passed using the pr #12

from cargo-zigbuild.

messense avatar messense commented on May 25, 2024 1

For future reference, this issue is caused by upstream Rust distributes libc.a in self-contained for musl and wasi since Rust 1.59.0 (I think the code is in 1.58.0 but isn't really used since it requires a libc 0.2.107 and later).

from cargo-zigbuild.

messense avatar messense commented on May 25, 2024

It could be something to do with this https://github.com/messense/cargo-zigbuild/blob/bdda6ef83937e57b99fa3a6c14d81ec95a97a290/src/zig.rs#L70-L81

from cargo-zigbuild.

messense avatar messense commented on May 25, 2024

@ikey4u Are you using Rust 1.59.0, please try #12.

from cargo-zigbuild.

messense avatar messense commented on May 25, 2024

@ikey4u Thanks for confirming, I've also verified that the built artifact runs fine.

from cargo-zigbuild.

ikey4u avatar ikey4u commented on May 25, 2024

@messense Unfortunately, I test patch #12 with Rust 1.58.0, it does not work. The error is the same.

from cargo-zigbuild.

messense avatar messense commented on May 25, 2024

That's unfortunate but this project is so young that I'm not aiming for supporting old Rust versions.

from cargo-zigbuild.

ikey4u avatar ikey4u commented on May 25, 2024

its does not matter, but you can specify the minimal supported rust version on homepage.

from cargo-zigbuild.

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.