[MacPorts] #69638: libSDL2pp does not build on 10.7–10.12: Undefined symbols for architecture x86_64: "std::bad_optional_access::~bad_optional_access()" etc.

MacPorts noreply at macports.org
Sun Mar 31 22:29:43 UTC 2024


#69638: libSDL2pp does not build on 10.7–10.12: Undefined symbols for architecture
x86_64: "std::bad_optional_access::~bad_optional_access()" etc.
-------------------------------------------------+-------------------------
 Reporter:  barracuda156                         |      Owner:
                                                 |  barracuda156
     Type:  defect                               |     Status:  assigned
 Priority:  Normal                               |  Milestone:
Component:  ports                                |    Version:  2.9.1
 Keywords:  sierra, elcapitan, yosemite,         |       Port:  libSDL2pp
  mavericks, mountainlion, lion                  |
-------------------------------------------------+-------------------------
 {{{
 [ 83%] Building CXX object tests/CMakeFiles/test_rwops.dir/test_rwops.cc.o
 cd
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_libSDL2pp/libSDL2pp/work/build/tests
 && /opt/local/bin/clang++-mp-16
 -DTESTDATA_DIR=\"/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_libSDL2pp/libSDL2pp/work/libSDL2pp-0.18.1/testdata\"
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_libSDL2pp/libSDL2pp/work/libSDL2pp-0.18.1
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_libSDL2pp/libSDL2pp/work/build
 -isystem /opt/local/include/SDL2 -pipe -Os -DNDEBUG -I/opt/local/include
 -stdlib=libc++  -std=c++17 -arch x86_64 -mmacosx-version-min=10.12 -MD -MT
 tests/CMakeFiles/test_rwops.dir/test_rwops.cc.o -MF
 CMakeFiles/test_rwops.dir/test_rwops.cc.o.d -o
 CMakeFiles/test_rwops.dir/test_rwops.cc.o -c
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_libSDL2pp/libSDL2pp/work/libSDL2pp-0.18.1/tests/test_rwops.cc
 Undefined symbols for architecture x86_64:
   "std::bad_optional_access::~bad_optional_access()", referenced from:
       __ZNSt3__127__throw_bad_optional_accessB7v160006Ev in
 test_optional.cc.o
   "typeinfo for std::bad_optional_access", referenced from:
       __ZNSt3__127__throw_bad_optional_accessB7v160006Ev in
 test_optional.cc.o
       GCC_except_table34 in test_optional.cc.o
   "vtable for std::bad_optional_access", referenced from:
       __ZNSt3__127__throw_bad_optional_accessB7v160006Ev in
 test_optional.cc.o
   NOTE: a missing vtable usually means the first non-inline virtual member
 function has no definition.
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 }}}
 https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/266241/steps
 /install-port/logs/stdio

-- 
Ticket URL: <https://trac.macports.org/ticket/69638>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list