embedded-postgres-binaries icon indicating copy to clipboard operation
embedded-postgres-binaries copied to clipboard

Asahi linux-arm64 support

Open flaviut opened this issue 2 months ago • 0 comments

Running on a M1 Pro:

java.lang.IllegalStateException: Process [/tmp/embedded-pg/PG-88e316b7b2c2fa6db9edbebfc9863872/bin/initdb, -A, trust, -U, postgres, -D, /tmp/epg1048179472521581922, -E, UTF-8] failed
   at io.zonky.test.db.postgres.embedded.EmbeddedPostgres.system(EmbeddedPostgres.java:653)
   at io.zonky.test.db.postgres.embedded.EmbeddedPostgres.initdb(EmbeddedPostgres.java:261)
   at io.zonky.test.db.postgres.embedded.EmbeddedPostgres.<init>(EmbeddedPostgres.java:159)

Running it manually shows a more helpful error:

$ /tmp/embedded-pg/PG-88e316b7b2c2fa6db9edbebfc9863872/bin/initdb
/tmp/embedded-pg/PG-88e316b7b2c2fa6db9edbebfc9863872/bin/initdb: error while loading shared libraries: libicuuc.so.60: ELF load command address/offset not page-aligned

I suspect the issue here is that 4k pages are assumed, while this processor only supports 16k pages.

flaviut avatar Dec 04 '25 20:12 flaviut