-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix stat musl #1615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Fix stat musl #1615
Conversation
Signed-off-by: shauryarane05 <[email protected]>
Signed-off-by: shauryarane05 <[email protected]>
|
@razvand hey I need to do a little formatting in the code but can you confirm if the changes are correct or is there any feedback i need to work on |
StefanJum
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shauryarane05 how did you test this? I get a lot of build errors regarding syscalls definitions, similar to this:
In file included from /projects/unikraft/catalog-core/repos/unikraft/lib/vfscore/main.c:56:
/projects/unikraft/catalog-core/repos/unikraft/lib/vfscore/main.c: At top level:
/projects/unikraft/catalog-core/repos/unikraft/lib/syscall_shim/include/uk/syscall.h:123:46: error: conflicting types for ‘uk_syscall_do_stat’; have ‘long int(long int, long int)’
123 | #define __UK_NAME2SCALLDO_FN(name) UK_CONCAT(uk_syscall_do_, name)
|
@StefanJum |
|
The nginx and sqlite applications use musl. Most of the changes are related
to nolibc, which is not included in the build system if musl is there.
Try testing it with helloworld, enable vfscore -> compiled in filesystem ->
9pfs in the config menu.
…On Mon, Mar 24, 2025, 19:58 Shaurya Shivnath Rane ***@***.***> wrote:
@StefanJum <https://github.com/StefanJum>
I tested it with https://github.com/unikraft/app-nginx and
https://github.com/unikraft/app-sqlite
it built without any errors.
how are you testing it or any library you think i missed while building
these apps as i followed the setup steps in the md file to build these apps
—
Reply to this email directly, view it on GitHub
<#1615 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPH3XZVNJ75NZ6AQGPQM332WBBUJAVCNFSM6AAAAABZTQTW4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBYHE3TSNRUGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: shauryarane05]*shauryarane05* left a comment
(unikraft/unikraft#1615)
<#1615 (comment)>
@StefanJum <https://github.com/StefanJum>
I tested it with https://github.com/unikraft/app-nginx and
https://github.com/unikraft/app-sqlite
it built without any errors.
how are you testing it or any library you think i missed while building
these apps as i followed the setup steps in the md file to build these apps
—
Reply to this email directly, view it on GitHub
<#1615 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPH3XZVNJ75NZ6AQGPQM332WBBUJAVCNFSM6AAAAABZTQTW4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBYHE3TSNRUGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
ok I am looking into it once more, made a few mistakes will update them |
Prerequisite checklist
checkpatch.ukon your commit series before opening this PR;Base target
x86_64or N/A]kvm,xenor N/A]app-python3or N/A]Additional configuration
Description of changes
Changes:
directly into *stat() functions.
consistency with Musl’s implementation.
when calling stat() functions.
they belong in Unikraft’s internal libc-like interface.
Testing:
with no infinite loops when used with Musl.
Signed-off-by: shauryarane05 [email protected]