[Home]

Summary:ASTERISK-11049: Compile-Error the the Mashine sparc (tested) or hppa (also tested) - debian
Reporter:Thomas Mebes (thomasmebes)Labels:
Date Opened:2007-12-15 09:30:02.000-0600Date Closed:2008-01-11 12:23:43.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Codecs/codec_gsm
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20071217_11563.diff
Description:if i try compile (to build) asterisk on a sparc or hppa (debian) then i have a compile error:

cc1: error: unrecognized command line option "-march=hppa2.0"
cc1: error: unrecognized command line option "-march=hppa2.0"
make[2]: *** [src/add.o] Error 1
make[1]: *** [gsm/lib/libgsm.a] Error 2
make: *** [codecs] Error 2

My solution was:
File: codecs/gsm/Makefile
Line: 43
Add: #  before  OPTIMIZE+=-march=$(PROC)
Result on Line 43: #OPTIMIZE+=-march=$(PROC)


now i can build my asterisk
Comments:By: Michiel van Baak (mvanbaak) 2007-12-17 14:12:44.000-0600

thomasmebes: can you try this patch and report if it fixes your problem?

By: Digium Subversion (svnbot) 2008-01-11 12:23:43.000-0600

Repository: asterisk
Revision: 98266

U   branches/1.4/codecs/gsm/Makefile

------------------------------------------------------------------------
r98266 | tilghman | 2008-01-11 12:23:42 -0600 (Fri, 11 Jan 2008) | 5 lines

Add another exception (which doesn't work) for -march optimization flag.
Reported by: thomasmebes
Patch by: tilghman
(Closes issue ASTERISK-11049)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=98266