-
Notifications
You must be signed in to change notification settings - Fork 2.1k
examples: ng_UDP-6LoWPAN example does not compile on OS X #3198
Copy link
Copy link
Closed
Labels
OS: Mac OS XHost OS: This PR/issue concerns usage of RIOT with Mac OS X as a host systemHost OS: This PR/issue concerns usage of RIOT with Mac OS X as a host systemPlatform: nativePlatform: This PR/issue effects the native platformPlatform: This PR/issue effects the native platformType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)
Milestone
Description
When compiling the example in OS X, I get the warning and the error below:
/RIOT/examples/ng_networking/udp.c:88:48: warning: format specifies type 'int' but the argument has
type 'size_t' (aka 'unsigned long') [-Wformat]
printf("Success: send %i byte to %s:%u\n", payload->size, addr_str, tmp);
~~ ^~~~~~~~~~~~~
%zu
1 warning generated.
"/Applications/Xcode.app/Contents/Developer/usr/bin/make" -C /RIOT/cpu/native
In file included from RIOT/cpu/native/hwtimer_cpu.c:47:
In file included from /RIOT/core/include/debug.h:34:
/RIOT/core/include/thread.h:138:14: error: conflicting types for 'thread_create'
kernel_pid_t thread_create(char *stack,
^
/usr/include/mach/task.h:193:15: note: previous declaration is here
kern_return_t thread_create
^
1 error generated.
Toolchain info:
OS X 10.10.3
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.0.53)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
OS: Mac OS XHost OS: This PR/issue concerns usage of RIOT with Mac OS X as a host systemHost OS: This PR/issue concerns usage of RIOT with Mac OS X as a host systemPlatform: nativePlatform: This PR/issue effects the native platformPlatform: This PR/issue effects the native platformType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)