Skip to content
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

Adopt to latest Unikraft core changes #37

Open
wants to merge 3 commits into
base: staging
Choose a base branch
from

Conversation

skuenzer
Copy link
Member

@skuenzer skuenzer commented Dec 11, 2023

This PR updates newlib to make it work again with the latest Unikraft version on staging (at the time of this writing commit 46754d7). Please note that still not all Unikraft libraries are compatible with newlib at the moment.

This header is needed to compile `lib/posix-process`.

Signed-off-by: Simon Kuenzer <[email protected]>
@razvand razvand added the enhancement New feature or request label Dec 30, 2023
@razvand razvand added this to the v0.17.0 (Calypso) milestone Dec 30, 2023
Copy link

@mariapana mariapana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When attempting to use newlib for the helloworld app, the following error occurs:

 LD      helloworld_qemu-x86_64.dbg
/usr/bin/ld: /home/mia/Unikraft/workdir/apps/helloworld/workdir/build/libnewlibc.o: in function `__collate_err':
/home/mia/Unikraft/workdir/apps/helloworld/workdir/build/libnewlibc/origin/newlib-2.5.0.20170922/newlib/libc/posix/collate.c:192: undefined reference to `exit'
collect2: error: ld returned 1 exit status
make[3]: *** [/home/mia/Unikraft/workdir/apps/helloworld/workdir/unikraft/plat/kvm/Linker.uk:54: /home/mia/Unikraft/workdir/apps/helloworld/workdir/build/helloworld_qemu-x86_64.dbg] Error 1
make[2]: *** [Makefile:1170: sub-make] Error 2
make[1]: *** [Makefile:41: _all] Error 2
make[1]: Leaving directory '/home/mia/Unikraft/workdir/apps/helloworld/workdir/unikraft'
make: *** [Makefile:7: all] Error 2

Similar errors occur for different apps as well (for example not being able to find sys/cdefs.h).

@razvand razvand removed this from the v0.17.0 (Calypso) milestone Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants