[MacPorts] #67353: QuantLib fails to build in Rosetta: error: '__and_' was not declared in this scope; did you mean 'std::__and_'?

MacPorts noreply at macports.org
Tue May 2 09:34:07 UTC 2023


#67353: QuantLib fails to build in Rosetta: error: '__and_' was not declared in
this scope; did you mean 'std::__and_'?
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  ryandesign
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:  powerpc, snowleopard, rosetta
      Port:  QuantLib      |
---------------------------+-------------------------------------------

Comment (by ryandesign):

 QuantLib builds fine using clang on normal 10.6 and later systems so this
 must be specific to your system where you're building using gcc 12.

 I found the same error message in
 [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105707 this gcc bug report]
 which was closed as invalid. There, the problem was that the user was
 including a header within a `namespace` directive, which is apparently not
 permitted. You could check whether any of the boost or QuantLib files
 mentioned do something like that.

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


More information about the macports-tickets mailing list