[MacPorts] #67446: pika @0.16.0: clang: error: argument unused during compilation: '-nostdinc++'

MacPorts noreply at macports.org
Sat Aug 19 12:20:46 UTC 2023


#67446: pika @0.16.0: clang: error: argument unused during compilation:
'-nostdinc++'
---------------------------+----------------------
  Reporter:  barracuda156  |      Owner:  mascguy
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  pika          |
---------------------------+----------------------
Changes (by mascguy):

 * cc: ryandesign (added)


Comment:

 Replying to [comment:3 ryandesign]:
 > Looks like `-nostdinc++` is being added by the legacysupport 1.1
 portgroup when `legacysupport.use_mp_libcxx yes` is set. It puts the flag
 into CPPFLAGS, which would get passed to both C and C++ compilers, so I'm
 not sure if that's right. Chris, you
 [changeset:00df9e8ac7d2393e66553bcd99e68d954a771d48/macports-ports added
 the flag] to fix [ticket:63869 this issue] but in the issue description
 you suggested adding the flags to CXXFLAGS, not CPPFLAGS.

 If `CXXFLAGS` is the preferred way to do this, we can certainly change it.
 With the caveat that I'd want to test locally with the change - on an
 older macOS releases, to ensure `macports-libcxx` comes into play - for
 everything that currently depends on it.

 That being said, I'm always nervous about changing something like this,
 given that it doesn't cause issues for anything else. (At least, not that
 I'm currently aware of.)

 Thoughts...?

-- 
Ticket URL: <https://trac.macports.org/ticket/67446#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list