<div dir="ltr"><div>Hi Khem,</div><div><br></div><div>
GO_DYNLINK_x86-64 = &quot;&quot; solution works as well,</div><div><br></div><div>Best regards,</div><div>Vincent<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 28 févr. 2019 à 14:14, Khem Raj &lt;<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>&gt; a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Feb 28, 2019 at 1:35 AM Vincent Prince<br>
&lt;<a href="mailto:vincent.prince.fr@gmail.com" target="_blank">vincent.prince.fr@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Damien,<br>
&gt;<br>
&gt; With GO_LINKSHARED = &quot;&quot; it work fine.<br>
&gt;<br>
<br>
Please set<br>
GO_DYNLINK_x86-64 = &quot;1&quot;<br>
to<br>
GO_DYNLINK_x86-64 = &quot;&quot;<br>
in goarch.bbclass<br>
<br>
&gt; I&#39;m very new to Go, does it mean that there is a mixing issue in go modules from Yocto and from node_exporter vendor folder, so it links wrongly at runtime?<br>
&gt;<br>
&gt; Thanks for the quickfix,<br>
&gt; Vincent<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Le mer. 27 févr. 2019 à 23:22, Damien Riegel &lt;<a href="mailto:damien.riegel@gmail.com" target="_blank">damien.riegel@gmail.com</a>&gt; a écrit :<br>
&gt;&gt;<br>
&gt;&gt; On Wed, 27 Feb 2019 at 12:10, Vincent Prince<br>
&gt;&gt; &lt;<a href="mailto:vincent.prince.fr@gmail.com" target="_blank">vincent.prince.fr@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hello everyone,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I&#39;m trying to add node_exporter from Prometheus project to an Intel x86-64 machine.<br>
&gt;&gt; &gt; I made the following recipe:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="https://github.com/nefethael/meta-random/blob/master/recipes-connectivity/prometheus/go-nodeexporter_0.18.0.bb" rel="noreferrer" target="_blank">https://github.com/nefethael/meta-random/blob/master/recipes-connectivity/prometheus/go-nodeexporter_0.18.0.bb</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; node_exporter is crashing with multiple different runtime errors, so I raised an issue on github:<br>
&gt;&gt; &gt; <a href="https://github.com/prometheus/node_exporter/issues/1244" rel="noreferrer" target="_blank">https://github.com/prometheus/node_exporter/issues/1244</a><br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve faced the same kind of issue with a custom application of ours.<br>
&gt;&gt; The fix was to add the following line to the recipe:<br>
&gt;&gt; GO_LINKSHARED = &quot;&quot;<br>
&gt;&gt;<br>
&gt;&gt; Let me know if that helps.<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Damien<br>
</blockquote></div>