Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Bignum #21

Open
bkrijg opened this issue Dec 5, 2017 · 7 comments
Open

Bignum #21

bkrijg opened this issue Dec 5, 2017 · 7 comments

Comments

@bkrijg
Copy link

bkrijg commented Dec 5, 2017

Pimatic version :

0.9.42

Plugin version :

0.1.17

Problem / Feature :

During the installation of the tradfri plugin an error occurs and the installation stops.

Expected :

Notes

Output logging:
CC(target) Release/obj.target/mbedcrypto/mbedtls/library/bignum.o
../mbedtls/library/bignum.c: In function ‘mpi_mul_hlp’:
../mbedtls/library/bignum.c:1168:1: error: r7 cannot be used in asm here
}
^
../mbedtls/library/bignum.c:1168:1: error: r7 cannot be used in asm here

@treban
Copy link
Owner

treban commented Dec 5, 2017

The problem is due to an optimization of the dtls library which I use for arm platforms.
I have to adjust the compiler options.
Which hardware platform and OS do you use?

see here

@bkrijg
Copy link
Author

bkrijg commented Dec 5, 2017

I am using Armbian(Xenial) on a Orange PI One

@treban
Copy link
Owner

treban commented Dec 5, 2017

please try:
login to shell and install manually

export CFLAGS='-fomit-frame-pointer'
cd /path-to-pimatic/node_modules
git clone https://github.com/treban/pimatic-tradfri.git
cd pimatic-tradfri
npm install

@bkrijg
Copy link
Author

bkrijg commented Dec 6, 2017

The workaround above worked. I have installed the plugin correctly. This evening I will try to configure and connect to the Tradfri gateway. Thanks!!!

@treban
Copy link
Owner

treban commented Dec 6, 2017

Nice to hear. I will find a general solution. This requires changes to the library package. I would come back to you again to test the result.

@treban
Copy link
Owner

treban commented Mar 28, 2018

HI @bkrijg,
i will publish a new library version soon, so this error should be fixed.
Can you run a test afterwards, please?

@bkrijg
Copy link
Author

bkrijg commented Apr 30, 2018

Hi, I will run the test afterwards.

Regards, Bastiaan

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

No branches or pull requests

2 participants