https://saxonica.plan.io/https://saxonica.plan.io/favicon.ico2022-06-13T15:31:46ZSaxonica Developer CommunitySaxonC - Bug #5559: Saxonc library failure on Macos M1 chipshttps://saxonica.plan.io/issues/5559?journal_id=209662022-06-13T15:31:46ZO'Neil Delprattoneil@saxonica.com
<ul><li><strong>Category</strong> changed from <i>Mac Os X</i> to <i>Documentation</i></li></ul><p>The Saxon/C library (i.e. libsaxonhec.dylib) is built using Excelsior Jet for a x86_64 MacOS machine. Users of SaxonC on these machines will encounter execution problems for the samples, command and Python/PHP extensions because they are building the executable for an arm64 machine.</p>
<p>The workaround is to run the build scripts with the <code>arch -x86_64</code> command as prefix. See example below for SaxonC commands:</p>
<pre><code>arch -x86_64 ./build64-mac.sh
</code></pre>
<p>When building the SaxonC python extension the following should work:</p>
<pre><code>arch -x86_64 python3 saxon-setup.py build_ext -if
</code></pre>
<p>Unfortunately python3 needs to be run as x86_64:</p>
<pre><code>arch -x86_64 python3 saxon_example3.py
</code></pre>
<p>It is unlikely that that this problem will be fixed on the SaxonC 11 branch. We will add a note in the documentation.</p> SaxonC - Bug #5559: Saxonc library failure on Macos M1 chipshttps://saxonica.plan.io/issues/5559?journal_id=225562023-01-17T01:48:09ZO'Neil Delprattoneil@saxonica.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Fixed in version</strong> set to <i>12.0</i></li></ul><p>Bug issue fixed in SaxonC 12.0 as we have now moved to using Graalvm native-image.</p>