I was successful in compiling asterisk in raspbien except for the following error If I enable the gsm codec. It appears there is something in the Makefile n this directory that needs to be changed. Probably involving optimization. Not sure why it does not recognize the processor since it is one that is mentioned in the Makefile.? Any help would be appreciated. make[2]: Entering directory `/usr/src/asterisk/codecs/gsm' ?? [AS] src/k6opt.s -> src/k6opt.o Assembler messages: Error: unknown architecture `armv6l' Error: unrecognized option -march=armv6l make[2]: *** [src/k6opt.o] Error 1 ? Here are the lines in the Makefile - ifeq (, $(findstring $(OSARCH) , Darwin SunOS )) ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b arm5b armeb hppa2.0 ppc powerpc ppc64 ia64 s390 bfin mipsel mips)) ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l arm5b armv5b armv61 armv7l s390 )) OPTIMIZE+=-march=$(PROC) endif endif endif gcc is - Thread model: posix gcc version 4.6.3 (Debian 4.6.3-14+rpi1) # uname -m armv6l Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140303/e3cd2a00/attachment.html>
Try to set PROC to arm. On Mon, Mar 3, 2014 at 7:13 PM, Doug <dsc3507 at yahoo.com> wrote:> I was successful in compiling asterisk in raspbien except for the > following error If I enable the gsm codec. It appears there is something in > the Makefile n this directory that needs to be changed. Probably involving > optimization. Not sure why it does not recognize the processor since it is > one that is mentioned in the Makefile. Any help would be appreciated. > > make[2]: Entering directory `/usr/src/asterisk/codecs/gsm' > [AS] src/k6opt.s -> src/k6opt.o > Assembler messages: > Error: unknown architecture `armv6l' > > Error: unrecognized option -march=armv6l > make[2]: *** [src/k6opt.o] Error 1 > > Here are the lines in the Makefile - > > ifeq (, $(findstring $(OSARCH) , Darwin SunOS )) > ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b > arm5b armeb hppa2.0 ppc powerpc ppc64 ia64 s390 bfin mipsel > mips)) > ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l arm5b > armv5b armv61 armv7l s390 )) > OPTIMIZE+=-march=$(PROC) > endif > endif > endif > > gcc is - > > Thread model: posix > gcc version 4.6.3 (Debian 4.6.3-14+rpi1) > > # uname -m > armv6l > > > Doug <http://www.crompton.com/> > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140303/2d227ede/attachment.html>
Hello Doug, Monday, March 3, 2014, 7:13:52 PM, you wrote:> I was successful in compiling asterisk in raspbien except for the > following error If I enable the gsm codec. It appears there is > something in the Makefile n this directory that needs to be changed. > Probably involving optimization. Not sure why it does not recognize > the processor since it is one that is mentioned in the Makefile. Any help would be appreciated.[snip]> Error: unknown architecture `armv6l'[snip]> Here are the lines in the Makefile - > ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l > arm5b armv5b armv61 armv7l s390 ))^^^^^^ I am not sure whether it is part of the problem, but the architecture on the machine appears to be armv6l (lower case L) whilst the Makefield has armv61 (the number one). A typo in the Makefile? -- Best regards, Julian mailto:jb_soft at trink.co.uk
On Mon, Mar 03, 2014 at 11:13:52AM -0800, Doug wrote:> I was successful in compiling asterisk in raspbien except for the following error If I enable the gsm codec. It appears there is something in the Makefile n this directory that needs to be changed. Probably involving optimization. Not sure why it does not recognize the processor since it is one that is mentioned in the Makefile.? Any help would be appreciated. > > > make[2]: Entering directory `/usr/src/asterisk/codecs/gsm' > ?? [AS] src/k6opt.s -> src/k6opt.o > Assembler messages: > Error: unknown architecture `armv6l' > > Error: unrecognized option -march=armv6l > make[2]: *** [src/k6opt.o] Error 1For the sake of the archives: Just use the system libgsm (make sure you have libgsm-dev installed). No point in using the bundled version. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com