Skip to content

[BUG] AA64 bin in native-windows-x86_64 jar #226

@RomanQed

Description

@RomanQed

Describe the bug
The maven artifact com.aayushatharva.brotli4j:native-windows-x86_64:1.19.0 contains a dll for AA64.

To Reproduce
Steps to reproduce the behavior:

  1. Download artifact jar
  2. Extract brotli.dll
  3. Run dumpbin /headers brotli.dll
  4. Got this output:
>dumpbin /headers brotli.dll
Microsoft (R) COFF/PE Dumper Version 14.44.35214.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file brotli.dll

PE signature found

File Type: DLL

FILE HEADER VALUES
            AA64 machine (ARM64)
...

OR

  1. Add dependencies by Gradle:
implementation group: 'com.aayushatharva.brotli4j', name: 'brotli4j', version: '1.19.0'
runtimeOnly group: 'com.aayushatharva.brotli4j', name: 'native-windows-x86_64', version: '1.19.0'
  1. Do this:
Brotli4jLoader.ensureAvailability();
  1. Got exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to load Brotli native library
	at com.aayushatharva.brotli4j.Brotli4jLoader.ensureAvailability(Brotli4jLoader.java:108)
	at Main.main(Main.java:7)
Caused by: java.lang.UnsatisfiedLinkError: C:\path\com_aayushatharva_brotli4j_526979550604300\brotli.dll: Can't load ARM 64-bit .dll on a AMD 64-bit platform

Expected behavior
IDK, maybe binaries for x86_64?

Platform (please complete the following information):

  • Device: x86_64
  • OS: Windows 10
  • Java Version 11

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions