Giter Club home page Giter Club logo

Comments (5)

dtolnay avatar dtolnay commented on May 20, 2024 1

This builds successfully for me from Ubuntu: CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc cargo build --target aarch64-unknown-linux-gnu --release

from dotslash.

bolinfest avatar bolinfest commented on May 20, 2024

If you build DotSlash from source on that Linux VM right now, does it work?

But yes, we should be able to provide ARM Ubuntu release builds pretty easily.

from dotslash.

bolinfest avatar bolinfest commented on May 20, 2024

Hmm, this is going to be a bit harder than I thought since GitHub does not seem to provide these runners by default yet:

actions/runner-images#2536

On my Ubuntu 20.04 machine, I tried updating Cargo.toml to include:

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

and did:

sudo apt install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross

but the build fails with:

          /usr/bin/ld: /home/mbolin/src/dotslash/target/aarch64-unknown-linux-gnu/debug/deps/dotslash-1106e55710a63aa1.11827l57e7qgx8lz.rcgu.o: error adding symbols: file in wrong format

Based on the articles I've found, my best guess is that something in the transitive deps of DotSlash has some build step that is outside of Cargo (so a build.rs) that is likely producing x86_64 artifacts instead of ARM64 ones, which don't link.

@dtolnay any suggestions?

from dotslash.

bolinfest avatar bolinfest commented on May 20, 2024

Incidentally, this does not match anything:

find target/aarch64-unknown-linux-gnu/ -name \*.o | xargs -I {} file {} | grep -v ARM

from dotslash.

bolinfest avatar bolinfest commented on May 20, 2024

Hmm, that works for me as well. I saw a comment somewhere that maybe I needed to update .cargo/config.toml instead of Cargo.toml?

from dotslash.

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.