Opened 15 years ago

Closed 14 years ago

#20973 closed defect (fixed)

asterisk: src/add.c:1: error: CPU you selected does not support x86-64 instruction set

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mr_bond@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: marc.blanchet@…, husam@…, stefan.van.der.eijk@…, nerdling (Jeremy Lavergne)
Port: asterisk

Description

On Snow Leopard, which defaults to building with -arch x86_64 on Intel Core 2 Duo processors, building asterisk 1.6.1.1 in parallel (or 1.6.1.5 in parallel or not) ends with:

src/add.c:1: error: CPU you selected does not support x86-64 instruction set

which is of course false.

Please see this thread on the mailing list.

Attachments (1)

asterisk.txt (48.3 KB) - added by stefan.van.der.eijk@… 15 years ago.
Asterisk 1.6.1.11 build log

Download all attachments as: .zip

Change History (10)

comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Husam Senussi said he was able to build asterisk 64-bit by setting --host=x86_64-darwin.

comment:2 Changed 15 years ago by stefan.van.der.eijk@…

Cc: stefan.van.der.eijk@… added

Cc Me!

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

Will check on this fix after fixing the checksums (#20967).

comment:4 Changed 15 years ago by nerdling (Jeremy Lavergne)

I had a compilation issue with muted.c where a constant was undefined. This might be a new issue since the stealth update. Can you confirm you have the same problem after doing this in 30 minutes:

sudo port clean --all asterisk
sudo port selfupdate
sudo port install asterisk

comment:5 in reply to:  4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to snc@…:

Can you confirm you have the same problem after doing this in 30 minutes:

Yes, the problem remains with your revised 1.6.1.1. As noted above, the problem remains with 1.6.1.5 as well.

comment:6 Changed 15 years ago by stefan.van.der.eijk@…

I've managed to build 1.6.1.8 on 10.6.1, with the following configure options:

configure.args --without-h323 --without-zaptel --host=x86_64-darwin

comment:7 in reply to:  6 ; Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

Replying to stefan.van.der.eijk@…:

I've managed to build 1.6.1.8 on 10.6.1, with the following configure options:

configure.args --without-h323 --without-zaptel --host=x86_64-darwin

Those flags produce a different error for me:

src/add.c:1: error: bad value (x86) for -march= switch
src/add.c:1: error: bad value (x86) for -mtune= switch

Changed 15 years ago by stefan.van.der.eijk@…

Attachment: asterisk.txt added

Asterisk 1.6.1.11 build log

comment:8 in reply to:  7 Changed 15 years ago by stefan.van.der.eijk@…

Replying to snc@…:

Replying to stefan.van.der.eijk@…:

I've managed to build 1.6.1.8 on 10.6.1, with the following configure options:

configure.args --without-h323 --without-zaptel --host=x86_64-darwin

Those flags produce a different error for me:

src/add.c:1: error: bad value (x86) for -march= switch
src/add.c:1: error: bad value (x86) for -mtune= switch

Interesting. This doesn't happen on my mac when building asterisk 1.6.1.11, see attachment: https://trac.macports.org/attachment/ticket/20973/asterisk.txt

comment:9 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Seems fine as of 1.6.2.10.

Note: See TracTickets for help on using tickets.