[MacPorts] #36747: phantomjs @1.7.0_0 build error - g++ unrecognised option `-fconstant-cfstrings`
#36747: phantomjs @1.7.0_0 build error - g++ unrecognised option `-fconstant- cfstrings` ----------------------+-------------------------------- Reporter: daniel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: phantomjs ----------------------+-------------------------------- Building phantomjs @1.7.0_0 on my system fails with this error: {{{ :info:build g++: error: unrecognized command line option '-fconstant- cfstrings' }}} As root I see: {{{ sudo g++ --version g++ (MacPorts gcc47 4.7.2_2) 4.7.2 sudo type g++ g++ is /opt/local/bin/g++ }}} I have attached the full build log from the failure. -- Ticket URL: <https://trac.macports.org/ticket/36747> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36747: phantomjs @1.7.0_0 build error - g++ unrecognised option `-fconstant- cfstrings` ------------------------+------------------------------ Reporter: daniel@… | Owner: singingwolfboy@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: phantomjs | ------------------------+------------------------------ Changes (by ryandesign@…): * cc: singingwolfboy@… (removed) * owner: macports-tickets@… => singingwolfboy@… -- Ticket URL: <https://trac.macports.org/ticket/36747#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36747: phantomjs @1.7.0_0 build error - g++ unrecognised option `-fconstant- cfstrings` ------------------------+------------------------------ Reporter: daniel@… | Owner: singingwolfboy@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: phantomjs | ------------------------+------------------------------ Comment (by ryandesign@…): What you have attached is not a full log. Please "sudo port clean phantomjs", then try again, then attach the new log. It does at least show that phantomjs is not UsingTheRightCompiler. -- Ticket URL: <https://trac.macports.org/ticket/36747#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36747: phantomjs @1.7.0_0 build error - g++ unrecognised option `-fconstant- cfstrings` ------------------------+------------------------------ Reporter: daniel@… | Owner: singingwolfboy@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: phantomjs | ------------------------+------------------------------ Comment (by daniel@…): I have updated the log file to the result of `sudo port clean phantomjs` followed by an upgrade outdated. Sorry, I thought that was clean. Will note that for next time. :) -- Ticket URL: <https://trac.macports.org/ticket/36747#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36747: phantomjs @1.7.0_0 build error - g++ unrecognised option `-fconstant- cfstrings` ------------------------+------------------------------ Reporter: daniel@… | Owner: singingwolfboy@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: phantomjs | ------------------------+------------------------------ Comment (by jmr@…): Only Apple compilers accept -fconstant-cfstrings, so a workaround would be to deselect FSF gcc. -- Ticket URL: <https://trac.macports.org/ticket/36747#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36747: phantomjs @1.7.0_0 build error - g++ unrecognised option `-fconstant- cfstrings` ------------------------+------------------------------ Reporter: daniel@… | Owner: singingwolfboy@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: phantomjs | ------------------------+------------------------------ Changes (by ryandesign@…): * cc: luca@… (added) Comment: Has duplicate #38131. -- Ticket URL: <https://trac.macports.org/ticket/36747#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36747: phantomjs @1.7.0_0 build error - g++ unrecognised option `-fconstant- cfstrings` ------------------------+-------------------------------- Reporter: daniel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: phantomjs | ------------------------+-------------------------------- Changes (by jmr@…): * owner: singingwolfboy@… => macports-tickets@… Comment: -> nomaintainer -- Ticket URL: <https://trac.macports.org/ticket/36747#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36747: phantomjs @1.7.0_0 build error - g++ unrecognised option `-fconstant- cfstrings` ------------------------+-------------------------------- Reporter: daniel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: phantomjs | ------------------------+-------------------------------- Comment (by ryandesign@…): Replying to [comment:2 ryandesign@…]:
What you have attached is not a full log. Please "sudo port clean phantomjs", then try again, then attach the new log.
It does at least show that phantomjs is not UsingTheRightCompiler.
I have tried to fix this and it seems to be very complicated, thanks partly to the use of qmake, which seems to think it should be in control of what compiler is used. I've filed a bug report with the project asking them for help: http://code.google.com/p/phantomjs/issues/detail?id=1087 -- Ticket URL: <https://trac.macports.org/ticket/36747#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts