native: fix warning error OS X#3393
Conversation
|
@thomaseichinger could you add comments to the |
|
Works for me! (no warnings anymore when I compile on my machine with OS X 10.10.3) |
|
@thomaseichinger please squash |
9132c65 to
e92debe
Compare
|
Updated after merge of #3390 and squashed. |
e92debe to
7ca53dd
Compare
|
@emmanuelsearch ping |
|
No warning for me either when I build with 10.10.5. However, if I run the Default example I get the following runtime error: |
|
@emmanuelsearch Hmm, ltc4150 has been kicked from native a while ago. @thomaseichinger Maybe this PR just needs a rebase? |
7ca53dd to
6830c5d
Compare
|
rebased. @emmanuelsearch could you try to run default again? |
|
OK, rebasing introduced a new problem. You should see something like: ld: file too small (length=8) file '/Users/thomas/code/RIOT/examples/gnrc_networking/bin/native/gnrc.a' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation) |
|
The problem is that an empty archive |
|
@emmanuelsearch I added a workaround for the empty archive problem. Could you test again? |
|
great. I can now run gnrc_networking. Have not tested more than the shell though. As discussed offline, I suspect we still have tap setup issues, right? |
|
Assuming tap setup issues are a separate issue, I'd ACK this ;) |
7fc44af to
8483d31
Compare
|
please rebase... I'm testing this now. |
As native uses the `ucontext` API this change is needed on OS X as this API is marked as deprecated.
8483d31 to
425a3ef
Compare
|
rebased |
|
I tried it on OS X 10.10.5. It compiles without warning and runs fine: I get a functioning shell with default and gnrc_networking. |
|
ACK. |
|
(once Travis is green ;) |
Makefile.include
Outdated
There was a problem hiding this comment.
Please try
$(shell find $(BASELIBS) -size +8c)which should return the .a files that are bigger than eight bytes. The .a header is 8 bytes.
There was a problem hiding this comment.
This leaves me with a linker command without any archives when I call it with make clean all. The archives cannot be found by find as they are removed before. Issuing a consecutive make all succeeds then.
There was a problem hiding this comment.
Ah right, $$(find $(BASELIBS) -size +8c) then? :)
There was a problem hiding this comment.
This works! Thanks a lot! Updated the commit.
425a3ef to
9882f18
Compare
OS X linker won't link archives consisting of the archives header only.
9882f18 to
24e9de6
Compare
|
Travis passed. Go |
native: fix warning error OS X
rebased upon
#3290and #3390 to build again after merge of #3319.@emmanuelsearch can you verify?