[SOLVED] Can't compile Lakka for RPi2

I’m struggling to compile Lakka from source. I am following the instructions here. The error I get is Makefile:12: recipe for target ‘image’ failed.

I’m not quite sure where to go from here. Here is the output of DISTRO=Lakka PROJECT=RPi2 ARCH=arm make image:

$ DISTRO=Lakka PROJECT=RPi2 ARCH=arm make image
./scripts/image mkimage
 =================================================================================
 Configuration for Lakka (community)
 =================================================================================
 Buildoptions:
 ======================================================
 - CPU (ARCH):				 cortex-a7 (arm)
 - FLOAT:				 hard
 - FPU:					 neon-vfpv4
 - SIMD support:			 yes
 - LTO (Link Time Optimization) support: yes
 - GOLD (Google Linker) Support:	 yes
 - LLVM support:			 
 Graphic configuration:
 ======================================================
 - OpenGL (GLX) support (provider):	 no (no)
 - OpenGLES support (provider):		 yes (bcm2835-driver)
 - uvesafb support:			 no
 Hardware decoder configuration:
 ======================================================
 - Kodi Player driver:			 bcm2835-driver
 - VAAPI Support:			 
 - VDPAU Support:			 
 Input device configuration:
 ======================================================
 - Remote support:			 no
 - ATV Remote support:			 no
 - CEC Adapter support:			 yes
 - Kodi Joystick support:		 yes
 Misc. hardware configuration:
 ======================================================
 - ALSA support:			 yes
 - Pulseaudio support:			 no
 - Bluetooth support:			 yes
 - Include driver:			 RTL8192CU
 - Include driver:			 RTL8192DU
 - Include driver:			 RTL8192EU
 - Include driver:			 RTL8188EU
 - Include driver:			 RTL8812AU
 - Include driver:			 RTL8192EU
 - Include driver:			 rpi-cirrus-config
 - Include firmware:			 misc-firmware
 - Include firmware:			 wlan-firmware
 - Include firmware:			 dvb-firmware
 - Include firmware:			 brcmfmac_sdio-firmware-rpi
 Network service configuration:
 ======================================================
 - Avahi (Zeroconf) support:		 yes
 - NFS mounting support:		 yes
 - SAMBA mounting support:		 yes
 - SAMBA server support:		 yes
 - SFTP server support:			 yes
 - OpenVPN support:			 yes
 OS configuration:
 ======================================================
 - OEM Support:				 yes
 - Default ROOT Password:		 root
 - Bootloader:				 bcm2835-bootloader
 - UDevil support:			 yes
 - Installer support:			 no
 Misc. Filesystems:
 ======================================================
 - Swap Support:			 yes
   - Swapfile default size:		 128
 - exFAT Support (via Fuse):		 yes
 - NTFS Support (via Fuse):		 yes
 - Install HFS Tools:			 yes
 Kodi configuration:
 ======================================================
 - Kodi version:			 no
 - Kodi nonfree support:		 yes
 - Kodi Blu-Ray support:		 yes
   - Bluray BD+ support:		 yes
   - Bluray AACS support:		 yes
 - Kodi DVDCSS support:			 yes
 - Kodi Airplay support:		 yes
 - Kodi Airtunes support:		 yes
 - Kodi NFS support:			 yes
 - Kodi MySQL support:			 yes
 - Kodi Optical Drive support:		 yes
 - Kodi SAMBA client support:		 yes
 - Kodi SSH client support:		 yes
 - Kodi UPNP support:			 yes
 - Kodi Webserver support:		 yes
 - Include Skin:			 Confluence
 - Default Skin:			 Confluence
 - Include extra fonts:			 yes
 =================================================================================
 End Configuration for Lakka
 =================================================================================
  e[1;32mINSTALLe[0m    libc e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    toolchain e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    configtools e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    make e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    xz e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    sed e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    pkg-config e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    autoconf e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    automake e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    libtool e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    intltool e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    autoconf-archive e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    gcc e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    bison e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    flex e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    cmake e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    yasm e[1;37m(host)e[0m
      e[1;32mINSTALLe[0m    glibc e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    ccache e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    autotools e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    linux e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    gcc e[1;37m(bootstrap)e[0m
      e[1;32mINSTALLe[0m    tz e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    arm-mem e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    gcc e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    linux e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    cpio e[1;37m(host)e[0m
      e[1;32mINSTALLe[0m    kmod e[1;37m(host)e[0m
      e[1;32mINSTALLe[0m    wireless-regdb e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    keyutils e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    linux-drivers e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    RTL8192CU e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    RTL8192DU e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    RTL8192EU e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    RTL8188EU e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    RTL8812AU e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    rpi-cirrus-config e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    alsa-utils e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    alsa-lib e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    netbsd-curses e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    linux-firmware e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    misc-firmware e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    kernel-firmware e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    wlan-firmware e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    dvb-firmware e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    brcmfmac_sdio-firmware-rpi e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    bcm2835-bootloader e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    busybox e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    busybox e[1;37m(host)e[0m
      e[1;32mINSTALLe[0m    hdparm e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    dosfstools e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    e2fsprogs e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    diskdev_cmds e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    openssl e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    zip e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    bzip2 e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    unzip e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    usbutils e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    libusb e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    systemd e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    libcap e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    kmod e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    util-linux e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    parted e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    parted e[1;37m(host)e[0m
      e[1;32mINSTALLe[0m    procps-ng e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    gptfdisk e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    popt e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    nano e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    rpcbind e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    libtirpc e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    corefonts e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    liberation-fonts-ttf e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    util-macros e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    network e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    connman e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    glib e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    zlib e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    libffi e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    Python e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    readline e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    dbus e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    expat e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    iptables e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    libmnl e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    libnftnl e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    wpa_supplicant e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    libnl e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    iana-etc e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    ethtool e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    openssh e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    bluez e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    samba e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    heimdal e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    Python e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    sqlite e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    libaio e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    avahi e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    libdaemon e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    openvpn e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    lzo e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    alsa e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    udevil e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    fuse-exfat e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    fuse e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    ntfs-3g_ntfsprogs e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    debug e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    gdb e[1;37m(target)e[0m
  e[1;32mINSTALLe[0m    oem e[1;37m(target)e[0m
      e[1;32mINSTALLe[0m    RPi2 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    retroarch e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    freetype e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    libpng e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    retroarch-assets e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    retroarch-overlays e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    core-info e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    retroarch-joypad-autoconfig e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    glsl-shaders e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    lakka-update e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    libretro-database e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    ffmpeg e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    speex e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    bcm2835-driver e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    dtc e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    libass e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    fontconfig e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    libxml2 e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    fribidi e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    libvdpau e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    libX11 e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    xproto e[1;37m(host)e[0m
                      e[1;32mINSTALLe[0m    xproto e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    xextproto e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    xcmiscproto e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    bigreqsproto e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    kbproto e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    inputproto e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    xtrans e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    libXau e[1;37m(target)e[0m
                      e[1;32mINSTALLe[0m    libxcb e[1;37m(target)e[0m
                          e[1;32mINSTALLe[0m    xcb-proto e[1;37m(target)e[0m
                          e[1;32mINSTALLe[0m    libpthread-stubs e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    dri2proto e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    libXext e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    libxkbfile e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    xkeyboard-config e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    xkbcomp e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    libxkbcommon e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    joyutils e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    sixpair e[1;37m(target)e[0m
                  e[1;32mINSTALLe[0m    libusb-compat e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    empty e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    nss-mdns e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    2048 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    4do e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    81 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    atari800 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    beetle-lynx e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    beetle-ngp e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    beetle-pce e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    beetle-pcfx e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    beetle-supergrafx e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    beetle-vb e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    beetle-wswan e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    bluemsx e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    cap32 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    chaigame e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    crocods e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    desmume e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    dinothawr e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    dosbox e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    easyrpg e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    fbalpha e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    fceumm e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    fuse-libretro e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    gambatte e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    genesis-plus-gx e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    gpsp e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    gw-libretro e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    handy e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    hatari e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    lutro e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    mame2003 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    melonds e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    meowpc98 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    mgba e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    mrboom e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    mupen64plus e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    nasm e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    nestopia e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    nxengine e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    o2em e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    parallel-n64 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    pcsx_rearmed e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    picodrive e[1;37m(target)e[0m
              e[1;32mINSTALLe[0m    picodrive e[1;37m(host)e[0m
          e[1;32mINSTALLe[0m    pocketcdg e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    ppsspp e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    prboom e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    prosystem e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    puae e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    px68k e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    reicast e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    sameboy e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    scummvm e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    snes9x e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    snes9x2002 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    snes9x2005 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    snes9x2010 e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    stella e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    tgbdual e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    tyrquake e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    uae4arm e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    uzem e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    vbam e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    vecx e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    vice e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    virtualjaguar e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    xrick e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    yabause e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    wii-u-gc-adapter e[1;37m(target)e[0m
          e[1;32mINSTALLe[0m    wiringPi e[1;37m(target)e[0m
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on /home/john/Dev/lakka/Lakka-LibreELEC/target/Lakka-RPi2.arm-8.1.2.system, block size 131072.
[===========================================================/] 23953/23953 100%
Exportable Squashfs 4.0 filesystem, lzo compressed, data block size 131072
	compressed data, compressed metadata, compressed fragments, no xattrs
	duplicates are removed
Filesystem size 298577.08 Kbytes (291.58 Mbytes)
	47.52% of uncompressed filesystem size (628263.85 Kbytes)
Inode table size 259819 bytes (253.73 Kbytes)
	36.41% of uncompressed inode table size (713590 bytes)
Directory table size 340430 bytes (332.45 Kbytes)
	41.40% of uncompressed directory table size (822336 bytes)
Number of duplicate files found 1447
Number of inodes 21494
Number of files 20271
Number of fragments 990
Number of symbolic links  521
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 702
Number of ids (unique uids + gids) 2
Number of uids 1
	root (0)
Number of gids 2
	root (0)
	unknown (81)
Makefile:12: recipe for target 'image' failed

Any suggestions? I don’t expect anyone to provide verbose instructions, but just a hint at how to troubleshoot would be greatly appreciated :slight_smile:

Thanks,

–John

Gee Whiz!

I was missing the mkimage package! Once I installed that, my build finished successfully.

:stuck_out_tongue:

–John