libretro / Lakka-LibreELEC

Lakka is a lightweight Linux distribution that transforms a small computer into a full blown game console.
https://www.lakka.tv
1.7k stars 289 forks source link

Doesn't compile for S905 #82

Closed shantigilbert closed 7 years ago

shantigilbert commented 7 years ago

Just a heads up when trying to compile from scratch you get this error:

APPLY PATCH (common) /Lakka/projects/S905/packages/linux-drivers/qca9377-aml/patches/qca9377-aml-001-Modify-SDIO-and-firmware-handling-to-support-chips-u.patch patching file CORE/HDD/src/wlan_hdd_cfg.c patching file CORE/HDD/src/wlan_hdd_main.c patching file CORE/SERVICES/BMI/ol_fw.c patching file CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/include/hif_internal.h patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c Hunk #10 FAILED at 813. Hunk #11 FAILED at 830. Hunk #14 FAILED at 1424. 3 out of 18 hunks FAILED -- saving rejects to file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c.rej patching file Kbuild Hunk #1 succeeded at 1070 (offset 2 lines). Makefile:12: recipe for target 'image' failed make: *** [image] Error 1

shantigilbert commented 7 years ago

this new commit fixes the issue https://github.com/kszaq/LibreELEC.tv/commit/166816addd749290f98548c244004ce070f4f52c

but you need to modify it to use elf instead of gnu

if [ $TARGET_KERNEL_ARCH = "arm64" ] && [ $TARGET_ARCH == "arm" ]; then PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET gcc-linaro-aarch64-elf:host" export PATH=$ROOT/$TOOLCHAIN/lib/gcc-linaro-aarch64-elf/bin/:$PATH TARGET_PREFIX=aarch64-elf- fi

shantigilbert commented 7 years ago

It seems it still doesn't compile for s905, from a clean clone I still get this error:

UNPACK qca9377-aml APPLY PATCH (common) /home/Lakka-LibreELEC/projects/S905/packages/linux-drivers/qca9377-aml/patches/qca9377-aml-001-Modify-SDIO-and-firmware-handling-to-support-chips-u.patch patching file CORE/HDD/src/wlan_hdd_cfg.c patching file CORE/HDD/src/wlan_hdd_main.c patching file CORE/SERVICES/BMI/ol_fw.c patching file CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/include/hif_internal.h patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c Hunk #10 FAILED at 813. Hunk #11 FAILED at 830. Hunk #14 FAILED at 1424. 3 out of 18 hunks FAILED -- saving rejects to file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c.rej patching file Kbuild Hunk #1 succeeded at 1070 (offset 2 lines). Makefile:12: recipe for target 'image' failed make: *** [image] Error 1

the patch included needs to be updated, I grabbed the folder from Kszaqs s905 build and it compiles fine with the changes I posted before.

Ntemis commented 7 years ago

Weird I don't get any errors on clean build.

shantigilbert commented 7 years ago

Don't know why I do, but if I use the package from Kzsaq's S905 build, and change it to use elf instead of gnu it compiles fine.

if [ $TARGET_KERNEL_ARCH = "arm64" ] && [ $TARGET_ARCH == "arm" ]; then PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET gcc-linaro-aarch64-elf:host" export PATH=$ROOT/$TOOLCHAIN/lib/gcc-linaro-aarch64-elf/bin/:$PATH TARGET_PREFIX=aarch64-elf- fi

I am using Ubuntu 16.04 if it helps.

Ntemis commented 7 years ago

I can't accept issue, compiles fine on Ubuntu 16.04.2 here. Not Lakka related and am closing it.