[MacPorts] #71102: ixion-0.18 @0.18.1: error: no template named 'variant' in namespace 'std' (was: Cannot compile ixion-0.18)

MacPorts noreply at macports.org
Tue Oct 15 21:10:32 UTC 2024


#71102: ixion-0.18 @0.18.1: error: no template named 'variant' in namespace 'std'
--------------------------+----------------------
  Reporter:  graywolf-s1  |      Owner:  Tatsh
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.10.2
Resolution:               |   Keywords:
      Port:  ixion-0.18   |
--------------------------+----------------------

Comment (by ryandesign):

 `std::variant` seems to require C++17. The build seems to be requesting
 C++11 mode, so naturally this will fail:

 {{{
 :info:build libtool: compile:  /usr/bin/clang++ -std=gnu++11 -std=c++17
 -std=gnu++11 -DHAVE_CONFIG_H -I. -I../.. -I../../include
 -I../../src/include -DIXION_BUILD -I/opt/local/include/mdds-2.1
 -I/opt/local/libexec/boost/1.76/include
 -I/opt/local/libexec/boost/1.76/include -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -pipe
 -I/opt/local/libexec/boost/1.76/include -Os -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
 -fvisibility=hidden -Wall -Wshadow -Wno-write-strings -pthread
 -DSIZEOF_VOID_P=8 -O2 -DIXION_THREADS=1 -MT cell_access.lo -MD -MP -MF
 .deps/cell_access.Tpo -c cell_access.cpp  -fno-common -DPIC -o
 .libs/cell_access.o
 }}}

 Essentially the same problem was reported for ixion-0.17 in #70373.

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


More information about the macports-tickets mailing list