Open manuel-koch opened 23 hours ago
Oh, I was mislead by an envvar from the cibuildwheel
documentation.
I used envvar CIBW_BEFORE_ALL='uname -a'
.
That likely caused skipping the mandatory build steps for OpenCascade and hence the headers/libs are not available.
Not using CIBW_BEFORE_ALL='uname -a'
seems to fix my build issue partly.
Now the build ends with this error:
[2192/5539] Building CXX object src/TKDE/CMakeFiles/TKDE.dir/__/DE/DE_ShapeFixConfigurationNode.cxx.o
FAILED: src/TKDE/CMakeFiles/TKDE.dir/__/DE/DE_ShapeFixConfigurationNode.cxx.o
/opt/rh/devtoolset-10/root/usr/bin/c++ -DHAVE_RAPIDJSON -DOCC_CONVERT_SIGNALS -DTKDE_EXPORTS -I/project/upstream/OCCT/../rapidjson/include -I/project/upstream/OCCT/include/opencascade -fexceptions -fPIC -Wall -Wextra -O3 -DNDEBUG -s -DNo_Exception -std=gnu++11 -fPIC -MD -MT src/TKDE/CMakeFiles/TKDE.dir/__/DE/DE_ShapeFixConfigurationNode.cxx.o -MF src/TKDE/CMakeFiles/TKDE.dir/__/DE/DE_ShapeFixConfigurationNode.cxx.o.d -o src/TKDE/CMakeFiles/TKDE.dir/__/DE/DE_ShapeFixConfigurationNode.cxx.o -c /project/upstream/OCCT/src/DE/DE_ShapeFixConfigurationNode.cxx
In file included from /project/upstream/OCCT/include/opencascade/DE_ShapeFixParameters.hxx:1,
from /project/upstream/OCCT/src/DE/DE_ShapeFixConfigurationNode.hxx:18,
from /project/upstream/OCCT/include/opencascade/DE_ShapeFixConfigurationNode.hxx:1,
from /project/upstream/OCCT/src/DE/DE_ShapeFixConfigurationNode.cxx:14:
/project/upstream/OCCT/src/DE/DE_ShapeFixParameters.hxx:23:17: error: enumerator value ‘-1’ is outside the range of underlying type ‘char’
23 | FixOrNot = -1, //!< Procedure will be executed or not (depending on the situation)
| ^
Replacing the failing line in the OCCT sources seems to fix the build issue: ( not sure if that is the actually intend of the original line - is this a bunch of flags and FixOrNot is all of them set ? Why does the flag "NotFix" has value zero ? )
// replace
FixOrNot = -1, //!< Procedure will be executed or not (depending on the situation)
// by
FixOrNot = static_cast<uint_fast8_t>(-1), //!< Procedure will be executed or not (depending on the situation)
I'm trying to build
cascadio
for evaluation the functionality and how it could be extended for my purposes. Using the example description to runcibuildwheel
on MacOS ( arm64 ). Since native support/usability is limited forcibuildwheel
on MacOS, I'm trying to use a docker-in-docker run as suggested here and here.I'm using a locally build docker image ( tagged
cibuildwheel
) that includespipx
anddocker
. Clonedcascadio
repo locally ( main ) and updated its submodules, hence the full source tree should now be available in my local setup.Looks like the used header search paths in the compiler commands don't exist in the used OCCT sources:
The output of the
cibuildwheel
run is as follows: