<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 221: Ubuntu Core Snap failing to build RPI GPIO</title><link>https://sourceforge.net/p/raspberry-gpio-python/tickets/221/</link><description>Recent changes to 221: Ubuntu Core Snap failing to build RPI GPIO</description><atom:link href="https://sourceforge.net/p/raspberry-gpio-python/tickets/221/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 27 Feb 2025 21:13:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/raspberry-gpio-python/tickets/221/feed.rss" rel="self" type="application/rss+xml"/><item><title>Ubuntu Core Snap failing to build RPI GPIO</title><link>https://sourceforge.net/p/raspberry-gpio-python/tickets/221/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am building Python 3.11 into an Ubuntu Core Snap(craft.yaml).  This for use within Greengrass (also part of same Snap).  Running on a Raspberry CM4. During pip install of RPi.GPIO==0.7.1 I get a failure from gcc linker:&lt;/p&gt;
&lt;p&gt;2025-02-27T16:24:49.551Z &lt;span&gt;[WARN]&lt;/span&gt; (Copier) com.thio.coredevice.thio_bp_lab: stderr. gcc -pthread -shared -L/root/parts/python/install/usr/lib -L/root/parts/python/install/usr/lib/aarch64-linux-gnu -L/root/parts/python/install/usr/lib -L/root/parts/python/install/usr/lib/aarch64-linux-gnu -DCONFIG64 -L/snap/aws-iot-greengrass-v2/x1 build/temp.linux-aarch64-cpython-311/source/cgpio.o build/temp.linux-aarch64-cpython-311/source/common.o build/temp.linux-aarch64-cpython-311/source/constants.o build/temp.linux-aarch64-cpython-311/source/cpuinfo.o build/temp.linux-aarch64-cpython-311/source/eventgpio.o build/temp.linux-aarch64-cpython-311/source/pygpio.o build/temp.linux-aarch64-cpython-311/source/pypwm.o build/temp.linux-aarch64-cpython-311/source/softpwm.o -o build/lib.linux-aarch64-cpython-311/RPi/GPIO.cpython-311-aarch64-linux-gnu.so. {scriptName=services.com.thio.coredevice.thiobplab.lifecycle.run.Script, serviceName=com.thio.coredevice.thiobplab, currentState=RUNNING}&lt;/p&gt;
&lt;h3 id="2025-02-27t162449551z-warn-copier-comthiocoredevicethiobplab-stderr-snapaws-iot-greengrass-v2x1usrbinld-cannot-find-usrlibaarch64-linux-gnulibcnonshareda-scriptnameservicescomthiocoredevicethiobplablifecyclerunscript-servicenamecomthiocoredevicethiobplab-currentstaterunning"&gt;&lt;em&gt;###### 2025-02-27T16:24:49.551Z &lt;span&gt;&lt;span&gt;[WARN]&lt;/span&gt;&lt;/span&gt; (Copier) com.thio.coredevice.thiobplab: stderr. /snap/aws-iot-greengrass-v2/x1/usr/bin/ld: cannot find /usr/lib/aarch64-linux-gnu/libcnonshared.a. {scriptName=services.com.thio.coredevice.thiobplab.lifecycle.run.Script, serviceName=com.thio.coredevice.thiobplab, currentState=RUNNING}&lt;/em&gt;&lt;/h3&gt;
&lt;p&gt;2025-02-27T16:24:49.551Z &lt;span&gt;[WARN]&lt;/span&gt; (Copier) com.thio.coredevice.thiobplab: stderr. collect2: error: ld returned 1 exit status. {scriptName=services.com.thio.coredevice.thiobplab.lifecycle.run.Script, serviceName=com.thio.coredevice.thiobplab, currentState=RUNNING}&lt;br/&gt;
2025-02-27T16:24:49.551Z &lt;span&gt;[WARN]&lt;/span&gt; (Copier) com.thio.coredevice.thiobplab: stderr. error: command '/snap/aws-iot-greengrass-v2/x1/usr/bin/gcc' failed with exit code 1. {scriptName=services.com.thio.coredevice.thio*&lt;/p&gt;
&lt;p&gt;The main error appears to be the linker cannot find the libc_nonshared.a.  I have found this library under /snap/aws-iot-greengrass-v2/x1/usr/lib in the snap -- however even though I added this under the -L option (using CFLAGS) I still get an error from ld cannot find /usr/lib/libc_nonshared.a&lt;/p&gt;
&lt;p&gt;Help?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Spies</dc:creator><pubDate>Thu, 27 Feb 2025 21:13:25 -0000</pubDate><guid>https://sourceforge.net6dcdbc347470005a6007db7e460822dd627435eb</guid></item></channel></rss>