Giter Site home page Giter Site logo

Build and test flexo on ARM devices about flexo HOT 4 CLOSED

nroi avatar nroi commented on June 19, 2024
Build and test flexo on ARM devices

from flexo.

Comments (4)

harrykantas avatar harrykantas commented on June 19, 2024 1

Hey @nroi, thanks for taking the time to look into this so quickly, much appreciated!

I can confirm that with the latest version the build on the rpi completes and runs successfully:

[harry@archpi ~]$ journalctl -u flexo
-- Logs begin at Sun 2020-06-07 20:43:30 UTC, end at Sun 2020-06-21 18:00:37 UTC. --
Jun 21 17:46:10 archpi systemd[1]: Started central pacman cache.
Jun 21 17:46:13 archpi flexo[12716]: [2020-06-21T17:46:13Z INFO  flexo] Primary mirror: https://archlinux.mailtunnel.eu/
Jun 21 17:46:13 archpi flexo[12716]: [2020-06-21T17:46:13Z INFO  flexo::mirror_flexo] Retrieved 0 files with a total size of 0.00 B from local file system.
Jun 21 17:51:49 archpi flexo[12716]: [2020-06-21T17:51:49Z INFO  flexo] Request served: "testing/os/x86_64/testing.db"
Jun 21 17:51:50 archpi flexo[12716]: [2020-06-21T17:51:50Z INFO  flexo] Request served: "core/os/x86_64/core.db"
Jun 21 17:51:50 archpi flexo[12716]: [2020-06-21T17:51:50Z INFO  flexo] Request served: "extra/os/x86_64/extra.db"
Jun 21 17:51:50 archpi flexo[12716]: [2020-06-21T17:51:50Z INFO  flexo] Request served: "community-testing/os/x86_64/community-testing.db"
Jun 21 17:51:50 archpi flexo[12716]: [2020-06-21T17:51:50Z INFO  flexo] Request served: "community/os/x86_64/community.db"

[harry@archpi ~]$ pacman -Qs flexo-git 
local/flexo-git 1.0.4.r0.gda1a3c1-1
    A central pacman cache

from flexo.

harrykantas avatar harrykantas commented on June 19, 2024

Hey @nroi.
Very happy with flexo so far, I have it running on an archlinux VM and on top of my main server at home and it's been working great.
I have recently setup a Raspberry Pi 4B with ArchLinuxARM in my network, and thought I could run flexo there, to offload my main server. Unfortunately, compilation fails with the following error:

   Compiling flexo v1.0.3 (/home/harry/.cache/yay/flexo-git/src/flexo/flexo)
error[E0308]: mismatched types
   --> src/main.rs:459:55
    |
459 |             let size: isize = libc::sendfile(sfd, fd, &mut offset, MAX_SENDFILE_COUNT);
    |                                                       ^^^^^^^^^^^ expected `i32`, found `i64`
    |
    = note:    expected raw pointer `*mut i32`
            found mutable reference `&mut i64`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: could not compile `flexo`.

To learn more, run the command again with --verbose.
==> ERROR: A failure occurred in build().
    Aborting...
error making: %!s(func() string=0x783080)

Happy to create a separate issue, or provide more info if necessary.

from flexo.

nroi avatar nroi commented on June 19, 2024

Hi @harrykantas
Thanks for reporting this issue. I was able to reproduce the problem on a cubieboard (armv7l) with ArchLinux ARM installed. With the most recent version, this issue seems to be fixed: I was able to compile and run flexo on my cubieboard.

Could you try to build flexo on your Raspberry Pi again and report back if it works?

from flexo.

nroi avatar nroi commented on June 19, 2024

Awesome.
I assume that flexo runs on all ARM architectures that are supported by Rust, so I'm closing this for now. In case anyone else has issues building or running flexo an ARM, please open a new issue.

from flexo.

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.