Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[armv7l] ELF load command address/offset not properly aligned #2649

Open
benfrancis opened this issue Aug 7, 2024 · 0 comments
Open

[armv7l] ELF load command address/offset not properly aligned #2649

benfrancis opened this issue Aug 7, 2024 · 0 comments

Comments

@benfrancis
Copy link

benfrancis commented Aug 7, 2024

I realise this library is not very actively maintained, but it's currently still a dependency of the zwave-adapter for WebThings Gateway.

With the patch from #2647 applied we've found it is still working, at least on an x64 architecture.

The problem we're having is when trying to use the library on a Raspberry Pi, specifically a Raspberry Pi 4 model B. After building the library for the armv7l architecture OpenZWave will not run. It fails to start with the error below:

node_modules/openzwave-shared/build/Release/openzwave_shared.node: ELF load command address/offset not properly aligned

A member of our community suggested that the problem could be that the library was being compiled for 4K pages, but being run on a system with 16K pages. We therefore tried modifying Makefile to set LDFLAGS in an effort to support both, but it doesn't appear to have worked.

I'm not a C++ developer so am out of my depth on this. Is anyone able to recommend how to fix this issue?

Edit: I should have mentioned we're using the openzwave-shared npm wrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant