Linux From Scratch on mips64el

A highly experimental port of LFS for 64-bit little-endian MIPS.

LFS book for mips64el

LFS mips64el-11.0-systemd-rc2

LFS mips64el-11.0-rc2 (not tested at all!)

Chinese translation

WIP...

Notes building packages on mips64el

WIP...

Glib

Remove the test named extra_sources from gio/tests/meson.build (fix FTBFS).

Libaio

Patch (fix test failure and runtime issue).

LLVM

If building clang, use sed '/MIPS64ELTriples.. =/a "mips64el-unknown-linux-gnuabi64",' -i tools/clang/lib/Driver/ToolChains/Gnu.cpp (or clang won't be possible to compile a hello world program).

Build for NaN 2008

Patch to make IEEE 754-2008 NaN the default.

Rustc

sed 's/-Cdebuginfo=2/& -Ctarget-feature=+xgot/' -i src/bootstrap/bootstrap.py (fix FTBFS).

Build for NaN 2008

Need a rustc binary to bootstrap. Note that the upstream only guarantees that rustc-1.x.y can bootstrap rustc-1.x.z and rustc-1.(x+1).z.

sed 's/elf::EF_MIPS_PIC/& | elf::EF_MIPS_NAN2008/' -i compiler/rustc_codegen_ssa/src/back/link.rs (workaround FTBFS).

SBC

Remove __builtin_cpu_init(); from sbc/sbc_primitive.c(fix FTBFS).

xorg-server

Patch (fix FTBFS).

libvpx

Patch (fix FTBFS).

ffmpeg

Use --disable-mmi (workaround FTBFS) and --disable-msa (work around wrong decoding result at runtime).

WebKitGTK

If the kernel is configured with page size > 4 KB, use -DUSE_64KB_PAGE_BLOCK=ON (fix crash at runtime).