[asterisk-users] Trouble compiling asterisk 1.2.14

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Jan 4 12:33:13 MST 2007


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= switch

gcc 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 at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir


More information about the asterisk-users mailing list