[MacPorts] #60449: gcc10 missing header <wchar.h>

MacPorts noreply at macports.org
Thu May 7 23:39:16 UTC 2020


#60449: gcc10 missing header <wchar.h>
-----------------------+----------------------
  Reporter:  haberg-1  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.2
Resolution:            |   Keywords:  catalina
      Port:  gcc10     |
-----------------------+----------------------
Description changed by ryandesign:

Old description:

> When installing gcc10 and compiling externally with
> /opt/local/bin/g++-mp-10 the error below appears, possibly because system
> headers that GCC relies on, have on MacOS 10.5 been moved away from
> /usr/include/.
>
> In file included from /opt/local/include/gcc10/c++/bits/postypes.h:40,
>                  from /opt/local/include/gcc10/c++/iosfwd:40,
>                  from /opt/local/include/gcc10/c++/ios:38,
>                  from /opt/local/include/gcc10/c++/ostream:38,
>                  from /opt/local/include/gcc10/c++/iostream:39,
>                  from c++version.cc:2:
> /opt/local/include/gcc10/c++/cwchar:44:10: fatal error: wchar.h: No such
> file or directory
>    44 | #include <wchar.h>
>       |          ^~~~~~~~~
> compilation terminated.

New description:

 When installing gcc10 and compiling externally with
 /opt/local/bin/g++-mp-10 the error below appears, possibly because system
 headers that GCC relies on, have on MacOS 10.5 been moved away from
 /usr/include/.

 {{{
 In file included from /opt/local/include/gcc10/c++/bits/postypes.h:40,
                  from /opt/local/include/gcc10/c++/iosfwd:40,
                  from /opt/local/include/gcc10/c++/ios:38,
                  from /opt/local/include/gcc10/c++/ostream:38,
                  from /opt/local/include/gcc10/c++/iostream:39,
                  from c++version.cc:2:
 /opt/local/include/gcc10/c++/cwchar:44:10: fatal error: wchar.h: No such
 file or directory
    44 | #include <wchar.h>
       |          ^~~~~~~~~
 compilation terminated.
 }}}

--

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


More information about the macports-tickets mailing list