Coder Social home page Coder Social logo

Comments (9)

snshn avatar snshn commented on August 19, 2024

Hi Samuel,
I'm trying to figure out what's causing this, have a spare RPi 3B+ to reproduce the error. Thank you for reporting this.

from monolith.

smessing avatar smessing commented on August 19, 2024

Awesome! Thank you. I'm pretty new to Rust/Cargo but let me know if I can do anything to help.

from monolith.

snshn avatar snshn commented on August 19, 2024

Hi there Samuel,

I was able to build monolith from the master branch on raspbian with no errors. I used rustup and had to install libssl-dev.
The error that you're getting is likely related to some sort of network issue when cargo tries to retrieve the needed crate. I found a couple of similar issues for other rust projects and that's what people seem to suspect regarding this kind of errors, balena-os/balena-raspberrypi#261

You could also try doing something like mv Cargo.lock Cargo.lock.bak and trying to build again, maybe it's some sort of issue caused by package versions

from monolith.

bwestergard avatar bwestergard commented on August 19, 2024

I'm encountering the same issue.

bjorn@bjorn-ThinkPad-T420:~/project/monolith$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.10
Release:	18.10
Codename:	cosmic
bjorn@bjorn-ThinkPad-T420:~/project/monolith$ make
    Updating crates.io index
    Updating crates.io index
error: no matching package named `native-tls-crate` found
location searched: registry `https://github.com/rust-lang/crates.io-index`
required by package `reqwest v0.10.0`
    ... which is depended on by `monolith v2.1.2 (/home/bjorn/project/monolith)`
make: *** [Makefile:7: build] Error 101

from monolith.

snshn avatar snshn commented on August 19, 2024

I was able to cross-compile monolith on my Ubuntu machine using Cargo's built-in cross-compilation functionality:

rustup target add arm-unknown-linux-gnueabihf
git clone https://github.com/raspberrypi/tools.git rpi_tools
RUSTFLAGS="-C linker=rpi_tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc" cargo build --release --target=arm-unknown-linux-gnueabihf
target/arm-unknown-linux-gnueabihf/release/monolith -V

Could you please let me know if you're able to run the binary compiled that way on your Pi? If so, I'll include that into the CI/CD pipeline to release RPi artifacts along with Windows builds.

from monolith.

snshn avatar snshn commented on August 19, 2024

The latest release includes a prebuilt binary for Raspberry Pi. I tested it on mine RPi 3B+, it works fine.

from monolith.

 avatar commented on August 19, 2024

@snshn Can you also make the pipeline build and upload an x86_64/AMD64 executable with every new release?

from monolith.

snshn avatar snshn commented on August 19, 2024

Will do!

from monolith.

 avatar commented on August 19, 2024

@snshn Thanks! I'd love to add support for monolith in ginstall.sh once that's done.

from monolith.

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.