LibreELEC / LibreELEC.tv

Just enough OS for KODI
http://libreelec.tv
2.25k stars 1.11k forks source link

[GENERAL] Building LibreELEC for Raspberry Pi4 Failed #6240

Closed jitendrazala closed 2 years ago

jitendrazala commented 2 years ago

Building LibreELEC for RPi4

I have been trying to build LibreELEC for Raspberry Pi4 in using ubuntu 20.04 [WSL]. I got errors while building and I rectified those errors. But somehow I have been stuck in end.

To Reproduce

Steps to reproduce the behavior:

  1. Setting for WSL as per

  2. Install dependancies sudo apt update sudo apt upgrade sudo apt install gcc make git unzip wget xz-utils bc gperf zip unzip makeinfo g++ mkfontscale mkfontdir bdftopcf xsltproc java

  3. Clone LibreELEC cd ~ [](git clone https://github.com/LibreELEC/LibreELEC.tv.git) cd LibreELEC.tv

  4. Download tools _PROJECT=RPi ARCH=x8664 tools/download-tool

  5. Build PROJECT=RPi DEVICE=RPi4 ARCH=arm make image

Informations

Log file

https://pastebin.com/rtWktPye

Can anyone help me for the same ?

Thanks. Jitendra

heitbaum commented 2 years ago

Hi @jitendrazala

What OS? e.g. Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.10.93.2-microsoft-standard-WSL2 x86_64)

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
jitendrazala commented 2 years ago

Thanks for your prompt reply.

  1. I am using WSL2.
  2. Yes. I am using master of libreelec-10.0
  3. OS :
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
CvH commented 2 years ago

can you post the output of uname -a ?

btw I give it a go when at home, I build RPi before so it worked at some point

jitendrazala commented 2 years ago
$ uname -a
Linux Jitendra 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

It would be really helpful if you can give it a shot. Thanks.

kszaq commented 2 years ago

@jitendrazala Maybe unrelated but removing Windows path on WSL solved a similar build issue for me. I used Option 1 from https://stackoverflow.com/a/63195953 - remember to restart WSL.

jitendrazala commented 2 years ago

@kszaq , I already did that. It was mentioned in LibreELEC wiki page for WSL. Bdw thanks.

CvH commented 2 years ago

@jitendrazala I build Rpi4 (LE11 Master) successfully yesterday with everything from https://wiki.libreelec.tv/development-1/building-windows-wsl applied

I run a LE10 today and have a look if something won't work anymore.

hptsf commented 2 years ago

i have repaire the broken link manual

SupervisedThinking commented 2 years ago

Well maybe I've not seen the specs of your build machine but you should consider an out of resources problem. I'm usually hacking stuff together on an old ThinkPad and a custom package in my build failed with pretty much exact the same error.

I resolved it by freeing up RAM 🤔

Also did you start over a clean build and tried again?

heitbaum commented 2 years ago

i have repaire the broken link manual

thanks for the update. Closing the build issue. please reopen / let us know if you are still facing issues.