[MacPorts] #70386: glib2 @2.78.4_0+x11: ld: unknown option: -export_dynamic

MacPorts noreply at macports.org
Fri Aug 9 08:57:44 UTC 2024


#70386: glib2 @2.78.4_0+x11: ld: unknown option: -export_dynamic
-----------------------+-------------------------------
  Reporter:  nathanpc  |      Owner:  mascguy
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.9.3
Resolution:            |   Keywords:  leopard ppc64 ppc
      Port:  glib2     |
-----------------------+-------------------------------

Comment (by rmottola):

 An attempt to build with gcc12 fails because it wants libc++ 11 and  not
 03


 {{{
 FAILED: glib/tests/cxx-98.p/cxx.cpp.o
 /opt/local/bin/g++-mp-12 -Iglib/tests/cxx-98.p -Iglib/tests
 -I../glib-2.78.4/glib/tests -I. -I../glib-2.78.4 -Iglib
 -I../glib-2.78.4/glib -I/opt/local/include -fdiagnostics-color=always -O2
 -g -Wduplicated-branches -Wimplicit-fallthrough -Wmisleading-indentation
 -Wmissing-field-initializers -Wnonnull -Wunused -Wno-unused-parameter
 -Wno-cast-function-type -Wno-pedantic -Wno-format-zero-length -Wno-
 variadic-macros -Werror=format=2 -Werror=init-self -Werror=missing-
 include-dirs -Werror=pointer-arith -Werror=unused-result -pipe -Os
 -stdlib=libc++ -arch i386 '-DG_LOG_DOMAIN="GLib"' -UG_DISABLE_ASSERT
 -std=c++98 '-D_G_EXPECTED_CXX_STANDARD="98"' -MD -MQ
 glib/tests/cxx-98.p/cxx.cpp.o -MF glib/tests/cxx-98.p/cxx.cpp.o.d -o
 glib/tests/cxx-98.p/cxx.cpp.o -c ../glib-2.78.4/glib/tests/cxx.cpp
 In file included from
 /opt/local/libexec/gcc12/libc++/include/c++/v1/stddef.h:39,
                  from ../glib-2.78.4/glib/gmacros.h:40,
                  from glib/glibconfig.h:9,
                  from ../glib-2.78.4/glib/gtypes.h:34,
                  from ../glib-2.78.4/glib/galloca.h:34,
                  from ../glib-2.78.4/glib/glib.h:32,
                  from ../glib-2.78.4/glib/tests/cxx.cpp:20:
 /opt/local/libexec/gcc12/libc++/include/c++/v1/__config:232:2: error:
 #error "libc++ does not support using GCC with C++03. Please enable C++11"
   232 | #error "libc++ does not support using GCC with C++03. Please
 enable C++11"
       |  ^~~~~
 /opt/local/libexec/gcc12/libc++/include/c++/v1/__nullptr:56:13: error:
 'nullptr' was not declared in this scope
    56 |     typedef decltype(nullptr) nullptr_t;
       |             ^~~~~~~~
 /opt/local/libexec/gcc12/libc++/include/c++/v1/__nullptr:56:13: error:
 'nullptr' was not declared in this scope
 /opt/local/libexec/gcc12/libc++/include/c++/v1/stdlib.h:107:53: error:
 expected initializer before 'noexcept'
   107 | inline _LIBCPP_INLINE_VISIBILITY long abs(long __x) _NOEXCEPT {
       |                                                     ^~~~~~~~~
 /opt/local/libexec/gcc12/libc++/include/c++/v1/stdlib.h:111:63: error:
 expected initializer before 'noexcept'
   111 | inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x)
 _NOEXCEPT {
       |
 ^~~~~~~~~
 /opt/local/libexec/gcc12/libc++/include/c++/v1/stdlib.h:118:60: error:
 expected initializer before 'noexcept'

 }}}

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


More information about the macports-tickets mailing list