[Asterisk-Users] illegal instruction - on Via board
Amaury Jacquot
sxpert at esitcom.org
Tue Jun 8 05:46:59 MST 2004
dkwok wrote:
> I have sorted out the problem of compiling the CVS 040608. When launched
> the server die with " illegal instruction" error.
>
> Although the Makefile in asterisk is changed to PROC=i586. The Makefile
> in codecs/ilbc still has a line of reference by using uname -m which
> will come up with i686 architecture. So if you change that line 1 to:
>
> CFLAGS+=-Wall -Werror -fPIC -O3 -march=i586 -funroll-loops
> ^^^^^^^^^^
> -fomit-frame-pointer
> LIB=libilbc.a
>
> So I wonder the line should be -march=$(PROC) or just hardcord to i586
> instead. I am not training in programming, please correct me if I am
> wrong. This should be submited to asterisk so that they can fix the bug
> too.
>
> It will compile and work correctly.
>
you have a C3 processor (or eden) which misses a couple instructions
(CMOV and another one) to be a complete i686.
If you want better speed, you should switch to a nehemiah processor
which is a complete i686
More information about the asterisk-users
mailing list