Open hobbes1069 opened 2 years ago
This should be reported to the upstream SALOME project. It may even be fixed already, upstream is at 9.8.0.
Two solutions:
std::vector<bool>::swap( isSingleNode[0], isSingleNode[1] );
I added a using std::swap
and changed it to just swap
and that fixed it for now.
@hobbes1069 is this still relevant or can it be closed?
9.8.0.2 still exhibits the same problem for me.
My workaround for now is:
Index: smesh-9.7.0.1/src/SMESH/src/SMESH/SMESH_MeshEditor.cxx
===================================================================
--- smesh-9.7.0.1.orig/src/SMESH/src/SMESH/SMESH_MeshEditor.cxx
+++ smesh-9.7.0.1/src/SMESH/src/SMESH/SMESH_MeshEditor.cxx
@@ -4304,10 +4304,11 @@ void SMESH_MeshEditor::sweepElement(cons
bool sameOrder = ( Abs( i2 - i1 ) == 1 ) ? ( i2 > i1 ) : ( i2 < i1 );
if ( sameOrder )
{
- std::swap( itNN[0], itNN[1] );
+ std::swap( itNN[0], itNN[1] );
std::swap( prevNod[0], prevNod[1] );
std::swap( nextNod[0], nextNod[1] );
- std::swap( isSingleNode[0], isSingleNode[1] );
+ using std::swap;
+ swap( isSingleNode[0], isSingleNode[1] );
if ( nbSame > 0 )
sames[0] = 1 - sames[0];
iNotSameNode = 1 - iNotSameNode;
While a local build succeeded the official build failed with a new error on Fedora Rawhide:
/builddir/build/BUILD/smesh-9.8.0.2/src/Netgen/libsrc/core/table.hpp: At global scope:
/builddir/build/BUILD/smesh-9.8.0.2/src/Netgen/libsrc/core/table.hpp:104:26: error: redefinition of 'size_t* ngcore::TablePrefixSum(FlatArray<unsigned int, unsigned int>)'
104 | NETGEN_INLINE size_t * TablePrefixSum (FlatArray<size_t> entrysize)
| ^~~~~~~~~~~~~~
Fedora Rawhide has updated to gcc 12 and several packages are failing to build including SMESH which has the following error: