On Aug 6, 2022, at 12:09, Mark Brethen wrote:

> Here’s the log file when using build.args instead of build.env and compiling 
> with Apple’s clang. Different failure this time.

You're getting warning about C++11 features:


/opt/local/include/opencascade/Standard_Handle.hxx:75:19: warning: rvalue 
references are a C++11 extension [-Wc++11-extensions]
    handle (handle&& theHandle) : entity(theHandle.entity)
                  ^
/opt/local/include/opencascade/Standard_Handle.hxx:118:30: warning: rvalue 
references are a C++11 extension [-Wc++11-extensions]
    handle& operator= (handle&& theHandle)
                             ^
/opt/local/include/opencascade/Standard_Handle.hxx:221:5: warning: explicit 
conversion functions are a C++11 extension [-Wc++11-extensions]
    explicit operator bool () const
    ^~~~~~~~
/opt/local/include/opencascade/Standard_Handle.hxx:281:34: warning: default 
template arguments for a function template are a C++11 extension 
[-Wc++11-extensions]
    template <class T2, typename = typename 
std::enable_if<is_base_but_not_same<T2, T>::value>::type>
                                 ^ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/opencascade/Standard_Handle.hxx:289:34: warning: default 
template arguments for a function template are a C++11 extension 
[-Wc++11-extensions]
    template <class T2, typename = typename 
std::enable_if<is_base_but_not_same<T2, T>::value>::type>
                                 ^ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


So:


* You're evidently using opencascade
* opencascade evidently requires C++11 mode or later
* You're evidently not using C++11 mode or later


To fix it add these lines:


# opencascade requires C++11 or later
compiler.cxx_standard 2011
configure.cxxflags-append -std=c++11


And you're getting these errors:


/opt/local/include/opencascade/BRepLib_MakeWire.hxx:176:81: error: a space is 
required between consecutive right angle brackets (use '> >')
                                 
NCollection_List<NCollection_List<TopoDS_Vertex>>& theGrVL);
                                                                                
^~
                                                                                
> >
/opt/local/include/opencascade/BRepLib_MakeWire.hxx:178:79: error: a space is 
required between consecutive right angle brackets (use '> >')
  void CreateNewVertices(const 
NCollection_List<NCollection_List<TopoDS_Vertex>>& theGrVL, 
                                                                              ^~
                                                                              > 
>


If these problems persist after you're using C++11 mode, I guess the files 
mentioned will have to be changed in the ways indicated (in the opencascade 
port).

Reply via email to