pkg/jerryscript: fix jerryscript not using system includes#9821
pkg/jerryscript: fix jerryscript not using system includes#9821aabadie merged 2 commits intoRIOT-OS:masterfrom
Conversation
|
It also now compiles with It fails on master and we have: With this PR it compiles and we have: |
|
@leandrolanzieri maybe you could take a look too |
|
I think this causes problems with our newly ported |
I will investigate. |
|
Maybe @gschorcht also has an idea |
|
How can I reproduce the problem? I used the current master and changed in |
|
Ok, in riotdocker I can reproduce the problem. The only difference I see between riotdocker and my local host is the cmake version. |
|
@cladmi, what is the status of this PR ? It would at least require a rebase |
b2af4fb to
611b193
Compare
|
I rebased. I retested and I can compile with |
|
It correctly compiles in |
aabadie
left a comment
There was a problem hiding this comment.
Checked the code and tested locally this PR on Arduino Zero. All builds are fine and examples/javascript works as expected. I trust your tests with the esp8266.
All build were fine and this PR fixes the incompatibility with LLVM, which is super nice.
ACK!
|
And please squash! |
611b193 to
c1cc830
Compare
|
I rebased and updated the commit messages. |
|
@cladmi I can test. |
|
I get |
|
Indeed, Murdock is reporting issues with ESP32. |
|
@gschorcht thank for testing. I will look into the |
|
@cladmi In current master it works for ESP32 boards. |
c1cc830 to
c1db04d
Compare
|
I rebased now that the other jerryscript PR was merged. (should not have any impact). @gschorcht it may be the same kind of issues as with the |
|
I added @gschorcht I noticed I still have comments saying |
|
@cladmi Setting |
|
@cladmi |
|
Thanks I will update it. |
Jerryscript was never using INCLUDES so never having the 'newlib-nano' or llvm includes. It prevented working with `llvm`. Disable unsupported warnings for ESP32 and ESP8266 newlib that show when using system includes. * tested newlib version for ESP32 is 2.2.0 * tested newlib version for ESP8266 is 3.0.0
Re-enable LLVM/clang now that system includes are used. It compiles and correctly executes examples/javascript.
2a2b9c0 to
04a91e9
Compare
|
And murdock is also happy with the rebase. |
|
@gschorcht, can re-test on ESP32 and merge after ? My ACK still holds, even with the last changes. |
|
@aabadie Works on ESP32 boards. Not sure about the right merge option "Create a merge commit" or "Squash and merge"? |
|
I just did "Create a merge commit". This is what we usually do in the upstream repo. |
|
@aabadie Ok, now it's clear. Thanks. |
|
Thank you for the review and the tests :) |
Contribution description
Jerryscript was never using INCLUDES so never having the 'newlib-nano' or llvm
includes.
On my computer it cannot even find
stdio.h.It may even fix thestill required for ek-lm4f120xlHAVE_TIME_Hissue from #9808 should investigate more on how to test this one.Testing procedure
With gcc, we should get a 'nano' output that we don't have in master.
Issues/PRs references
#9820