[MacPorts] #36747: phantomjs @1.7.0_0 build error - g++ unrecognised option `-fconstant-cfstrings`
MacPorts
noreply at macports.org
Wed Sep 25 05:23:26 UTC 2024
#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 cooljeanius):
Replying to [comment:12 cooljeanius]:
> Replying to [comment:11 barracuda156]:
> > Replying to [comment:4 jmroot]:
> > > Only Apple compilers accept -fconstant-cfstrings, so a workaround
would be to deselect FSF gcc.
> >
> > Documentation claims those are/were supported by [some] non-Apple
compilers.
> > https://releases.llvm.org/5.0.2/tools/clang/docs/genindex.html
> > https://gcc.gnu.org/onlinedocs/gcc-6.5.0/gcc/Objective-C-and-
Objective-C_002b_002b-Dialect-Options.html
> >
> > The flag is not accepted by gcc12 though.
>
> Tracked by GCC bug 108743:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743
>
> Currently there's been a patch committed for GCC trunk and the 13
branch, I'm guessing Iain is leaving it open for further backporting...
>
Update: the upstream GCC bug has now been closed as fixed, so all
currently-supported FSF versions of GCC now support the `-fconstant-
cfstrings` flag now, too.
--
Ticket URL: <https://trac.macports.org/ticket/36747#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list