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

MacPorts noreply at macports.org
Wed Jun 21 00:12:26 UTC 2023


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

 * cc: mascguy (added)


Comment:

 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.

 pika seems to be passing it to `mpicxx-mpich-mp` which sure sounds like a
 C++ compiler so you'd think that would be fine. You could try removing
 `-Werror` but if `-nostdinc++` is needed to accomplish something, and it's
 being ignored, then presumably the build will still fail but with a
 different error. Or maybe `mpicxx-mpich-mp` is really calling a C
 compiler, in which case it doesn't need that flag.

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


More information about the macports-tickets mailing list