VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
dsc3507 at yahoo.com Guest
|
Posted: Mon Mar 03, 2014 2:14 pm Post subject: [asterisk-users] gsm codec compile |
|
|
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[url=http://www.crompton.com/][/url] |
|
Back to top |
|
|
rodrigoborgespereira a... Guest
|
Posted: Mon Mar 03, 2014 3:18 pm Post subject: [asterisk-users] gsm codec compile |
|
|
Try to set PROC to arm.
On Mon, Mar 3, 2014 at 7:13 PM, Doug <dsc3507@yahoo.com (dsc3507@yahoo.com)> wrote:
Quote: | 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[/url]
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by [url=http://www.api-digital.com]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
|
|
|
Back to top |
|
|
dsc3507 at yahoo.com Guest
|
Posted: Mon Mar 03, 2014 4:49 pm Post subject: [asterisk-users] gsm codec compile |
|
|
OK set PROC to -
OPTIMIZE+=-march=arm
and now getting tons of errors in k6opt.s
src/k6opt.s:350: Error: bad instruction `psllw %mm3,%mm0'
src/k6opt.s:351: Error: bad instruction `movd %mm0,%eax'
src/k6opt.s:352: Error: selected processor does not support ARM mode `movw %ax,(%esi)'
src/k6opt.s:356: Error: bad instruction `emms'
src/k6opt.s:358: Error: bad instruction `popl %esi'
src/k6opt.s:359: Error: bad instruction `leave'
src/k6opt.s:360: Error: bad instruction `ret'
src/k6opt.s:367: Error: unrecognized symbol type ""
src/k6opt.s:372: Error: unrecognized symbol type ""
src/k6opt.s:382: Error: unrecognized symbol type ""
src/k6opt.s:384: Error: bad instruction `pushl %ebp'
src/k6opt.s:385: Error: bad instruction `movl %esp,%ebp'
src/k6opt.s:386: Error: bad instruction `pushl %esi'
Doug Crompton
WA3DSP
http://www.crompton.com
On Monday, March 3, 2014 3:18 PM, Rodrigo Borges Pereira <rodrigoborgespereira@gmail.com> wrote:
Quote: | Try to set PROC to arm.
On Mon, Mar 3, 2014 at 7:13 PM, Doug <dsc3507@yahoo.com (dsc3507@yahoo.com)> wrote:
Quote: | 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[/url]
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by [url=http://www.api-digital.com/]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
|
|
|
|
Back to top |
|
|
rodrigoborgespereira a... Guest
|
Posted: Mon Mar 03, 2014 8:10 pm Post subject: [asterisk-users] gsm codec compile |
|
|
what about editing makeopts.in to have PROC=arm ?
On Mon, Mar 3, 2014 at 9:48 PM, Doug <dsc3507@yahoo.com (dsc3507@yahoo.com)> wrote:
Quote: | OK set PROC to -
OPTIMIZE+=-march=arm
and now getting tons of errors in k6opt.s
src/k6opt.s:350: Error: bad instruction `psllw %mm3,%mm0'
src/k6opt.s:351: Error: bad instruction `movd %mm0,%eax'
src/k6opt.s:352: Error: selected processor does not support ARM mode `movw %ax,(%esi)'
src/k6opt.s:356: Error: bad instruction `emms'
src/k6opt.s:358: Error: bad instruction `popl %esi'
src/k6opt.s:359: Error: bad instruction `leave'
src/k6opt.s:360: Error: bad instruction `ret'
src/k6opt.s:367: Error: unrecognized symbol type ""
src/k6opt.s:372: Error: unrecognized symbol type ""
src/k6opt.s:382: Error: unrecognized symbol type ""
src/k6opt.s:384: Error: bad instruction `pushl %ebp'
src/k6opt.s:385: Error: bad instruction `movl %esp,%ebp'
src/k6opt.s:386: Error: bad instruction `pushl %esi'
Doug Crompton
WA3DSP
http://www.crompton.com
On Monday, March 3, 2014 3:18 PM, Rodrigo Borges Pereira <rodrigoborgespereira@gmail.com (rodrigoborgespereira@gmail.com)> wrote:
Quote: | Try to set PROC to arm.
On Mon, Mar 3, 2014 at 7:13 PM, Doug <dsc3507@yahoo.com (dsc3507@yahoo.com)> wrote:
Quote: | 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[/url]
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by [url=http://www.api-digital.com/]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
|
|
|
|
|
Back to top |
|
|
dsc3507 at yahoo.com Guest
|
Posted: Tue Mar 04, 2014 12:32 am Post subject: [asterisk-users] gsm codec compile |
|
|
Ok got it going. Problem was I didn't do what you said the first time. When I put
PROC = arm
at the beginning of the Makefile in asterisk/codecs/gsm It compiles fine.
Doug Crompton
WA3DSP
http://www.crompton.com
On Monday, March 3, 2014 8:10 PM, Rodrigo Borges Pereira <rodrigoborgespereira@gmail.com> wrote:
Quote: | what about editing makeopts.in to have PROC=arm ?
On Mon, Mar 3, 2014 at 9:48 PM, Doug <dsc3507@yahoo.com (dsc3507@yahoo.com)> wrote:
Quote: | OK set PROC to -
OPTIMIZE+=-march=arm
and now getting tons of errors in k6opt.s
src/k6opt.s:350: Error: bad instruction `psllw %mm3,%mm0'
src/k6opt.s:351: Error: bad instruction `movd %mm0,%eax'
src/k6opt.s:352: Error: selected processor does not support ARM mode `movw %ax,(%esi)'
src/k6opt.s:356: Error: bad instruction `emms'
src/k6opt.s:358: Error: bad instruction `popl %esi'
src/k6opt.s:359: Error: bad instruction `leave'
src/k6opt.s:360: Error: bad instruction `ret'
src/k6opt.s:367: Error: unrecognized symbol type ""
src/k6opt.s:372: Error: unrecognized symbol type ""
src/k6opt.s:382: Error: unrecognized symbol type ""
src/k6opt.s:384: Error: bad instruction `pushl %ebp'
src/k6opt.s:385: Error: bad instruction `movl %esp,%ebp'
src/k6opt.s:386: Error: bad instruction `pushl %esi'
Doug Crompton
WA3DSP
http://www.crompton.com
On Monday, March 3, 2014 3:18 PM, Rodrigo Borges Pereira <rodrigoborgespereira@gmail.com (rodrigoborgespereira@gmail.com)> wrote:
Quote: | Try to set PROC to arm.
On Mon, Mar 3, 2014 at 7:13 PM, Doug <dsc3507@yahoo.com (dsc3507@yahoo.com)> wrote:
Quote: | 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[/url]
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by [url=http://www.api-digital.com/]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
|
|
|
|
|
|
Back to top |
|
|
asterisk at dotr.com Guest
|
Posted: Tue Mar 04, 2014 12:54 am Post subject: [asterisk-users] gsm codec compile |
|
|
this is all very odd. I have been compiling on raspbian wheezy for a
few months now, and have never come across this error
-rw-r--r-- 1 root root 6128 Aug 25 2013 codec_gsm.c
-rw-r--r-- 1 root root 126 Feb 8 08:50 codec_gsm.exports
-rw-r--r-- 1 root root 181808 Feb 8 08:50 codec_gsm.o
I don't have PROC defined in makeopts.in
uname -a
Linux hash42pi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014
armv6l GNU/Linux
What could be causing my setup to compile ok, but not yours ?
Julian
On 4 March 2014 01:10, Rodrigo Borges Pereira
<rodrigoborgespereira@gmail.com> wrote:
Quote: | what about editing makeopts.in to have PROC=arm ?
On Mon, Mar 3, 2014 at 9:48 PM, Doug <dsc3507@yahoo.com> wrote:
Quote: |
OK set PROC to -
OPTIMIZE+=-march=arm
and now getting tons of errors in k6opt.s
src/k6opt.s:350: Error: bad instruction `psllw %mm3,%mm0'
src/k6opt.s:351: Error: bad instruction `movd %mm0,%eax'
src/k6opt.s:352: Error: selected processor does not support ARM mode `movw
%ax,(%esi)'
src/k6opt.s:356: Error: bad instruction `emms'
src/k6opt.s:358: Error: bad instruction `popl %esi'
src/k6opt.s:359: Error: bad instruction `leave'
src/k6opt.s:360: Error: bad instruction `ret'
src/k6opt.s:367: Error: unrecognized symbol type ""
src/k6opt.s:372: Error: unrecognized symbol type ""
src/k6opt.s:382: Error: unrecognized symbol type ""
src/k6opt.s:384: Error: bad instruction `pushl %ebp'
src/k6opt.s:385: Error: bad instruction `movl %esp,%ebp'
src/k6opt.s:386: Error: bad instruction `pushl %esi'
Doug Crompton
WA3DSP
http://www.crompton.com
On Monday, March 3, 2014 3:18 PM, Rodrigo Borges Pereira
<rodrigoborgespereira@gmail.com> wrote:
Try to set PROC to arm.
On Mon, Mar 3, 2014 at 7:13 PM, Doug <dsc3507@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
--
_____________________________________________________________________
-- 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
|
--
_____________________________________________________________________
-- 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
|
--
Julian Lyndon-Smith
IT Director, Dot R Limited
"I don't care if it works on your machine! We are not shipping your machine!"
The kangaroo dances: http://www.youtube.com/watch?v=MAWl5iYOaUg
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
dsc3507 at yahoo.com Guest
|
Posted: Tue Mar 04, 2014 3:49 am Post subject: [asterisk-users] gsm codec compile |
|
|
Julian,
The only thing I can thik of is that your source is different version. My GSM files are dated oct 19, 2008. There have been changes in the GSM Makefile over the years. Also are you compiling natively or cross compiling. I am compiling natively.
Doug[/url]
On Tuesday, March 4, 2014 12:54 AM, Julian Lyndon-Smith <asterisk@dotr.com> wrote:
Quote: | this is all very odd. I have been compiling on raspbian wheezy for a
few months now, and have never come across this error
-rw-r--r-- 1 root root 6128 Aug 25 2013 codec_gsm.c
-rw-r--r-- 1 root root 126 Feb 8 08:50 codec_gsm.exports
-rw-r--r-- 1 root root 181808 Feb 8 08:50 codec_gsm.o
I don't have PROC defined in makeopts.in
uname -a
Linux hash42pi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014
armv6l GNU/Linux
What could be causing my setup to compile ok, but not yours ?
Julian
On 4 March 2014 01:10, Rodrigo Borges Pereira
<rodrigoborgespereira@gmail.com (rodrigoborgespereira@gmail.com)> wrote:
Quote: | what about editing makeopts.in to have PROC=arm ?
On Mon, Mar 3, 2014 at 9:48 PM, Doug <dsc3507@yahoo.com (dsc3507@yahoo.com)> wrote:
Quote: |
OK set PROC to -
OPTIMIZE+=-march=arm
and now getting tons of errors in k6opt.s
src/k6opt.s:350: Error: bad instruction `psllw %mm3,%mm0'
src/k6opt.s:351: Error: bad instruction `movd %mm0,%eax'
src/k6opt.s:352: Error: selected processor does not support ARM mode `movw
%ax,(%esi)'
src/k6opt.s:356: Error: bad instruction `emms'
src/k6opt.s:358: Error: bad instruction `popl %esi'
src/k6opt.s:359: Error: bad instruction `leave'
src/k6opt.s:360: Error: bad instruction `ret'
src/k6opt.s:367: Error: unrecognized symbol type ""
src/k6opt.s:372: Error: unrecognized symbol type ""
src/k6opt.s:382: Error: unrecognized symbol type ""
src/k6opt.s:384: Error: bad instruction `pushl %ebp'
src/k6opt.s:385: Error: bad instruction `movl %esp,%ebp'
src/k6opt.s:386: Error: bad instruction `pushl %esi'
Doug Crompton
WA3DSP
[url=http://www.crompton.com/]http://www.crompton.com
On Monday, March 3, 2014 3:18 PM, Rodrigo Borges Pereira
<rodrigoborgespereira@gmail.com (rodrigoborgespereira@gmail.com)> wrote:
Try to set PROC to arm.
On Mon, Mar 3, 2014 at 7:13 PM, Doug <dsc3507@yahoo.com (dsc3507@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
--
_____________________________________________________________________
-- 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
|
--
_____________________________________________________________________
-- 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
|
--
Julian Lyndon-Smith
IT Director, Dot R Limited
"I don't care if it works on your machine! We are not shipping your machine!"
The kangaroo dances: http://www.youtube.com/watch?v=MAWl5iYOaUg
|
|
|
Back to top |
|
|
asterisk at dotr.com Guest
|
Posted: Tue Mar 04, 2014 4:06 am Post subject: [asterisk-users] gsm codec compile |
|
|
oh, ok. I'm using asterisk-12.
Native compiling
On 4 March 2014 08:48, Doug <dsc3507@yahoo.com> wrote:
Quote: | Julian,
The only thing I can thik of is that your source is different version. My
GSM files are dated oct 19, 2008. There have been changes in the GSM
Makefile over the years. Also are you compiling natively or cross compiling.
I am compiling natively.
Doug
On Tuesday, March 4, 2014 12:54 AM, Julian Lyndon-Smith <asterisk@dotr.com>
wrote:
this is all very odd. I have been compiling on raspbian wheezy for a
few months now, and have never come across this error
-rw-r--r-- 1 root root 6128 Aug 25 2013 codec_gsm.c
-rw-r--r-- 1 root root 126 Feb 8 08:50 codec_gsm.exports
-rw-r--r-- 1 root root 181808 Feb 8 08:50 codec_gsm.o
I don't have PROC defined in makeopts.in
uname -a
Linux hash42pi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014
armv6l GNU/Linux
What could be causing my setup to compile ok, but not yours ?
Julian
On 4 March 2014 01:10, Rodrigo Borges Pereira
<rodrigoborgespereira@gmail.com> wrote:
Quote: | what about editing makeopts.in to have PROC=arm ?
On Mon, Mar 3, 2014 at 9:48 PM, Doug <dsc3507@yahoo.com> wrote:
Quote: |
OK set PROC to -
OPTIMIZE+=-march=arm
and now getting tons of errors in k6opt.s
src/k6opt.s:350: Error: bad instruction `psllw %mm3,%mm0'
src/k6opt.s:351: Error: bad instruction `movd %mm0,%eax'
src/k6opt.s:352: Error: selected processor does not support ARM mode
`movw
%ax,(%esi)'
src/k6opt.s:356: Error: bad instruction `emms'
src/k6opt.s:358: Error: bad instruction `popl %esi'
src/k6opt.s:359: Error: bad instruction `leave'
src/k6opt.s:360: Error: bad instruction `ret'
src/k6opt.s:367: Error: unrecognized symbol type ""
src/k6opt.s:372: Error: unrecognized symbol type ""
src/k6opt.s:382: Error: unrecognized symbol type ""
src/k6opt.s:384: Error: bad instruction `pushl %ebp'
src/k6opt.s:385: Error: bad instruction `movl %esp,%ebp'
src/k6opt.s:386: Error: bad instruction `pushl %esi'
Doug Crompton
WA3DSP
http://www.crompton.com
On Monday, March 3, 2014 3:18 PM, Rodrigo Borges Pereira
<rodrigoborgespereira@gmail.com> wrote:
Try to set PROC to arm.
On Mon, Mar 3, 2014 at 7:13 PM, Doug <dsc3507@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
--
_____________________________________________________________________
-- 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
|
--
_____________________________________________________________________
-- 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
|
--
Julian Lyndon-Smith
IT Director, Dot R Limited
"I don't care if it works on your machine! We are not shipping your
machine!"
The kangaroo dances: http://www.youtube.com/watch?v=MAWl5iYOaUg
|
--
Julian Lyndon-Smith
IT Director, Dot R Limited
"I don't care if it works on your machine! We are not shipping your machine!"
The kangaroo dances: http://www.youtube.com/watch?v=MAWl5iYOaUg
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
jb_soft at trink.co.uk Guest
|
Posted: Tue Mar 04, 2014 7:04 pm Post subject: [asterisk-users] gsm codec compile |
|
|
Hello Doug,
Monday, March 3, 2014, 7:13:52 PM, you wrote:
Quote: | 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]
Quote: | Error: unknown architecture `armv6l'
|
[snip]
Quote: | 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@trink.co.uk
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|