#571977 pivy coin_wrap.cpp to large

Package:
pivy
Source:
pivy
Submitter:
Troy Benjegerdes
Date:
2014-07-24 19:06:05 UTC
Severity:
important
#571977#5
Date:
2010-02-28 17:43:45 UTC
From:
To:
Python-pivy does not build on (most) PowerPC machines because
coin_wrap.cpp is very very large. In a build with optimization, GCC segfaults
with an internal compiler error. Without optimization an assembly file is
generated, but appears to be too large.

This is also referenced at:

http://pivy.coin3d.org/download/snapshot/releases/daily/Pivy-latest.tar.gz

#571977#10
Date:
2014-07-23 14:53:48 UTC
From:
To:
Dear Maintainer,

Please consider including the attached patch for powerpc, which allows
the package to build successfully from the source.  As identified in the
original report the problem is the size of the wrapper code that is
generated by SWIG.  The limitation is imposed by the powerpc
architechture (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41644
and https://bugzilla.redhat.com/show_bug.cgi?id=427700 for some
background).

The problem is solved by splitting the interface file into four parts
(coin[0-3].i) and re-assembling the resulting modules in coin.py.  The
setup.py file is changed in order to compile each part individually.
The header files are divided between the four interface files in order
to keep the size of the individual wrapper files below 10Mb.

After building and installing the package the unit tests run
successfully:

$ cd tests
$ python coin_tests.py
...........................................................................................
----------------------------------------------------------------------
Ran 91 tests in 0.548s

OK

Best regards,

Paul.