Giter Club home page Giter Club logo

Comments (13)

NicolasDorier avatar NicolasDorier commented on August 15, 2024 1

@hkjn I am not at work anymore, will check tomorrow. But it must come from my environment or armbian rather than this repo. Will keep you updated when I managed to fix it.

from bitbox-base.

Stadicus avatar Stadicus commented on August 15, 2024 1

I can confirm that building Armbian works on my machine using:

from bitbox-base.

NicolasDorier avatar NicolasDorier commented on August 15, 2024

At one point I also got

image

I am wondering if this is some qemu trickery going on.

from bitbox-base.

hkjn avatar hkjn commented on August 15, 2024

@NicolasDorier: Do you have some docs or other reference explaining what running multiarch/qemu-user-static:register does?

Or for that matter, could you provide some context as to what you are trying to do here? :)

from bitbox-base.

NicolasDorier avatar NicolasDorier commented on August 15, 2024

@hkjn just trying to run make

multiarch/qemu-user-static:register install qemu on the docker host. It solved some issues I had in the past when trying to use ARM32 on docker x64.

from bitbox-base.

hkjn avatar hkjn commented on August 15, 2024

@hkjn just trying to run make

Oh, okay. Is your host environment x86_64 + Windows 10?

I'm not sure what's going wrong here; if /bin/bash wasn't present inside the container used for the Armbian build, I'd expect that things would fail a lot sooner..

I'm not sure how installing qemu would change anything, but I'm not at all familiar with Windows environments and how / if it enters the mix / is required there. I'd be happy to learn more / take a look but would need to get access to an environment where I could repro the issue to start with.

If you want to dig further yourself, https://base.shiftcrypto.ch/os/build-details.html has some info about the overall Armbian build process and how we make use of it. I'll also try to unpack some stuff below in case it's helpful:

  1. our build.sh script calls armbian's compile.sh with the docker argument
  2. compile.sh eventually kicks off the docker run command which starts the container performing the build in config-docker.conf

Based on the screenshot you posted, it looks like the Armbian build process fails during the chroot to the OS image being built, which I believe is fairly late in the build process.

from bitbox-base.

NicolasDorier avatar NicolasDorier commented on August 15, 2024

@hkjn environment is on an ubuntu.

from bitbox-base.

NicolasDorier avatar NicolasDorier commented on August 15, 2024

mmmh ok. Yeah I read a lot about how armbian works. But this problem happened right after the switch to docker so I thought maybe something wrong here.

from bitbox-base.

hkjn avatar hkjn commented on August 15, 2024

@hkjn environment is on an ubuntu.

Okay, that's even weirder then..

My base system is on Debian, which should be quite similar. What does docker --version / docker info produce?

from bitbox-base.

hkjn avatar hkjn commented on August 15, 2024

Oh, also, what version of Ubuntu? (Via e.g cat /etc/os-release.)

from bitbox-base.

NicolasDorier avatar NicolasDorier commented on August 15, 2024

This fixed it: (on the host)

sudo apt-get install qemu binfmt-support qemu-user-static

That was the host that was not properly configured for running qemu. It may be wise to mention in the doc somewhere.

from bitbox-base.

hkjn avatar hkjn commented on August 15, 2024

This fixed it: (on the host)

sudo apt-get install qemu binfmt-support qemu-user-static

Glad you figured it out!

That was the host that was not properly configured for running qemu. It may be wise to mention in the doc somewhere.

I'd love to include a note in the docs, but I don't really understand how qemu enters into it at all, as I was unware that we had any dependency on it (direct or indirect).. do you have any hint for why qemu is needed to do the build in your environment?

from bitbox-base.

NicolasDorier avatar NicolasDorier commented on August 15, 2024

mmh I am unsure either. Afaik, binfmt-support is the module which allow interpreter to register on the host.

qemu-user-static are the interpreter statically compiled.

qemu might actually register.

from bitbox-base.

Related Issues (18)

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.