RIOT
RIOT copied to clipboard
make:native: building on OS X broken
Building the default example for native on OS X currently fails with following message:
[...]
ar -rc $RIOT/examples/default/bin/native/core.a $RIOT/examples/default/bin/native/core/bitarithm.o $RIOT/examples/default/bin/native/core/cib.o $RIOT/examples/default/bin/native/core/clist.o $RIOT/examples/default/bin/native/core/hwtimer.o $RIOT/examples/default/bin/native/core/kernel_init.o $RIOT/examples/default/bin/native/core/lifo.o $RIOT/examples/default/bin/native/core/msg.o $RIOT/examples/default/bin/native/core/mutex.o $RIOT/examples/default/bin/native/core/queue.o $RIOT/examples/default/bin/native/core/reboot.o $RIOT/examples/default/bin/native/core/sched.o $RIOT/examples/default/bin/native/core/thread.o
ar -rc $RIOT/examples/default/bin/native/drivers.a
ar: no archive members specified
usage:
[...]
The error message is correct. The question is why OSX does not allow empty archives.
Three options:
- Always add a dummy file to the archive.
- Wrap
arto create an empty archive (content:!<arch>\x0A). - Add a token .c file in
/drivers(static int dummy __attribute__((unused));).
Can't reproduce anymore in master.