Asterisk 11.7 on Ubuntu 12.0.4


I am currently trying to install a test machine in an Oracle virtual box with Ubuntu 12.0.4 installed.
The Asterisk version 11.7 (also tried the certified 11.6 version).

Whenever I try to run asterisk I get and Illegal instruction (core dumped)

gdb below :

Starting program: /usr/sbin/asterisk
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/i386-linux-gnu/”.

Program received signal SIGILL, Illegal instruction.
__ast_calloc_with_stringfields (num_structs=1, struct_size=56, field_mgr_offset=44, field_mgr_pool_offset=20, pool_size=179, file=0x8209e92 “logger.c”,
lineno=1488, func=0x820ac6c “ast_log_full”) at utils.c:2038
2038 *p++ = __ast_string_field_empty;

Anyone had this before as well?

There is a problem with gcc optimising for the specific target hardware on virtual machines (presumably they lie about their capabilities). You need to select a more generic target. You should be able to find details using Google.