assertion error in Swig_smartptr_upcast on MacOS only (swig 4.2.0)
<[email protected]> Tue, 9 Jan 2024 09:05:14 -0000
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <[email protected]> |
This is a multipart message in MIME format.
--===============9215621303711569130==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_00A3_01DA42DA.F5C5DDE0"
Content-Language: en-gb
This is a multipart message in MIME format.
------=_NextPart_000_00A3_01DA42DA.F5C5DDE0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi
I'm trying to update our conda-forge feedstock to the latest version of our
STIR software. However, all MacOS builds fail when calling swig to generate
the Python wrapper:
Assertion failed: (replace_count), function Swig_smartptr_upcast, file
Modules/utils.cxx, line 177.
However, Linux and Windows builds work fine. All of them use conda-forge
builds of swig 4.2.0
Anyone any suggestions where this could come from?
Kris
PS: STIR is rather large, and I don't have access to a Mac to try to cut
down where this happens.
PS: The full command line to call swig (and some more info) is on set to
current master after merge of TOF (so 6.0.0 pre-release) by KrisThielemans
<https://github.com/conda-forge/stir-feedstock/pull/105> . Pull Request #105
. conda-forge/stir-feedstock (github.com), but is essentially
swig4.0 -python -outdir . -c++ -builtin -interface _stir -o
stirPYTHON_wrap.cxx stir.i
(It turns out that at least on Linux, swig4.0 is linked to swig. The name
swig4.0 is rather confusing for swig 4.2.0, but ok).
------=_NextPart_000_00A3_01DA42DA.F5C5DDE0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 15 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-ligatures:none;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-GB =
link=3D"#0563C1" vlink=3D"#954F72" style=3D'word-wrap:break-word'><div =
class=3DWordSection1><p class=3DMsoNormal>Hi<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>I’m =
trying to update our conda-forge feedstock to the latest version of our =
STIR software. However, all MacOS builds fail when calling swig to =
generate the Python wrapper:<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>Assertion =
failed: (replace_count), function Swig_smartptr_upcast, file =
Modules/utils.cxx, line 177.<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>However, =
Linux and Windows builds work fine. All of them use conda-forge builds =
of swig 4.2.0<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>Anyone any suggestions where this could come =
from?<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>Kris<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>PS: STIR is =
rather large, and I don’t have access to a Mac to try to cut down =
where this happens.<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>PS: The full =
command line to call swig (and some more info) is on <a =
href=3D"https://github.com/conda-forge/stir-feedstock/pull/105">set to =
current master after merge of TOF (so 6.0.0 pre-release) by =
KrisThielemans · Pull Request #105 · =
conda-forge/stir-feedstock (github.com)</a>, but is =
essentially<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal style=3D'background:white'><span =
style=3D'font-size:9.0pt;font-family:Consolas;color:#1F2328;border:none =
windowtext 1.0pt;padding:0cm;mso-fareast-language:EN-GB'>swig4.0 -python =
-outdir . -c++ -builtin -interface _stir -o stirPYTHON_wrap.cxx =
stir.i<o:p></o:p></span></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>(It turns out that at least on Linux, swig4.0 is =
linked to swig. The name swig4.0 is rather confusing for swig 4.2.0, but =
ok).<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p></div></body></html>
------=_NextPart_000_00A3_01DA42DA.F5C5DDE0--
--===============9215621303711569130==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============9215621303711569130==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user
--===============9215621303711569130==--