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

Clang-based PIE builds don't run on QEMU Multiboot x86_64 #1063

Open
razvand opened this issue Aug 21, 2023 · 0 comments
Open

Clang-based PIE builds don't run on QEMU Multiboot x86_64 #1063

razvand opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels
arch/x86_64 kind/bug Something isn't working plat/kvm Unikraft for KVM topic/booting Topics pertaining to the boot process

Comments

@razvand
Copy link
Contributor

razvand commented Aug 21, 2023

Describe the bug

Building x86_64 Unikraft images as PIE won't run on QEMU Multiboot x86_64. It ends up in some sort of an infinite loop with the output:

Booting from ROM..

Steps to reproduce

Run the following commands (you can use copy-paste):

git clone https://github.com/unikraft/app-helloworld helloworld
cd helloworld/
mkdir .unikraft
git clone https://github.com/unikraft/unikraft .unikraft/unikraft
wget https://raw.githubusercontent.com/unikraft-upb/maintainer-tools/staging/workdir/copy/base/apps/helloworld/.config.helloworld-qemu-x86_64-pie
UK_DEFCONFIG=$(pwd)/.config.helloworld-qemu-x86_64-pie make defconfig
make CC=clang -j $(nproc)
qemu-system-x86_64 -kernel build/helloworld_qemu-x86_64 -nographic

Expected behavior

There should be a Hello, World! message being printed and the QEMU process would end.

Which architectures were you using or does this bug affect?

x86_64

Which platforms were you using or does this bug affect?

kvm

Relevant log output

No response

@razvand razvand added kind/bug Something isn't working plat/kvm Unikraft for KVM arch/x86_64 topic/booting Topics pertaining to the boot process labels Aug 21, 2023
@razvand razvand added this to the v0.15.0 (Pandora) milestone Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch/x86_64 kind/bug Something isn't working plat/kvm Unikraft for KVM topic/booting Topics pertaining to the boot process
Projects
Status: 🧊 Icebox
Development

No branches or pull requests

3 participants