[luatex] luatex segfault on mips64el hardware

luigi scarso luigi.scarso at gmail.com
Mon Feb 20 20:07:21 CET 2012

On Fri, Feb 17, 2012 at 8:23 PM, Kip Warner <kip at thevertigo.com> wrote:
> On Fri, 2012-02-17 at 09:46 +0100, luigi scarso wrote:
>> Hm I  have to see if there is some support for qemu, ( and even better
>> for cross-compilation).
>> From
>> http://en.wikipedia.org/wiki/Loongson
>> Unlike processors from Intel, Advanced Micro Devices or VIA
>> Technologies, Loongson does not support the x86 instruction set. The
>> processor's main operating system is GNU/Linux, while in theory any OS
>> with MIPS support should also work. For example, Windows CE was ported
>> to a Loongson-based system with minimal effort.[13] In 2010, Lemote
>> ported an Android distribution to the Loongson platform.[14]
> Well, best of luck to you. I'll be out of town until Sunday night. Let
> me know if you need me to do anything with the machine.
> --
> Kip Warner -- Software Engineer
> OpenPGP encrypted/signed mail preferred
> http://www.thevertigo.com
Download files from

Install the system with

#qemu-img create -f raw mipsel.img 10G
#qemu-system-mips64el  -M malta -initrd initrd.gz -cpu 5Kc -kernel
vmlinux-2.6.32-5-4kc-malta -hda mipsel.img -append "root=/dev/ram
console=ttyS0" -nographic  -m 256

Copy then new kernel:
#mkdir temp
#modprobe nbd max_part=16
#qemu-nbd -c /dev/nbd0 mipsel.img
#partprobe /dev/nbd0
#mount /dev/nbd0p1 temp/
#cp temp/boot/vmlinux-2.6.32-5-5kc-malta .
#umount temp

Run the system:

#qemu-system-mips64el -M malta -cpu 5Kc -kernel
vmlinux-2.6.32-5-5kc-malta -hda mipsel.img -cdrom
debian-6.0.4-mipsel-DVD-1.iso -append "root=/dev/sda1 console=ttyS0"
-nographic -m 256 -redir tcp:2232::22
(cdrom is /dev/sr0, make a symlink  /cdrom -> /dev/sr0 ortherwise
apt-cdrom fails)

$> cat /proc/cpuinfo
system type		: MIPS Malta
processor		: 0
cpu model		: MIPS 5Kc V0.0
BogoMIPS		: 465.92
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 32
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 1, address/irw mask: [0x0ff8]
ASEs implemented	:
shadow register sets	: 1
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available

Unfortunately Loongson froze qemu, and even malta is a bit instable.

Install luatex from svn and  compile with build.sh as usual

Compilation take ~8hours on my laptop
Intel(R) Core(TM)2 Duo CPU     T7250  @ 2.00GHz
It would be nice to have a cross-compiler.
(Maybe aboriginal
can help here)

Anyway at the end :
root at debian-mips64el:/opt/luatex/trunk/build/texk/web2c# ./luatex
warning: kpathsea: configuration file texmf.cnf not found in these
directories: /opt/luatex/trunk/build/texk/web2c:/opt/luatex/trunk/build/texk:/opt/luatex/trunk/build:/opt/luatex/trunk/build/texk/web2c/share/texmf-local/web2c:/opt/luatex/trunk/build/texk/share/texmf-local/web2c:/opt/luatex/trunk/build/share/texmf-local/web2c:/opt/luatex/trunk/build/texk/web2c/texmf-local/web2c:/opt/luatex/trunk/build/texk/texmf-local/web2c:/opt/luatex/trunk/build/texmf-local/web2c:/opt/luatex/trunk/build/texk/web2c/share/texmf/web2c:/opt/luatex/trunk/build/texk/share/texmf/web2c:/opt/luatex/trunk/build/share/texmf/web2c:/opt/luatex/trunk/build/texk/web2c/texmf/web2c:/opt/luatex/trunk/build/texk/texmf/web2c:/opt/luatex/trunk/build/texmf/web2c.
This is LuaTeX, Version beta-0.71.0-2012022010 (rev 4358)

I will eventually install context.

More information about the luatex mailing list