<div dir="ltr"><div><div><div>Thanks Arnout,</div></div></div><div><br></div><div>That set me on the right path. Disutils was using the wrong compiler for building shared objects, while the right compiler was being used elsewhere. Setting the below LDSHARED variable solved the problem:</div><div><br></div><div> LDSHARED="$(TARGET_CC) -pthread -shared" <br></div><div><br></div><div><br></div><div>Regards,</div><div><br></div><div>--</div><div>Paul</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 September 2017 at 00:07, Arnout Vandecappelle <span dir="ltr"><<a href="mailto:arnout@mind.be" target="_blank">arnout@mind.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 08-09-17 16:18, Paul Gildea wrote:<br>
> /media/vmpart/5.1.0_x86/<wbr>buildroot/output/host/usr/bin/<wbr>ccache /usr/bin/gcc -pthread -fno-strict-aliasing -O2 -I/media/vmpart/5.1.0_x86/<wbr>buildroot/output/host/include -I/media/vmpart/5.1.0_x86/<wbr>buildroot/output/host/usr/<wbr>include -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/media/vmpart/5.1.0_x86/<wbr>buildroot/output/host/usr/<wbr>include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_<wbr>posixsubprocess.o<br>
<br>
</span> You're using the host compiler to build a target package. You need to pass<br>
CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" to setup.py in the build step.<br>
<br>
 Regards,<br>
 Arnout<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Arnout Vandecappelle                          arnout at mind be<br>
Senior Embedded Software Architect            <a href="tel:%2B32-16-286500" value="+3216286500">+32-16-286500</a><br>
Essensium/Mind                                <a href="http://www.mind.be" rel="noreferrer" target="_blank">http://www.mind.be</a><br>
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven<br>
LinkedIn profile: <a href="http://www.linkedin.com/in/arnoutvandecappelle" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>arnoutvandecappelle</a><br>
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF<br>
</font></span></blockquote></div><br></div>