Coder Social home page Coder Social logo

Comments (6)

adamparco avatar adamparco commented on July 17, 2024 1

You could also leverage buildx to do emulated builds, or to point to a remote armv8 builder instance (AWS A1).

from parsec.

hug-dev avatar hug-dev commented on July 17, 2024

To cross-compile before, it used to be as easy as changing the Mbed Crypto library compiler in the build-conf.toml file and do the command: cargo build --target aarch64-unknown-linux-gnu
But with that now the compilation fails with the following issue:

          /usr/bin/ld: /home/hugdev01/dev/parsec/parsec/target/aarch64-unknown-linux-gnu/debug/deps/parsec-b832778a0064e80a.103gqkamrymphzyu.rcgu.o: Relocations in generic ELF (EM: 183)
          /usr/bin/ld: /home/hugdev01/dev/parsec/parsec/target/aarch64-unknown-linux-gnu/debug/deps/parsec-b832778a0064e80a.103gqkamrymphzyu.rcgu.o: Relocations in generic ELF (EM: 183)
          /usr/bin/ld: /home/hugdev01/dev/parsec/parsec/target/aarch64-unknown-linux-gnu/debug/deps/parsec-b832778a0064e80a.103gqkamrymphzyu.rcgu.o: Relocations in generic ELF (EM: 183)
          /usr/bin/ld: /home/hugdev01/dev/parsec/parsec/target/aarch64-unknown-linux-gnu/debug/deps/parsec-b832778a0064e80a.103gqkamrymphzyu.rcgu.o: Relocations in generic ELF (EM: 183)
          /usr/bin/ld: /home/hugdev01/dev/parsec/parsec/target/aarch64-unknown-linux-gnu/debug/deps/parsec-b832778a0064e80a.103gqkamrymphzyu.rcgu.o: Relocations in generic ELF (EM: 183)
          /usr/bin/ld: /home/hugdev01/dev/parsec/parsec/target/aarch64-unknown-linux-gnu/debug/deps/parsec-b832778a0064e80a.103gqkamrymphzyu.rcgu.o: Relocations in generic ELF (EM: 183)
          /usr/bin/ld: /home/hugdev01/dev/parsec/parsec/target/aarch64-unknown-linux-gnu/debug/deps/parsec-b832778a0064e80a.103gqkamrymphzyu.rcgu.o: Relocations in generic ELF (EM: 183)
          /usr/bin/ld: /home/hugdev01/dev/parsec/parsec/target/aarch64-unknown-linux-gnu/debug/deps/parsec-b832778a0064e80a.103gqkamrymphzyu.rcgu.o: error adding symbols: file in wrong format
          collect2: error: ld returned 1 exit status

It might be because the linker used is the system linker and not an Aarch64-toolchain linker?

from parsec.

hug-dev avatar hug-dev commented on July 17, 2024

Part of this issue is being addressed in #61: cargo build --target aarch64-unknown-linux-gnu will now cross-compile everything to this target.
To fix the issue above, the linker is precised in .cargo/config. I thought that the linker shipped with Rust installation could be used as well for cross-compiling but I think it does not support this target (or is not included?).

The remaining parts of this issue are related with testing:

  • adding a CI job that cross-compile PARSEC for the Arm64 target (maybe buildx or cross could be used here)
  • adding CI system where some of the tests are compiled and executed natively on Arm64 (Travis CI, AWS A1, Codefresh can be looked at)

from parsec.

hug-dev avatar hug-dev commented on July 17, 2024

#64 completed the first point above

from parsec.

hug-dev avatar hug-dev commented on July 17, 2024

We are going to set up a GitHub Actions self-hosted runner on an Arm Machine! That way we will only need little modification to our GH Actions workflows to make them run on Arm as well.

cf WorksOnArm/equinix-metal-arm64-cluster#190

from parsec.

hug-dev avatar hug-dev commented on July 17, 2024

Due to security problems about using GitHub Actions self-hosted runners, we decided to switch to Travis CI which has been enabled in #90

from parsec.

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.