Compiling Lakka for 32-bit UEFI

Hello everyone,

I am trying to compile Lakka to test on my ThinkPad 8 tablet but I am having problems during the compilation.

I followed the instructions here: http://www.lakka.tv/doc/Compiling-Lakka/ But for some reason the compilation is stopping when compiling MAME2003 core. The error message I receive is the following:

src/sndhrdw/redbaron.c:22:12: warning: type of 'rb_input_select' does not match original declaration
 extern int rb_input_select;
            ^
src/drivers/bzone.c:211:0: note: previously declared here
 UINT8 rb_input_select;
 ^
src/vidhrdw/pbillian_vidhrdw.c:14:0: warning: type of 'is_pbillian' does not match original declaration
 extern int is_pbillian;
 ^
src/drivers/pbillian.c:112:0: note: previously declared here
 data8_t select_403,select_407,select_408,is_pbillian;
 ^
i686-openelec-linux-gnu-gcc-4.9.2: internal compiler error: Killed (program lto1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /home/lipe/Lakka/build.Lakka-Generic.i386-devel/toolchain/bin/i686-openelec-linux-gnu-gcc-4.9.2 returned 4 exit status
/home/lipe/Lakka/build.Lakka-Generic.i386-devel/toolchain/lib/gcc/i686-openelec-linux-gnu/4.9.2/../../../../i686-openelec-linux-gnu/bin/ld.gold: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Makefile:250: recipe for target 'mame2003_libretro.so' failed
make[1]: *** [mame2003_libretro.so] Error 1
make[1]: Leaving directory '/home/lipe/Lakka/build.Lakka-Generic.i386-devel/mame2003-4145a3b'
make: ** [image] Erro 2

It seems that GCC just crashed? At first I thought that I my VM would be low on HD space, but there is still 11GB left. So, someone has any idea of what is happening?

Thanks :slight_smile:

You don’t have enough RAM. Use a bigger swap space. MAME is a monster to compile :wink:

Thanks, it worked :slight_smile: I just had to increase the RAM used by my VM from 2GB to 4GB (I have 2GB of swap). It was easier than increasing the swap partition, and probably faster.

EDIT:

Just managed to compile everything. It did not work :frowning: Sadly I expected that when I saw this commit: https://github.com/libretro/Lakka/commit/79b18383aa466d07aa4a42a2f65b522a589fd388

I tested with the 32-bit version. For some reason I can boot with GRUB and 32-bit or 64-bit Ubuntu, maybe it is an incompatibility with syslinux? According to “http://www.syslinux.org/wiki/index.php?title=Syslinux_6_Changelog” there is a fix when no keyboard is present on the system on version 6.04 and that could be the problem, but I still need to buy a HUB to test this. Later I might try to compile the 6.04 version, or even try to change the bootloader to GRUB, no time right now.

If anyone wants to test the build, you can just download it here: https://mega.nz/#!AktygTqJ!iVI68genWtcOTmS7a9VJ-NXJUbGs64YqAVnJjG_H640

Note that resizing the data partition automatically does not work, so you must resize it manually with another tool. But the default is enough to test. The build works fine on my notebook with 64-bit UEFI.

[QUOTE=lagonauta;40032]Thanks, it worked :slight_smile: I just had to increase the RAM used by my VM from 2GB to 4GB (I have 2GB of swap). It was easier than increasing the swap partition, and probably faster.

EDIT:

Just managed to compile everything. It did not work :frowning: Sadly I expected that when I saw this commit: https://github.com/libretro/Lakka/commit/79b18383aa466d07aa4a42a2f65b522a589fd388

I tested with the 32-bit version. For some reason I can boot with GRUB and 32-bit or 64-bit Ubuntu, maybe it is an incompatibility with syslinux? According to “http://www.syslinux.org/wiki/index.php?title=Syslinux_6_Changelog” there is a fix when no keyboard is present on the system on version 6.04 and that could be the problem, but I still need to buy a HUB to test this. Later I might try to compile the 6.04 version, or even try to change the bootloader to GRUB, no time right now.

If anyone wants to test the build, you can just download it here: https://mega.nz/#!AktygTqJ!iVI68genWtcOTmS7a9VJ-NXJUbGs64YqAVnJjG_H640

Note that resizing the data partition automatically does not work, so you must resize it manually with another tool. But the default is enough to test. The build works fine on my notebook with 64-bit UEFI.[/QUOTE] Great! I will test it later on my Pipo X7S which has a 32bit UEFI bios and a Z3736F and can’t boot OpenElec/LibreElec. Will post later with results.

We now have EFI images on our download servers. They are suffixed -efi. http://mirror.lakka.tv/nightly/