Guillermo Salas M.
2007-Jan-04 11:42 UTC
[asterisk-users] Trouble compiling asterisk 1.2.14
Hi, I'm trying to compile asterisk 1.2.14 on a Debian Sarge amd64 with kernel 2.6.8-12-amd64-k8 make[2]: Entering directory `/usr/src/asterisk-1.2.14/codecs/gsm' gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -fomit-frame-pointer -fPIC -c -DNeedFunctionPrototypes=1 -funroll-loops -O6 -march=k8 -fPIC -DSASR -DNDEBUG -DWAV49 -I./inc src/add.c cc1: error: bad value (k8) for -march= switch cc1: error: bad value (k8) for -mcpu= switch make[2]: *** [src/add.o] Error 1 make[2]: Leaving directory `/usr/src/asterisk-1.2.14/codecs/gsm' make[1]: *** [gsm/lib/libgsm.a] Error 2 make[1]: Leaving directory `/usr/src/asterisk-1.2.14/codecs' make: *** [subdirs] Error 1 ruidoso:/usr/src/asterisk-1.2.14# uname -sr Linux 2.6.8-12-amd64-k8 Maybe I'm forgotting to install any dependency? Best regards, -- Guillermo Salas M. Telconet S.A. Calle 15 y Avenida 24 Esq Edificio Barre #2 Primer Piso Telefono : +593 5 262 8071 Celular : +593 9 985 5138 e-mail : gsalas@manta.telconet.net www : http://www.manta.telconet.net http://www.telcocarrier.net Linux User: 255902 Beat me, whip me, make me use Windows! Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html Please avoid the Top Posting, see http://es.wikipedia.org/wiki/Top-posting
On Thu, Jan 04, 2007 at 01:42:57PM -0500, Guillermo Salas M. wrote:> Hi, I'm trying to compile asterisk 1.2.14 on a Debian Sarge amd64 with > kernel 2.6.8-12-amd64-k8 > > > make[2]: Entering directory `/usr/src/asterisk-1.2.14/codecs/gsm' > gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT > -D_GNU_SOURCE -O6 -fomit-frame-pointer -fPIC -c > -DNeedFunctionPrototypes=1 -funroll-loops -O6 -march=k8 -fPIC -DSASR > -DNDEBUG -DWAV49 -I./inc src/add.c > cc1: error: bad value (k8) for -march= switch > cc1: error: bad value (k8) for -mcpu= switchgcc 3.3 and gcc 3.4 (which are availble on Sarge) don't support that, I believe. Try setting those values explicitly in the makefile. Or try reproducing the build of the deb package from the pkg-voip buildserver: http://pkg-voip.buildserver.net -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir