Opened 11 years ago

Last modified 11 years ago

#37402 new defect

phantomjs: cc1plus: error: unrecognized command line option "-mavx"

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: snowleopard Cc:
Port: phantomjs

Description

While phantomjs 1.8.0 builds on the Lion and Mountain Lion buildbots, it fails to build on the Snow Leopard buildbot:

https://build.macports.org/builders/buildports-snowleopard-x86_64/builds/13259/steps/compile/logs/stdio

g++ -c -pipe -mavx -O2 -Wall -W  -I../../../mkspecs/macx-g++ -I. -o avx.o avx.cpp
cc1plus: error: unrecognized command line option "-mavx"

This was observed with 1.7.0 as well.

Change History (2)

comment:1 Changed 11 years ago by maenuleu@…

I successfully installed phantomjs by using mp-gcc45.

Select compiler:

sudo port select gcc mp-gcc45

and install:

sudo port install phantomjs

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

It's a bug that phantomjs takes your compiler selection into account; it should not; see #36747.

Note: See TracTickets for help on using tickets.