RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

make:native: building on OS X broken

Open thomaseichinger opened this issue 12 years ago • 3 comments

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: 
[...]

thomaseichinger avatar Jun 19 '14 10:06 thomaseichinger

The error message is correct. The question is why OSX does not allow empty archives.

Kijewski avatar Jun 19 '14 10:06 Kijewski

Three options:

  1. Always add a dummy file to the archive.
  2. Wrap ar to create an empty archive (content: !<arch>\x0A).
  3. Add a token .c file in /drivers (static int dummy __attribute__((unused));).

Kijewski avatar Jun 19 '14 11:06 Kijewski

Can't reproduce anymore in master.

LudwigKnuepfer avatar Oct 03 '14 08:10 LudwigKnuepfer