Fedora Rawhide - swigpyrun.inl error

Having trouble installing or compiling FreeCAD? Get help here.
hobbes1069
Posts: 216
Joined: Wed Nov 09, 2011 3:49 pm

Fedora Rawhide - swigpyrun.inl error

Postby hobbes1069 » Sat Aug 31, 2019 2:31 pm

I'm working on moving FreeCAD to Qt5 / Pyside2 on Fedora and I ran into a new error I haven't seen before:

Code: Select all

d /builddir/build/BUILD/FreeCAD-0.18.3/build/src/Base && /usr/bin/c++  -DFreeCADBase_EXPORTS -DHAVE_CONFIG_H -DHAVE_SWIG=1 -DQT_CORE_LIB -DQT_NO_DEBUG -D_OCC64 -I/builddir/build/BUILD/FreeCAD-0.18.3/build -I/builddir/build/BUILD/FreeCAD-0.18.3/build/src -I/builddir/build/BUILD/FreeCAD-0.18.3/src -I/builddir/build/BUILD/FreeCAD-0.18.3/build/src/Base -I/builddir/build/BUILD/FreeCAD-0.18.3/src/Base -I/usr/include/python3.8 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++  -Wall -Wextra -Wno-write-strings -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-error=cast-function-type -std=c++11 -D_OCC64 -fPIC   -fPIC -std=gnu++11 -o CMakeFiles/FreeCADBase.dir/swigpyrun.cpp.o -c /builddir/build/BUILD/FreeCAD-0.18.3/src/Base/swigpyrun.cpp

...

BUILDSTDERR: In file included from /builddir/build/BUILD/FreeCAD-0.18.3/src/Base/swigpyrun.cpp:41:
BUILDSTDERR: /builddir/build/BUILD/FreeCAD-0.18.3/src/Base/swigpyrun.inl: In function 'void Swig_python::cleanupSWIG_T(const char*)':
BUILDSTDERR: /builddir/build/BUILD/FreeCAD-0.18.3/src/Base/swigpyrun.inl:75:31: error: invalid use of incomplete type 'PyInterpreterState' {aka 'struct _is'}
BUILDSTDERR:    75 |     PyObject *modules = interp->modules;
BUILDSTDERR:       |                               ^~
BUILDSTDERR: In file included from /usr/include/python3.8/genobject.h:11,
BUILDSTDERR:                  from /usr/include/python3.8/Python.h:121,
BUILDSTDERR:                  from /builddir/build/BUILD/FreeCAD-0.18.3/src/Base/PyExport.h:42,
BUILDSTDERR:                  from /builddir/build/BUILD/FreeCAD-0.18.3/src/Base/swigpyrun.cpp:25:
Thanks,
Richard
daviddavid
Posts: 4
Joined: Thu Mar 21, 2019 4:43 am

Re: Fedora Rawhide - swigpyrun.inl error

Postby daviddavid » Thu Sep 26, 2019 5:18 am

Hi,

We have the same issue here on Mageia Cauldron with Python 3.8b4!

Regards,
David
daviddavid
Posts: 4
Joined: Thu Mar 21, 2019 4:43 am

Re: Fedora Rawhide - swigpyrun.inl error

Postby daviddavid » Thu Sep 26, 2019 5:21 am

Here a potential fix: https://github.com/psycopg/psycopg2/issues/854

Also same issue for blender
hobbes1069
Posts: 216
Joined: Wed Nov 09, 2011 3:49 pm

Re: Fedora Rawhide - swigpyrun.inl error

Postby hobbes1069 » Thu Sep 26, 2019 12:09 pm

I'm trying this fix here:

https://bugs.python.org/msg353093

But waiting on new vtk build to hit Rawhide before I can try to build freecad again.

Thanks,
Richard