Skip to content

Commit

Permalink
Adding debugging page
Browse files Browse the repository at this point in the history
  • Loading branch information
FDelporte committed Oct 31, 2024
1 parent e1c319d commit 72cb73f
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions content/debugging-failures/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,9 @@ When the error `GLIBC_2.33 not found` is shown in the startup log, you need to u

```
[main] ERROR com.pi4j.library.gpiod.util.NativeLibraryLoader - Unable to load [libgpiod.so] using path: [/lib/aarch64/pi4j-gpiod/libgpiod.so]
java.lang.UnsatisfiedLinkError: /tmp/libgpiod14998985341386605622.so: /lib/aarch64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /tmp/libgpiod14998985341386605622.so) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394) at java.base/java.lang.Runtime.load0(Runtime.java:755) at java.base/java.lang.System.load(System.java:1970) at com.pi4j.library.gpiod@2.7.0/com.pi4j.library.gpiod.util.NativeLibraryLoader.loadLibraryFromClasspath(NativeLibraryLoader.java:261) at com.pi4j.library.gpiod@2.7.0/com.pi4j.library.gpiod.util.NativeLibraryLoader.load(NativeLibraryLoader.java:179) at com.pi4j.library.gpiod@2.7.0/com.pi4j.library.gpiod.internal.GpioD.<clinit>(GpioD.java:20) at com.pi4j.library.gpiod@2.7.0/com.pi4j.library.gpiod.internal.GpioDContext.initialize(GpioDContext.java:47) at com.pi4j.plugin.gpiod@2.7.0/com.pi4j.plugin.gpiod.provider.gpio.digital.GpioDDigitalOutputProviderImpl.initialize(GpioDDigitalOutputProviderImpl.java:78) at com.pi4j.plugin.gpiod@2.7.0/com.pi4j.plugin.gpiod.provider.gpio.digital.GpioDDigitalOutputProviderImpl.initialize(GpioDDigitalOutputProviderImpl.java:47) at com.pi4j@2.7.0/com.pi4j.provider.impl.DefaultRuntimeProviders.initializeProvider(DefaultRuntimeProviders.java:276) at com.pi4j@2.7.0/com.pi4j.provider.impl.DefaultRuntimeProviders.add(DefaultRuntimeProviders.java:252) at com.pi4j@2.7.0/com.pi4j.provider.impl.DefaultRuntimeProviders.add(DefaultRuntimeProviders.java:232) at com.pi4j@2.7.0/com.pi4j.provider.impl.DefaultRuntimeProviders.initialize(DefaultRuntimeProviders.java:357) at com.pi4j@2.7.0/com.pi4j.runtime.impl.DefaultRuntime.initialize(DefaultRuntime.java:318) at com.pi4j@2.7.0/com.pi4j.context.impl.DefaultContext.<init>(DefaultContext.java:113) at com.pi4j@2.7.0/com.pi4j.context.impl.DefaultContext.newInstance(DefaultContext.java:76) at com.pi4j@2.7.0/com.pi4j.context.impl.DefaultContextBuilder.build(DefaultContextBuilder.java:309) at com.pi4j@2.7.0/com.pi4j.context.impl.DefaultContextBuilder.build(DefaultContextBuilder.java:49) at com.pi4j@2.7.0/com.pi4j.Pi4J.newAutoContext(Pi4J.java:70) at com.pi4j.example@0.0.1/com.pi4j.example.MinimalExample.main(MinimalExample.java:91) Exception in thread "main" java.lang.UnsatisfiedLinkError: Pi4J was unable to extract and load the native library [/lib/aarch64/pi4j-gpiod/libgpiod.so] from the embedded resources inside this JAR [/home/pi/maven/pi4j-example-minimal/target/distribution/./pi4j-library-gpiod-2.7.0.jar]. to a temporary location on this system. You can alternatively define the 'pi4j.library.path' system property to override this behavior and specify the library path. UNDERLYING EXCEPTION: [java.lang.UnsatisfiedLinkError]=/tmp/libgpiod14998985341386605622.so: /lib/aarch64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /tmp/libgpiod14998985341386605622.so)
at com.pi4j.library.gpiod@2.7.0/com.pi4j.library.gpiod.util.NativeLibraryLoader.load(NativeLibraryLoader.java:200)
at com.pi4j.library.gpiod@2.7.0/com.pi4j.library.gpiod.internal.GpioD.(GpioD.java:20)
at com.pi4j.library.gpiod@2.7.0/com.pi4j.library.gpiod.internal.GpioDContext.initialize(GpioDContext.java:47)
at com.pi4j.plugin.gpiod@2.7.0/com.pi4j.plugin.gpiod.provider.gpio.digital.GpioDDigitalOutputProviderImpl.initialize(GpioDDigitalOutputProviderImpl.java:78)
at com.pi4j.plugin.gpiod@2.7.0/com.pi4j.plugin.gpiod.provider.gpio.digital.GpioDDigitalOutputProviderImpl.initialize(GpioDDigitalOutputProviderImpl.java:47)
at com.pi4j@2.7.0/com.pi4j.provider.impl.DefaultRuntimeProviders.initializeProvider(DefaultRuntimeProviders.java:276)
at com.pi4j@2.7.0/com.pi4j.provider.impl.DefaultRuntimeProviders.add(DefaultRuntimeProviders.java:252)
at com.pi4j@2.7.0/com.pi4j.provider.impl.DefaultRuntimeProviders.add(DefaultRuntimeProviders.java:232)
at com.pi4j@2.7.0/com.pi4j.provider.impl.DefaultRuntimeProviders.initialize(DefaultRuntimeProviders.java:357)
at com.pi4j@2.7.0/com.pi4j.runtime.impl.DefaultRuntime.initialize(DefaultRuntime.java:318)
at com.pi4j@2.7.0/com.pi4j.context.impl.DefaultContext.(DefaultContext.java:113)
at com.pi4j@2.7.0/com.pi4j.context.impl.DefaultContext.newInstance(DefaultContext.java:76)
at com.pi4j@2.7.0/com.pi4j.context.impl.DefaultContextBuilder.build(DefaultContextBuilder.java:309)
at com.pi4j@2.7.0/com.pi4j.context.impl.DefaultContextBuilder.build(DefaultContextBuilder.java:49)
at com.pi4j@2.7.0/com.pi4j.Pi4J.newAutoContext(Pi4J.java:70)
at com.pi4j.example@0.0.1/com.pi4j.example.MinimalExample.main(MinimalExample.java:91)
java.lang.UnsatisfiedLinkError: /tmp/libgpiod14998985341386605622.so: /lib/aarch64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /tmp/libgpiod14998985341386605622.so) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.
...
Exception in thread "main" java.lang.UnsatisfiedLinkError: Pi4J was unable to extract and load the native library [/lib/aarch64/pi4j-gpiod/libgpiod.so] from the embedded resources inside this JAR [/home/pi/maven/pi4j-example-minimal/target/distribution/./pi4j-library-gpiod-2.7.0.jar]. to a temporary location on this system. You can alternatively define the 'pi4j.library.path' system property to override this behavior and specify the library path.
```

## Unexpected Results on Electronic Components
Expand Down

0 comments on commit 72cb73f

Please sign in to comment.