Asterisk 11 not compiling on Ubuntu 12.04

Hey,

I have a HP Proliant Server, Intel E3-1220V3
and Ubuntu Server 12.04.

Asterisk 11 does not compile and I cannot interpret the error given.
On an another machine the installation ran without problems.

I did:

[code]wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
tar zxvf asterisk-11-current.tar.gz
aptitude install build-essential ncurses-dev libxml2-dev libsqlite3-dev libssl-dev libmysqlclient-dev uuid-dev libnewt-dev linux-headers-$(uname -r)

cd asterisk-11.5.1

./configure

make menuconfig

make[/code]

configure runs without error, make gives this:

CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect make[1]: Betrete Verzeichnis '/home/kai/asterisk-11.5.1/menuselect' gcc -g -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c gcc -g -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -D_GNU_SOURCE -Wall -c -o menuselect_stub.o menuselect_stub.c gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a make[1]: Verlasse Verzeichnis '/home/kai/asterisk-11.5.1/menuselect' Generating input for menuselect ... menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... [CC] astdb2sqlite3.c -> astdb2sqlite3.o [LD] astdb2sqlite3.o db1-ast/libdb1.a -> astdb2sqlite3 [CC] astdb2bdb.c -> astdb2bdb.o [LD] astdb2bdb.o db1-ast/libdb1.a -> astdb2bdb [CC] chan_agent.c -> chan_agent.o [LD] chan_agent.o -> chan_agent.so [CC] chan_bridge.c -> chan_bridge.o [LD] chan_bridge.o -> chan_bridge.so [CC] chan_iax2.c -> chan_iax2.o [CC] iax2-parser.c -> iax2-parser.o [CC] iax2-provision.c -> iax2-provision.o [LD] chan_iax2.o iax2-parser.o iax2-provision.o -> chan_iax2.so [CC] chan_local.c -> chan_local.o [LD] chan_local.o -> chan_local.so [CC] chan_multicast_rtp.c -> chan_multicast_rtp.o [LD] chan_multicast_rtp.o -> chan_multicast_rtp.so [CC] chan_oss.c -> chan_oss.o [CC] console_video.c -> console_video.o [CC] vgrabbers.c -> vgrabbers.o [CC] console_board.c -> console_board.o [LD] chan_oss.o console_video.o vgrabbers.o console_board.o -> chan_oss.so [CC] chan_phone.c -> chan_phone.o [LD] chan_phone.o -> chan_phone.so [CC] chan_sip.c -> chan_sip.o [CC] sip/config_parser.c -> sip/config_parser.o [CC] sip/dialplan_functions.c -> sip/dialplan_functions.o [CC] sip/reqresp_parser.c -> sip/reqresp_parser.o [CC] sip/sdp_crypto.c -> sip/sdp_crypto.o [CC] sip/security_events.c -> sip/security_events.o [CC] sip/srtp.c -> sip/srtp.o [CC] sip/utils.c -> sip/utils.o [LD] chan_sip.o sip/config_parser.o sip/dialplan_functions.o sip/reqresp_parser.o sip/sdp_crypto.o sip/security_events.o sip/srtp.o sip/utils.o -> chan_sip.so [CC] chan_skinny.c -> chan_skinny.o chan_skinny.c: In Funktion »handle_stimulus_message«: chan_skinny.c:5696:6: Warnung: Variable »callreference« gesetzt, aber nicht verwendet [-Wunused-but-set-variable] [LD] chan_skinny.o -> chan_skinny.so [CC] chan_unistim.c -> chan_unistim.o [LD] chan_unistim.o -> chan_unistim.so [CC] pbx_ael.c -> pbx_ael.o [LD] pbx_ael.o -> pbx_ael.so [CC] pbx_config.c -> pbx_config.o [LD] pbx_config.o -> pbx_config.so [CC] pbx_dundi.c -> pbx_dundi.o [CC] dundi-parser.c -> dundi-parser.o [LD] pbx_dundi.o dundi-parser.o -> pbx_dundi.so [CC] pbx_loopback.c -> pbx_loopback.o [LD] pbx_loopback.o -> pbx_loopback.so [CC] pbx_realtime.c -> pbx_realtime.o [LD] pbx_realtime.o -> pbx_realtime.so [CC] pbx_spool.c -> pbx_spool.o [LD] pbx_spool.o -> pbx_spool.so [CC] app_adsiprog.c -> app_adsiprog.o [LD] app_adsiprog.o -> app_adsiprog.so [CC] app_alarmreceiver.c -> app_alarmreceiver.o [LD] app_alarmreceiver.o -> app_alarmreceiver.so [CC] app_amd.c -> app_amd.o [LD] app_amd.o -> app_amd.so [CC] app_authenticate.c -> app_authenticate.o [LD] app_authenticate.o -> app_authenticate.so [CC] app_cdr.c -> app_cdr.o [LD] app_cdr.o -> app_cdr.so [CC] app_celgenuserevent.c -> app_celgenuserevent.o [LD] app_celgenuserevent.o -> app_celgenuserevent.so [CC] app_chanisavail.c -> app_chanisavail.o [LD] app_chanisavail.o -> app_chanisavail.so [CC] app_channelredirect.c -> app_channelredirect.o [LD] app_channelredirect.o -> app_channelredirect.so [CC] app_chanspy.c -> app_chanspy.o [LD] app_chanspy.o -> app_chanspy.so [CC] app_confbridge.c -> app_confbridge.o [CC] confbridge/conf_config_parser.c -> confbridge/conf_config_parser.o [CC] confbridge/conf_state.c -> confbridge/conf_state.o [CC] confbridge/conf_state_empty.c -> confbridge/conf_state_empty.o [CC] confbridge/conf_state_inactive.c -> confbridge/conf_state_inactive.o [CC] confbridge/conf_state_multi.c -> confbridge/conf_state_multi.o [CC] confbridge/conf_state_multi_marked.c -> confbridge/conf_state_multi_marked.o [CC] confbridge/conf_state_single.c -> confbridge/conf_state_single.o [CC] confbridge/conf_state_single_marked.c -> confbridge/conf_state_single_marked.o [LD] app_confbridge.o confbridge/conf_config_parser.o confbridge/conf_state.o confbridge/conf_state_empty.o confbridge/conf_state_inactive.o confbridge/conf_state_multi.o confbridge/conf_state_multi_marked.o confbridge/conf_state_single.o confbridge/conf_state_single_marked.o -> app_confbridge.so [CC] app_controlplayback.c -> app_controlplayback.o [LD] app_controlplayback.o -> app_controlplayback.so [CC] app_db.c -> app_db.o [LD] app_db.o -> app_db.so [CC] app_dial.c -> app_dial.o [LD] app_dial.o -> app_dial.so [CC] app_dictate.c -> app_dictate.o [LD] app_dictate.o -> app_dictate.so [CC] app_directed_pickup.c -> app_directed_pickup.o [LD] app_directed_pickup.o -> app_directed_pickup.so [CC] app_directory.c -> app_directory.o [LD] app_directory.o -> app_directory.so [CC] app_disa.c -> app_disa.o [LD] app_disa.o -> app_disa.so [CC] app_dumpchan.c -> app_dumpchan.o [LD] app_dumpchan.o -> app_dumpchan.so [CC] app_echo.c -> app_echo.o [LD] app_echo.o -> app_echo.so [CC] app_exec.c -> app_exec.o [LD] app_exec.o -> app_exec.so [CC] app_externalivr.c -> app_externalivr.o [LD] app_externalivr.o -> app_externalivr.so [CC] app_festival.c -> app_festival.o [LD] app_festival.o -> app_festival.so [CC] app_followme.c -> app_followme.o [LD] app_followme.o -> app_followme.so [CC] app_forkcdr.c -> app_forkcdr.o [LD] app_forkcdr.o -> app_forkcdr.so [CC] app_getcpeid.c -> app_getcpeid.o [LD] app_getcpeid.o -> app_getcpeid.so [CC] app_ices.c -> app_ices.o [LD] app_ices.o -> app_ices.so [CC] app_image.c -> app_image.o [LD] app_image.o -> app_image.so [CC] app_macro.c -> app_macro.o [LD] app_macro.o -> app_macro.so [CC] app_milliwatt.c -> app_milliwatt.o [LD] app_milliwatt.o -> app_milliwatt.so [CC] app_minivm.c -> app_minivm.o [LD] app_minivm.o -> app_minivm.so [CC] app_mixmonitor.c -> app_mixmonitor.o [LD] app_mixmonitor.o -> app_mixmonitor.so [CC] app_morsecode.c -> app_morsecode.o [LD] app_morsecode.o -> app_morsecode.so [CC] app_mp3.c -> app_mp3.o [LD] app_mp3.o -> app_mp3.so [CC] app_nbscat.c -> app_nbscat.o [LD] app_nbscat.o -> app_nbscat.so [CC] app_originate.c -> app_originate.o [LD] app_originate.o -> app_originate.so [CC] app_page.c -> app_page.o [LD] app_page.o -> app_page.so [CC] app_parkandannounce.c -> app_parkandannounce.o [LD] app_parkandannounce.o -> app_parkandannounce.so [CC] app_playback.c -> app_playback.o [LD] app_playback.o -> app_playback.so [CC] app_playtones.c -> app_playtones.o [LD] app_playtones.o -> app_playtones.so [CC] app_privacy.c -> app_privacy.o [LD] app_privacy.o -> app_privacy.so [CC] app_queue.c -> app_queue.o [LD] app_queue.o -> app_queue.so [CC] app_read.c -> app_read.o [LD] app_read.o -> app_read.so [CC] app_readexten.c -> app_readexten.o [LD] app_readexten.o -> app_readexten.so [CC] app_record.c -> app_record.o [LD] app_record.o -> app_record.so [CC] app_sayunixtime.c -> app_sayunixtime.o [LD] app_sayunixtime.o -> app_sayunixtime.so [CC] app_senddtmf.c -> app_senddtmf.o [LD] app_senddtmf.o -> app_senddtmf.so [CC] app_sendtext.c -> app_sendtext.o [LD] app_sendtext.o -> app_sendtext.so [CC] app_sms.c -> app_sms.o [LD] app_sms.o -> app_sms.so [CC] app_softhangup.c -> app_softhangup.o [LD] app_softhangup.o -> app_softhangup.so [CC] app_speech_utils.c -> app_speech_utils.o [LD] app_speech_utils.o -> app_speech_utils.so [CC] app_stack.c -> app_stack.o [LD] app_stack.o -> app_stack.so [CC] app_system.c -> app_system.o [LD] app_system.o -> app_system.so [CC] app_talkdetect.c -> app_talkdetect.o [LD] app_talkdetect.o -> app_talkdetect.so [CC] app_test.c -> app_test.o [LD] app_test.o -> app_test.so [CC] app_transfer.c -> app_transfer.o [LD] app_transfer.o -> app_transfer.so [CC] app_url.c -> app_url.o [LD] app_url.o -> app_url.so [CC] app_userevent.c -> app_userevent.o [LD] app_userevent.o -> app_userevent.so [CC] app_verbose.c -> app_verbose.o [LD] app_verbose.o -> app_verbose.so [CC] app_voicemail.c -> app_voicemail.o [LD] app_voicemail.o -> app_voicemail.so [CC] app_waitforring.c -> app_waitforring.o [LD] app_waitforring.o -> app_waitforring.so [CC] app_waitforsilence.c -> app_waitforsilence.o [LD] app_waitforsilence.o -> app_waitforsilence.so [CC] app_waituntil.c -> app_waituntil.o [LD] app_waituntil.o -> app_waituntil.so [CC] app_while.c -> app_while.o [LD] app_while.o -> app_while.so [CC] app_zapateller.c -> app_zapateller.o [LD] app_zapateller.o -> app_zapateller.so [CC] enhancer.c -> enhancer.o {standard input}: Assembler messages: {standard input}:1036: Error: no such instruction: `vfmadd312ps 160(%rsp),%ymm0,%ymm1' {standard input}:1041: Error: no such instruction: `vfmadd312ps 192(%rsp),%ymm0,%ymm1' {standard input}:1045: Error: no such instruction: `vfmadd312ps 224(%rsp),%ymm0,%ymm1' {standard input}:1049: Error: no such instruction: `vfmadd312ps 256(%rsp),%ymm0,%ymm1' {standard input}:1053: Error: no such instruction: `vfmadd312ps 288(%rsp),%ymm0,%ymm1' {standard input}:1057: Error: no such instruction: `vfmadd312ps 320(%rsp),%ymm0,%ymm1' {standard input}:1061: Error: no such instruction: `vfmadd312ps 352(%rsp),%ymm0,%ymm1' {standard input}:1065: Error: no such instruction: `vfmadd312ps 384(%rsp),%ymm0,%ymm1' {standard input}:1069: Error: no such instruction: `vfmadd312ps 416(%rsp),%ymm0,%ymm1' {standard input}:1077: Error: no such instruction: `vfmadd312ps 448(%rsp),%ymm0,%ymm1' {standard input}:1103: Error: no such instruction: `vfmadd312ps 160(%rsp),%ymm0,%ymm1' {standard input}:1108: Error: no such instruction: `vfmadd312ps 192(%rsp),%ymm0,%ymm1' {standard input}:1112: Error: no such instruction: `vfmadd312ps 224(%rsp),%ymm0,%ymm1' {standard input}:1116: Error: no such instruction: `vfmadd312ps 256(%rsp),%ymm0,%ymm1' {standard input}:1120: Error: no such instruction: `vfmadd312ps 288(%rsp),%ymm0,%ymm1' {standard input}:1124: Error: no such instruction: `vfmadd312ps 320(%rsp),%ymm0,%ymm1' {standard input}:1128: Error: no such instruction: `vfmadd312ps 352(%rsp),%ymm0,%ymm1' {standard input}:1132: Error: no such instruction: `vfmadd312ps 384(%rsp),%ymm0,%ymm1' {standard input}:1136: Error: no such instruction: `vfmadd312ps 416(%rsp),%ymm0,%ymm1' {standard input}:1140: Error: no such instruction: `vfmadd312ps 448(%rsp),%ymm0,%ymm1' make[2]: *** [enhancer.o] Fehler 1 make[1]: *** [ilbc] Fehler 2 make: *** [codecs] Fehler 2

