Skip to content

conda build SWIG warnings

@karl-wette in a conda build (gcc 7.3.0, swig 3.0.12, python 3.8.1) I'm getting the following warnings during compilation:

make[5]: Entering directory '/home/dkeitel/git/lvc/lalsuite/imrphenomxphm-conda/lalframe/swig'
  CC       swiglal_python_la-SWIGTest.lo
  GEN      swiglalframe.i
  GEN      swiglal_python.c
  CC       swiglal_python_la-swiglal_python.lo
swiglal_python.c: In function 'SwigPyStaticVar_dealloc':
swiglal_python.c:3117:3: warning: implicit declaration of function '_PyObject_GC_UNTRACK'; did you mean '_PyObject_GC_IS_TRACKED'? [-Wimplicit-function-declaration]
   _PyObject_GC_UNTRACK(descr);
   ^~~~~~~~~~~~~~~~~~~~
   _PyObject_GC_IS_TRACKED
  CCLD     swiglal_python.la
[...]
make[5]: Entering directory '/home/dkeitel/git/lvc/lalsuite/imrphenomxphm-conda/lalmetaio/swig'
  CC       swiglal_python_la-SWIGTest.lo
  GEN      swiglalmetaio.i
  GEN      swiglal_python.c
  CC       swiglal_python_la-swiglal_python.lo
swiglal_python.c: In function 'SwigPyStaticVar_dealloc':
swiglal_python.c:3117:3: warning: implicit declaration of function '_PyObject_GC_UNTRACK'; did you mean '_PyObject_GC_IS_TRACKED'? [-Wimplicit-function-declaration]
   _PyObject_GC_UNTRACK(descr);
   ^~~~~~~~~~~~~~~~~~~~
   _PyObject_GC_IS_TRACKED
  CCLD     swiglal_python.la

The build succeeds and python tests work, so it doesn't seem to have negative repercussions, but just posting it here in case you can and want to fix these.

cc @duncanmmacleod