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

error: impossible constraint in ‘asm’ #5

Open
slj2606 opened this issue Aug 1, 2018 · 0 comments
Open

error: impossible constraint in ‘asm’ #5

slj2606 opened this issue Aug 1, 2018 · 0 comments

Comments

@slj2606
Copy link

slj2606 commented Aug 1, 2018

Hello,

I am trying to compile dtls-server.c in TinyDTLS and I am getting the error given below:

make dtls-server.wismote TARGET=wismote
Makefile:44: warning: overriding recipe for target 'clean'
/home/user/contiki/Makefile.include:219: warning: ignoring old recipe for target 'clean'
CC dtls-server.c
In file included from dtls-server.c:15:0:
/usr/include/signal.h:321:1: warning: ‘interrupt’ attribute ignored [-Wattributes]
In file included from /home/user/contiki/apps/tinydtls/dtls-crypto.h:29:0,
from /home/user/contiki/apps/tinydtls/dtls-peer.h:28,
from /home/user/contiki/apps/tinydtls/dtls.h:30,
from /home/user/contiki/apps/tinydtls/dtls-support.h:7,
from /home/user/contiki/apps/tinydtls/tinydtls.h:148,
from dtls-server.c:19:
/home/user/contiki/apps/tinydtls/dtls-numeric.h: In function ‘dtls_int_to_uint24’:
/home/user/contiki/apps/tinydtls/dtls-numeric.h:47:3: warning: right shift count >= width of type [enabled by default]
/home/user/contiki/apps/tinydtls/dtls-numeric.h: In function ‘dtls_int_to_uint32’:
/home/user/contiki/apps/tinydtls/dtls-numeric.h:55:3: warning: right shift count >= width of type [enabled by default]
/home/user/contiki/apps/tinydtls/dtls-numeric.h:56:3: warning: right shift count >= width of type [enabled by default]
/home/user/contiki/apps/tinydtls/dtls-numeric.h: In function ‘dtls_uint24_to_int’:
/home/user/contiki/apps/tinydtls/dtls-numeric.h:99:3: warning: left shift count >= width of type [enabled by default]
/home/user/contiki/apps/tinydtls/dtls-numeric.h: In function ‘dtls_uint32_to_int’:
/home/user/contiki/apps/tinydtls/dtls-numeric.h:106:3: warning: left shift count >= width of type [enabled by default]
/home/user/contiki/apps/tinydtls/dtls-numeric.h:107:3: warning: left shift count >= width of type [enabled by default]

dtls-server.c: In function ‘main’:
dtls-server.c:342:5: error: impossible constraint in ‘asm’
dtls-server.c:343:5: error: impossible constraint in ‘asm’
dtls-server.c:369: confused by earlier errors, bailing out

/home/user/contiki/Makefile.include:260: recipe for target 'dtls-server.co' failed
make: *** [dtls-server.co] Error 1
Process returned error code 2


The error in the main function points to lines 342 and 434 which has the following macros in dtls-server.c file:

FD_ZERO(&rfds);
FD_ZERO(&wfds);

I am not sure how to fix this issue.

Kindly help.

Thank You.

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