Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Can't load library error

35 views
Skip to first unread message

Howard Lewis Ship

unread,
Nov 2, 2022, 12:26:05 PM11/2/22
to JBake Users
I've inherited a new project and am trying to build it with jbake.

OpenJDK 64-Bit Server VM Corretto-17.0.4.9.1 (build 17.0.4.1+9-LTS, mixed mode, sharing)

jbake v2.6.7

OSX 12.6, M1

On execution :

> jbake  -b
JBake v2.6.7 (2021-05-14 21:54:29[GMT+01:00]) [http://jbake.org]

09:20:59.619 INFO  org.jbake.app.Oven - Baking has started...
09:20:59.642 INFO  c.o.common.jna.ONative - Default limit of open files (512) will be used.
09:20:59.705 INFO  c.o.common.jna.ONative - 34359738368 B/32768 MB/32 GB of physical memory were detected on machine
09:20:59.705 INFO  c.o.common.jna.ONative - Detected memory limit for current process is 34359738368 B/32768 MB/32 GB
09:20:59.706 INFO  c.o.o.c.e.OMemoryAndLocalPaginatedEnginesInitializer - JVM can use maximum 8192MB of heap memory
09:20:59.706 INFO  c.o.o.c.e.OMemoryAndLocalPaginatedEnginesInitializer - Because OrientDB is running outside a container 12% of memory will be left unallocated according to the setting 'memory.leftToOS' not taking into account heap memory
09:20:59.706 INFO  com.orientechnologies - OrientDB auto-config DISKCACHE=20,643MB (heap=8,192MB os=32,768MB)
09:20:59.706 INFO  c.o.o.c.e.l.OEngineLocalPaginated - System is started under an effective user : `howard.lewisship`
09:20:59.706 INFO  c.o.o.c.e.l.OEngineLocalPaginated - Allocation of 313773 pages.
09:20:59.721 ERROR jbake - An unexpected error occurred: Can't load library: /var/folders/yg/vytvxpw500520vzjlc899dlm0000gn/T/jna-1278838233/jna8632858448320220075.tmp

I've looked at that directory, /var/folders/yg/vytvxpw500520vzjlc899dlm0000gn/T/jna-1278838233, and it's empty.

I suspect that there may be a dependency on Intel architecture here.

If you want to reproduce, the repo is public: https://github.com/pedestal/pedestal-docs

Thanks in advance for any help!

Howard Lewis Ship

unread,
Nov 2, 2022, 2:06:48 PM11/2/22
to JBake Users
Others on my team have tried this; it works on Intel Macs but not M1 macs.

Ralf D. Müller

unread,
Nov 2, 2022, 2:59:35 PM11/2/22
to JBake Users
Have you tried to run it from an emulated x86 shell?

arch -x86_64 /bin/bash

Howard Lewis Ship

unread,
Nov 2, 2022, 3:01:39 PM11/2/22
to Ralf D. Müller, JBake Users
Just tried this ... same result.  Thanks for the idea, though.

--
You received this message because you are subscribed to a topic in the Google Groups "JBake Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jbake-user/g1MQJh-JPCk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jbake-user+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jbake-user/76bfc0c5-1b38-4b98-9986-627d23e868d1n%40googlegroups.com.


Confidentiality note: This e-mail may contain confidential information from Nu Holdings Ltd and/or its affiliates. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone; for details about what personal information we collect and why, please refer to our privacy policy.

Ralf D. Müller

unread,
Nov 2, 2022, 3:03:41 PM11/2/22
to JBake Users
Hm. Maybe you habe to re-install java in the emulated shell, so that you get a x86 java binary...

Jonathan Bullock

unread,
Nov 2, 2022, 5:35:17 PM11/2/22
to Howard Lewis Ship, JBake Users
Hi Howard

JBake v2.6.7 uses OrientDB and the version bundled uses a version of JNA that doesn't support Apple Silicon.

Can you try v2.7.0-rc.6 instead which is available here: https://github.com/jbake-org/jbake/releases

Thanks
Jon


Confidentiality note: This e-mail may contain confidential information from Nu Holdings Ltd and/or its affiliates. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone; for details about what personal information we collect and why, please refer to our privacy policy.

--
You received this message because you are subscribed to the Google Groups "JBake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbake-user+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jbake-user/09e086b7-646b-4feb-a999-dfca0181383an%40googlegroups.com.

Howard Lewis Ship

unread,
Nov 4, 2022, 12:55:28 PM11/4/22
to JBake Users
I'm using v2.7.0-rc.6 now and it's looking good (on my M1 Mac).

On Wed, Nov 2, 2022 at 2:37 PM Howard Lewis Ship <howard.l...@nubank.com.br> wrote:
Thanks for the tip -- I'll give it a try and report back.
Reply all
Reply to author
Forward
0 new messages