Illegal hardware instruction at asterisk.c:2166

Good day,

I’ve compiled asterisk 1.2.7.1 on Debian testing (partly out-of-date), according to the freepbx docs, and it gives the preceding error (when combined with gdb). It gives it even if no configuration files are present, and asterisk-addons has not yet been installed. The last system call was munmap.

Compiled with:
linux 2.6.16.5 (stock)
gcc 4.0.3 and later 3.3
binutils 2.16.1cvs20060413
libc6 2.3.6-7

The CPU is a VIA Samuel 2, according to /proc/cpuinfo. I have no special hardware installed; I doubt sound even works.

I’m happy to supply more info, try tweaking things, etc.
Many thanks for any advice,
Peter