Skip to content

feat(zephyr): v4.4 migration fixes/improvements#4918

Open
kr-t wants to merge 1 commit intobytecodealliance:mainfrom
project-ocre:zephyr-port-4.4
Open

feat(zephyr): v4.4 migration fixes/improvements#4918
kr-t wants to merge 1 commit intobytecodealliance:mainfrom
project-ocre:zephyr-port-4.4

Conversation

@kr-t
Copy link
Copy Markdown
Contributor

@kr-t kr-t commented Apr 16, 2026

This PR would make WAMR work on Zephyr v4.4, while not breaking anything on previous versions. I have tested this extensively both on v4.3 which we were before, and on new v4.4.

For WAMR, the v4.4 mostly brings stricter policies regarding the compiler and warnings. To make it work and build, fixing some implicit casting was necessary, as well as typos around IPV6 (seems that we never tested it in previous versions, therefore we haven't' noticed those typos).

This commit fixes following:

  • fix implicit casting errors
  • fix IPV6 related typos/variables/structures
  • fix zephyr fd relevant implicit casting

I remember, that previously we discussed the case for file descriptors, that we shall probably refactor how we use those, instead of moving the zephyr-related header guards from one line to another. While I do agree with this, this change still solves the warning on <=v4,3 and error on v4.4, while isn't further increasing any complexity.

Please let me know, if you want me to make some further tests or changes. I have found a zephyr-related misinformation as well, which I reported here: #4913 ; but that is irrelevant to this PR's goal.

Zephyr v4.4 has stricter compiler policies. This commit fixes following:
- fix implicit casting errors
- fix IPV6 related typos/variables/structures
- fix zephyr fd relevant implicit casting

Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
@kr-t kr-t force-pushed the zephyr-port-4.4 branch from 08e0ab6 to d1a577e Compare April 16, 2026 12:43
@kr-t
Copy link
Copy Markdown
Contributor Author

kr-t commented Apr 16, 2026

I don't think compilation on SGX failures are due to the changes in this PR; please let me know if you want me to do some further testing or changes.

@kr-t
Copy link
Copy Markdown
Contributor Author

kr-t commented Apr 16, 2026

The nuttx the build seems to fail due to networking issues, not PR-related as well:

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/graphite2/libgraphite2-3_1.3.14-1build2_amd64.deb  Connection failed [IP: 185.125.190.82 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: Process completed with exit code 100.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant