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

FW-887 fix compile issues and update openmote-b, openmote_cc2538 oos… #533

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

christianhopfner
Copy link
Contributor

@christianhopfner christianhopfner commented Nov 12, 2020

fix compile issues and update openmote-b, openmote_cc2538 oos_openwsn project for IAR toolchain

@christianhopfner
Copy link
Contributor Author

@changtengfei and @TimothyClaeys
hey guys this relates to the issue I posted some days ago: https://openwsn.atlassian.net/jira/software/c/projects/FW/issues/FW-887

it fixes additional warnings and errors for IAR compiler, these changes do not interfere with the scons build script, they still produce the same output as before

BR Chris

@christianhopfner
Copy link
Contributor Author

It seems that something with fragmentation fails for python which I haven't touched hope thats something you can have a look at and it does not block the PR

@TimothyClaeys
Copy link
Member

@Chris-Ho Thank you for the PR. I'll have a look at why it fails during the Travis build.

@christianhopfner
Copy link
Contributor Author

christianhopfner commented Nov 12, 2020

@TimothyClaeys thank you I found an indicator for it and updated the PR

bsp/boards/python/openwsnmodule_obj.h required an update which depends on the newly introduced configuration options

@christianhopfner
Copy link
Contributor Author

as side note on windows latest develop branch can not be compiled for python, which has maybe the same root cause as for IAR that some o those socket related code is not correctly suppported. I'm using gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)

scons board=python toolchain=gcc oos_openwsn
scons: Reading SConscript files ...

scons: done reading SConscript files.
scons: Building targets ...
Objectifying build\python_gcc\openapps\c6t\c6t.h -> c6t_obj.h
Objectifying build\python_gcc\openapps\cexample\cexample.h -> cexample_obj.h
Objectifying build\python_gcc\openapps\cinfo\cinfo.h -> cinfo_obj.h
Objectifying build\python_gcc\openapps\cjoin\cjoin.h -> cjoin_obj.h
Objectifying build\python_gcc\openapps\cled\cled.h -> cled_obj.h
Objectifying build\python_gcc\openweb\opencoap\coap.h -> coap_obj.h
Objectifying build\python_gcc\openapps\cstorm\cstorm.h -> cstorm_obj.h
Objectifying build\python_gcc\openapps\cwellknown\cwellknown.h -> cwellknown_obj.h
Objectifying build\python_gcc\openstack\03a-IPHC\frag.h -> frag_obj.h
Objectifying build\python_gcc\openweb\opencoap\oscore.h -> oscore_obj.h
Objectifying build\python_gcc\openapps\rrt\rrt.h -> rrt_obj.h
Objectifying build\python_gcc\openstack\04-TRAN\async.h -> async_obj.h
Objectifying build\python_gcc\openstack\04-TRAN\sock.h -> sock_obj.h
Objectifying build\python_gcc\openstack\04-TRAN\sock_types.h -> sock_types_obj.h
Compiling (shared) build\python_gcc\projects\common\03oos_openwsn\03oos_openwsn_obj.o
Compiling (shared) build\python_gcc\projects\common\03oos_openwsn\openwsnmodule_obj.o
build\python_gcc\projects\common\03oos_openwsn\openwsnmodule_obj.c: In function 'initoos_openwsn':
build\python_gcc\projects\common\03oos_openwsn\openwsnmodule_obj.c:404:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Py_INCREF(&openwsn_OpenMoteType);
^~~~~~~~~
Objectifying build\python_gcc\openstack\openstack.c -> openstack_obj.c
Compiling build\python_gcc\openstack\openstack_obj.o
Compiling build\python_gcc\openstack\02a-MAClow\topology_obj.o
Compiling build\python_gcc\openstack\02a-MAClow\IEEE802154_obj.o
Compiling build\python_gcc\openstack\02a-MAClow\IEEE802154E_obj.o
Compiling build\python_gcc\openstack\02a-MAClow\adaptive_sync_obj.o
Compiling build\python_gcc\openstack\02a-MAClow\IEEE802154_security_obj.o
Compiling build\python_gcc\openstack\02b-MAChigh\neighbors_obj.o
Compiling build\python_gcc\openstack\02b-MAChigh\msf_obj.o
Compiling build\python_gcc\openstack\02b-MAChigh\schedule_obj.o
Objectifying build\python_gcc\openstack\02b-MAChigh\sixtop.c -> sixtop_obj.c
Compiling build\python_gcc\openstack\02b-MAChigh\sixtop_obj.o
Objectifying build\python_gcc\openstack\03a-IPHC\frag.c -> frag_obj.c
Compiling build\python_gcc\openstack\03a-IPHC\frag_obj.o
Objectifying build\python_gcc\openstack\03a-IPHC\iphc.c -> iphc_obj.c
Compiling build\python_gcc\openstack\03a-IPHC\iphc_obj.o
Compiling build\python_gcc\openstack\03a-IPHC\openbridge_obj.o
Compiling build\python_gcc\openstack\03b-IPv6\forwarding_obj.o
Compiling build\python_gcc\openstack\03b-IPv6\icmpv6_obj.o
Compiling build\python_gcc\openstack\03b-IPv6\icmpv6echo_obj.o
Compiling build\python_gcc\openstack\03b-IPv6\icmpv6rpl_obj.o
Compiling build\python_gcc\openstack\04-TRAN\udp_obj.o
Objectifying build\python_gcc\openstack\04-TRAN\sock.c -> sock_obj.c
Compiling build\python_gcc\openstack\04-TRAN\sock_obj.o
build\python_gcc\openstack\04-TRAN\sock_obj.c: In function 'sock_udp_create':
build\python_gcc\openstack\04-TRAN\sock_obj.c:52:25: error: 'EADDRINUSE' undeclared (first use in this function)
return -EADDRINUSE;
^~~~~~~~~~
build\python_gcc\openstack\04-TRAN\sock_obj.c:52:25: note: each undeclared identifier is reported only once for each function it appears in
build\python_gcc\openstack\04-TRAN\sock_obj.c:65:21: error: 'EAFNOSUPPORT' undeclared (first use in this function)
return -EAFNOSUPPORT;
^~~~~~~~~~~~
build\python_gcc\openstack\04-TRAN\sock_obj.c: In function 'sock_udp_send':
build\python_gcc\openstack\04-TRAN\sock_obj.c:105:21: error: 'EAFNOSUPPORT' undeclared (first use in this function)
return -EAFNOSUPPORT;
^~~~~~~~~~~~
build\python_gcc\openstack\04-TRAN\sock_obj.c:142:17: error: 'ENOBUFS' undeclared (first use in this function)
return -ENOBUFS;
^~~~~~~
build\python_gcc\openstack\04-TRAN\sock_obj.c: In function 'sock_udp_get_local':
build\python_gcc\openstack\04-TRAN\sock_obj.c:183:17: error: 'EADDRINUSE' undeclared (first use in this function)
return -EADDRINUSE;
^~~~~~~~~~
build\python_gcc\openstack\04-TRAN\sock_obj.c: In function 'sock_udp_get_remote':
build\python_gcc\openstack\04-TRAN\sock_obj.c:193:17: error: 'ENOTCONN' undeclared (first use in this function)
return -ENOTCONN;
^~~~~~~~
scons: *** [build\python_gcc\openstack\04-TRAN\sock_obj.o] Error 1
scons: building terminated because of errors.

@christianhopfner
Copy link
Contributor Author

@TimothyClaeys everything is solved now, windows works as well

@TimothyClaeys TimothyClaeys linked an issue Dec 2, 2020 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Compile issues related to sock interface and IAR toolchain
2 participants