[MacPorts] #67307: glib2 compilation issues with clang

MacPorts noreply at macports.org
Fri Apr 28 09:49:36 UTC 2023


#67307: glib2 compilation issues with clang
-----------------------+----------------------
  Reporter:  rmottola  |      Owner:  mascguy
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  leopard
      Port:  glib2     |
-----------------------+----------------------

Comment (by rmottola):

 I tried adding


 {{{
 configure.cxxflags-append -std=c++11
 }}}

 and compiling with clang 6.0, but I still get:


 {{{
 /opt/local/bin/clang++-mp-6.0 -Iglib/tests/cxx.p -Iglib/tests
 -I../glib-2.72.4/glib/tests -I. -I../glib-2.72.4 -Iglib
 -I../glib-2.72.4/glib -I/opt/local/include -fcolor-diagnostics -O2 -g
 -Wimplicit-fallthrough -Wunused -Wno-unused-parameter -Wno-pedantic -Wno-
 format-zero-length -Wno-variadic-macros -Werror=format=2 -Werror=init-self
 -Werror=missing-include-dirs -Werror=pointer-arith -pipe -Os -std=c++11
 -stdlib=libstdc++ -arch x86_64 -MD -MQ glib/tests/cxx.p/cxx.cpp.o -MF
 glib/tests/cxx.p/cxx.cpp.o.d -o glib/tests/cxx.p/cxx.cpp.o -c
 ../glib-2.72.4/glib/tests/cxx.cpp
 In file included from ../glib-2.72.4/glib/tests/cxx.cpp:18:
 In file included from ../glib-2.72.4/glib/glib.h:32:
 In file included from ../glib-2.72.4/glib/gasyncqueue.h:32:
 In file included from ../glib-2.72.4/glib/gthread.h:32:
 In file included from ../glib-2.72.4/glib/gatomic.h:28:
 ../glib-2.72.4/glib/glib-typeof.h:39:10: fatal error: 'type_traits' file
 not found
 #include <type_traits>
          ^~~~~~~~~~~~~
 1 error generated.
 }}}

 we can see in the command line that the option was added.

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


More information about the macports-tickets mailing list