tests: fix linker failure on OS X due to name clash#6326
tests: fix linker failure on OS X due to name clash#6326miri64 merged 1 commit intoRIOT-OS:masterfrom
Conversation
e62157d to
1261d25
Compare
4509d6e to
0880fc0
Compare
5355645 to
5e427a6
Compare
5e427a6 to
0d59a93
Compare
|
this PR is (re)based on #6333 |
|
to clarify what its doing: running certain tests on macOS revealed a name clash in the make system when a test has an I resolved it by prefixing the |
0d59a93 to
862b419
Compare
|
There's a way to build all the tests at once? |
|
@kYc0o yes: murdock or jenkins 😁 btw. Jenkins is fine with the changes. you could also run: |
|
Well this PR changes every test's name but strangely some tests build without this change, for instance bloom_bytes... Did you had the errors for all the tests you've modified? |
|
nope, as said above:
|
|
Back to the past then? |
|
Well, this PR only reverts the renaming of the application, not the renaming of the folder which is okay, I think. I am more confused that we still have this name clash between RIOT and application code - I thought we solved this long ago. |
|
mhm, wasn't aware of #1502 ... it seems that name clashes are only an issue on macOS, not Linux. However I don't think its bad to have the APPLICATION variable of tests to be prefixed by But, for now I only want to fix macOS to get it into Jenkins with green build status 😄 |
|
Out of curiosity: do you understand why it is failing on OSX? |
|
not exactly, but I don't think its clang - its the version of As said before, it must be some clash with the edit: the result is that the main of the application is not build (due to the same name with package) and hence not found by the linker. Further, this problem only pops up with packages not with modules (USEMODULE) of the same name as APPLICATION - atleast I haven't observer that. |
|
@OlegHahm any objections? Otherwise this should go into the release. Btw. CI is happy, too |
862b419 to
d33ae0f
Compare
|
rebased without depending on other PR now |
|
Murdock succeeded and Jenkins failed, though from the Webview it isn't clear why. |
|
maybe some changes in the CI server infrastructure and the job got stuck, Jenkins is in parts WIP. Anyway, rescheduled on Jenkins - if Murdock is fine, Jenkins should/will be, too. 🍵 and wait ... |
d33ae0f to
c098f28
Compare
|
rebased |
|
Needs rebase again. |
|
For the record: I don't object this PR. |
|
Since #1502 we made some changes to the make system which disallows two modules sharing the same name. So this PR seems to be indeed needed. But maybe it would be enough to edit |
c098f28 to
613fd63
Compare
|
rebased, lets wait for CI ... |
miri64
left a comment
There was a problem hiding this comment.
Since #1502 we made some changes to the make system which disallows two modules sharing the same name. So this PR seems to be indeed needed. But maybe it would be enough to edit tests/Makefile.tests_common, not every tests/*/Makefile?
+1 for @Kijewski's proposal to adapt the name in the Makefile.tests_common (maybe even set it automatically by the directory name)
- fixes name clash on macOS
- correct naming of test coap to pkg_libcoap
613fd63 to
6a037ad
Compare
|
done! Lets see if CI is happy |
This PR fixes the following failure when build
tests/libfixmathortests/lwip:The problem is that the test application has the same name as the required module and/or package, i.e.
libfixmath. Renaming the test application with prefixtest_solves this.Note: this issue exists only on macOS with LLVM/clang but not on Linux with gcc.