Package Details: python-ocp-git 7.5.3.0.2.g92eacb99-1

Git Clone URL: https://aur.archlinux.org/python-ocp-git.git (read-only, click to copy)
Package Base: python-ocp-git
Description: Python wrapper for OCCT generated using pywrap
Upstream URL: https://github.com/CadQuery/OCP
Licenses: Apache
Conflicts: python-ocp
Provides: python-ocp
Submitter: greyltc
Maintainer: greyltc
Last Packager: greyltc
Votes: 1
Popularity: 0.000000
First Submitted: 2021-01-10 18:15 (UTC)
Last Updated: 2022-04-15 05:27 (UTC)

Latest Comments

tujir commented on 2022-09-07 15:53 (UTC)

void value not ignored as it ought to be:

[75/628] Building CXX object CMakeFiles/OCP.dir/BRepPrimAPI.cpp.o
FAILED: CMakeFiles/OCP.dir/BRepPrimAPI.cpp.o 
/usr/bin/c++ -DOCP_EXPORTS -Dkiss_fft_scalar=double -I./OCP/OCP -I/usr/include/opencascade -isystem /usr/include/python3.10 -isystem /usr/include/vtk -Wno-deprecated-declarations -O3 -DNDEBUG -fPIC -fpermissive -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -std=gnu++17 -MD -MT CMakeFiles/OCP.dir/BRepPrimAPI.cpp.o -MF CMakeFiles/OCP.dir/BRepPrimAPI.cpp.o.d -o CMakeFiles/ OCP.dir/BRepPrimAPI.cpp.o -c ./OCP/OCP/BRepPrimAPI.cpp
In Datei, eingebunden von ./OCP/OCP/BRepPrimAPI.cpp:6:
./OCP/OCP/BRepPrimAPI.cpp: In Elementfunktion »virtual void* register_BRepPrimAPI(pybind11::module&)::Py_BRepPrimAPI_MakeOneAxis::OneAxis()«:
./OCP/OCP/BRepPrimAPI.cpp:94:47: Fehler: void-Wert nicht ignoriert wie es sein sollte
94 |         Standard_Address OneAxis() override { PYBIND11_OVERLOAD_PURE(Standard_Address,BRepPrimAPI_MakeOneAxis,OneAxis,) };
    |                                               ^~~~~~~~~~~~~~~~~~~~~~
[76/628] Building CXX object CMakeFiles/OCP.dir/BRepPrimAPI_pre.cpp.o
FAILED: CMakeFiles/OCP.dir/BRepPrimAPI_pre.cpp.o 
/usr/bin/c++ -DOCP_EXPORTS -Dkiss_fft_scalar=double -I./OCP/OCP -I/usr/include/opencascade -isystem /usr/include/python3.10 -isystem /usr/include/vtk -Wno-deprecated-declarations -O3 -DNDEBUG -fPIC -fpermissive -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -std=gnu++17 -MD -MT CMakeFiles/OCP.dir/BRepPrimAPI_pre.cpp.o -MF CMakeFiles/OCP.dir/BRepPrimAPI_pre.cpp.o.d -o     CMakeFiles/OCP.dir/BRepPrimAPI_pre.cpp.o -c ./OCP/OCP/BRepPrimAPI_pre.cpp
In Datei, eingebunden von ./OCP/OCP/BRepPrimAPI_pre.cpp:3:
./OCP/OCP/BRepPrimAPI_pre.cpp: In Elementfunktion »virtual void* register_BRepPrimAPI_enums(pybind11::module&)::Py_BRepPrimAPI_MakeOneAxis::OneAxis()«:
./OCP/OCP/BRepPrimAPI_pre.cpp:96:47: Fehler: void-Wert nicht ignoriert wie es sein sollte
96 |         Standard_Address OneAxis() override { PYBIND11_OVERLOAD_PURE(Standard_Address,BRepPrimAPI_MakeOneAxis,OneAxis,) };
    |                                               ^~~~~~~~~~~~~~~~~~~~~~
[80/628] Building CXX object CMakeFiles/OCP.dir/BRepOffsetAPI.cpp.o
ninja: build stopped: subcommand failed.
==> FEHLER: Ein Fehler geschah in build().

dack commented on 2022-02-14 18:32 (UTC)

Same issue as @amstan. I believe the root cause is that on Jan 25 upstream switch from opencascade 7.5.3 to opencascade 7.6. However, opencascade-cadquery in the AUR is still on 7.5.3.

amstan commented on 2022-02-08 20:09 (UTC) (edited on 2022-02-08 20:10 (UTC) by amstan)

FAILED: CMakeFiles/OCP.dir/BRepTools.cpp.o 
/usr/bin/c++ -DOCP_EXPORTS -Dkiss_fft_scalar=double -I/home/alex/.cache/pikaur/build/python-ocp-git/src/OCP/OCP -I/opt/opencascade-cadquery/usr/include/opencascade -isystem /usr/include/python3.10 -isystem /usr/include/vtk -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -fpermissive -fvisibility=hidden -fvisibility-inlines-hidden -pthread -fopenmp -std=gnu++17 -MD -MT CMakeFiles/OCP.dir/BRepTools.cpp.o -MF CMakeFiles/OCP.dir/BRepTools.cpp.o.d -o CMakeFiles/OCP.dir/BRepTools.cpp.o -c /home/alex/.cache/pikaur/build/python-ocp-git/src/OCP/OCP/BRepTools.cpp
/home/alex/.cache/pikaur/build/python-ocp-git/src/OCP/OCP/BRepTools.cpp:149:10: fatal error: OSD_FileSystem.hxx: No such file or directory
  149 | #include <OSD_FileSystem.hxx>
      |          ^~~~~~~~~~~~~~~~~~~~

dack commented on 2021-12-15 01:54 (UTC)

I found that when building the latest release today the "generating bindings" step was using excessive memory (32+ GB) and triggering the OOM killer. It seems that it was running too many threads (maybe 1 for each CPU core?). I found that you can limit the threads by adding something like "-n2" to the "python -m bindgen" command. Can this be added to the PKGBUILD, similar to how it already is for the "Building OCP" cmake command? Maybe move the "_n_parallel_build_jobs" variable to the top and use if for all commands, rather than just cmake?