Anyone knows what to do?

ahh… I found the solution:

./configure CFLAGS=-mtune=generic

made it compile. Probably because of the xeon processor.

I have the same issue with Asterisk 13 on Ubuntu 12.04 running on an Azure VM. I tried ./configure CFLAGS=-mtune=generic and still receive the same error when running make:

CC=“cc” CXX=“g++” LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="–silent" makeopts
make[1]: Entering directory /usr/src/asterisk-13.12.1/menuselect' make[1]:makeopts’ is up to date.
make[1]: Leaving directory /usr/src/asterisk-13.12.1/menuselect' Generating input for menuselect ... menuselect/menuselect --check-deps menuselect.makeopts Unknown value '' found in build_tools/menuselect-deps for HAVE_ADDRESS_SANITIZER Unknown value '' found in build_tools/menuselect-deps for HAVE_THREAD_SANITIZER menuselect/menuselect --check-deps menuselect.makeopts Unknown value '' found in build_tools/menuselect-deps for HAVE_ADDRESS_SANITIZER Unknown value '' found in build_tools/menuselect-deps for HAVE_THREAD_SANITIZER Generating embedded module rules ... [CC] enhancer.c -> enhancer.o {standard input}: Assembler messages: {standard input}:1036: Error: no such instruction:vfmadd312ps 160(%rsp),%ymm0,%ymm1’
{standard input}:1041: Error: no such instruction: vfmadd312ps 192(%rsp),%ymm0,%ymm1' {standard input}:1045: Error: no such instruction:vfmadd312ps 224(%rsp),%ymm0,%ymm1’
{standard input}:1049: Error: no such instruction: vfmadd312ps 256(%rsp),%ymm0,%ymm1' {standard input}:1053: Error: no such instruction:vfmadd312ps 288(%rsp),%ymm0,%ymm1’
{standard input}:1057: Error: no such instruction: vfmadd312ps 320(%rsp),%ymm0,%ymm1' {standard input}:1061: Error: no such instruction:vfmadd312ps 352(%rsp),%ymm0,%ymm1’
{standard input}:1065: Error: no such instruction: vfmadd312ps 384(%rsp),%ymm0,%ymm1' {standard input}:1069: Error: no such instruction:vfmadd312ps 416(%rsp),%ymm0,%ymm1’
{standard input}:1077: Error: no such instruction: vfmadd312ps 448(%rsp),%ymm0,%ymm1' {standard input}:1103: Error: no such instruction:vfmadd312ps 160(%rsp),%ymm0,%ymm1’
{standard input}:1108: Error: no such instruction: vfmadd312ps 192(%rsp),%ymm0,%ymm1' {standard input}:1112: Error: no such instruction:vfmadd312ps 224(%rsp),%ymm0,%ymm1’
{standard input}:1116: Error: no such instruction: vfmadd312ps 256(%rsp),%ymm0,%ymm1' {standard input}:1120: Error: no such instruction:vfmadd312ps 288(%rsp),%ymm0,%ymm1’
{standard input}:1124: Error: no such instruction: vfmadd312ps 320(%rsp),%ymm0,%ymm1' {standard input}:1128: Error: no such instruction:vfmadd312ps 352(%rsp),%ymm0,%ymm1’
{standard input}:1132: Error: no such instruction: vfmadd312ps 384(%rsp),%ymm0,%ymm1' {standard input}:1136: Error: no such instruction:vfmadd312ps 416(%rsp),%ymm0,%ymm1’
{standard input}:1140: Error: no such instruction: `vfmadd312ps 448(%rsp),%ymm0,%ymm1’
make[2]: *** [enhancer.o] Error 1
make[1]: *** [ilbc] Error 2
make: *** [codecs] Error 2

Any suggestions?

Raise a bug report on the toolchain you are using to compile it, or select a target processor that doesn’t have SIMD instructions (e.g. basic 80386), or remove iLBC from your list of configured codecs.