Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Kraft name value uppercase fails #73

Open
bdunbar opened this issue Sep 13, 2021 · 0 comments
Open

Kraft name value uppercase fails #73

bdunbar opened this issue Sep 13, 2021 · 0 comments
Assignees

Comments

@bdunbar
Copy link

bdunbar commented Sep 13, 2021

Describe the bug

Fails:
[bdunbar@hilda uk]$ kraft up -t helloworld -m x86_64 -p kvm HELLOWORLD

Success:
[bdunbar@hilda uk]$ kraft up -t helloworld -m x86_64 -p kvm helloworld

OS:
Linux 5.13.12-arch1-1 x86_64

Question: is this a bug or expected behavior?

Steps to reproduce


[bdunbar@hilda uk]$ kraft up -t helloworld -m x86_64 -p kvm HELLOWORLD
100.00% :::::::::::::::::::::::::::::::::::::::: | 21 / 21 |:
app/[email protected] 100.00% :::::::::::::::::::::::::::::::::::::::: |
1873 / 1873 |: core/[email protected] 100.00%
:::::::::::::::::::::::::::::::::::::::: | 21 / 21 |:
app/[email protected] [INFO ] Initialized new unikraft application:
/home/bdunbar/workspace/uk/HELLOWORLD make: Entering directory
'/home/bdunbar/.unikraft/unikraft' LN Makefile mkdir -p
/home/bdunbar/workspace/uk/HELLOWORLD/build/kconfig/lxdialog make
--no-print-directory CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \
obj=/home/bdunbar/workspace/uk/HELLOWORLD/build/kconfig -C
/home/bdunbar/.unikraft/unikraft/support/kconfig -f Makefile.br
/home/bdunbar/workspace/uk/HELLOWORLD/build/kconfig/conf /usr/bin/gcc
-I. -I/home/bdunbar/workspace/uk/HELLOWORLD/build/kconfig
-DCONFIG_=\"\" -c fixdep.c -o
/home/bdunbar/workspace/uk/HELLOWORLD/build/kconfig/fixdep.o
/usr/bin/gcc -I. -I/home/bdunbar/workspace/uk/HELLOWORLD/build/kconfig
-DCONFIG_=\"\" /home/bdunbar/workspace/uk/HELLOWORLD/build/kconfig/fixdep.o
-o /home/bdunbar/workspace/uk/HELLOWORLD/build/kconfig/fixdep # #
configuration written to /home/bdunbar/workspace/uk/HELLOWORLD/.config
# make: Leaving directory '/home/bdunbar/.unikraft/unikraft' make:
Entering directory '/home/bdunbar/.unikraft/unikraft' which: no time
in (/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.nvm/versions/node/v15.14.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/)
make[1]: Nothing to be done for 'fetch'. make: Leaving directory
'/home/bdunbar/.unikraft/unikraft' make: Entering directory
'/home/bdunbar/.unikraft/unikraft' which: no time in
(/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.nvm/versions/node/v15.14.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/)
CP config make: Leaving directory '/home/bdunbar/.unikraft/unikraft'
which: no time in
(/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.nvm/versions/node/v15.14.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/)
0% 0/96 [?file/s]which: no time in
(/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.nvm/versions/node/v15.14.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/)
CC libkvmplat: trace.common.o CC libkvmplat: traps.isr.o CC
libkvmplat: cpu_features.common.o CC libkvmplat: cpu_native.common.o
AS libkvmplat: entry64.o CC libkvmplat: traps.o AS libkvmplat:
cpu_vectors_x86_64.o CC libkvmplat: setup.o CC libkvmplat: console.o
CC libkvmplat: lcpu.o CC libkvmplat: intctrl.o CC libkvmplat:
tscclock.o CC libkvmplat: time.o CC libkvmplat: memory.x86.o CC
libkvmplat: vga_console.o CC libkvmplat: serial_console.o CC
libkvmplat: shutdown.o CC libkvmplat: memory.o CC libkvmplat: irq.o CC
libkvmplat: io.o CC libkvmplat: lcpu.common.o CC libkvmplat:
memory.common.o LDS libkvmplat: link64.lds LD libkvmplat.ld.o OBJCOPY
libkvmplat.o CC libkvmpci: pci_bus.common.o LD libkvmpci.ld.o OBJCOPY
libkvmpci.o CC libkvmvirtio: virtio_bus.o CC libkvmvirtio:
virtio_ring.o LD libkvmvirtio.ld.o OBJCOPY libkvmvirtio.o CC
apphelloworld: main.o 35% █████████████████████████▌ 34/96
[18.89file/s /home/bdunbar/workspace/uk/HELLOWORLD/main.c: In function
'main': /home/bdunbar/workspace/uk/HELLOWORLD/main.c:53:1: warning:
control reaches end of non-void function [-Wreturn-type] 53 | } | ^ LD
apphelloworld.ld.o OBJCOPY apphelloworld.o CC libukboot: boot.o CC
libukboot: version.o CC libukboot: banner.o LD libukboot.ld.o OBJCOPY
libukboot.o CC libukboot_main: weak_main.o LD libukboot_main.ld.o
OBJCOPY libukboot_main.o CC libukdebug: print.o CC libukdebug: outf.o
CC libukdebug: hexdump.o LD libukdebug.ld.o OBJCOPY libukdebug.o CC
libukargparse: argparse.o LD libukargparse.ld.o OBJCOPY
libukargparse.o CC libuktimeconv: timeconv.o LD libuktimeconv.ld.o
OBJCOPY libuktimeconv.o CC libnolibc: errno.o CC libnolibc: stdio.o CC
libnolibc: ctype.o CC libnolibc: stdlib.o CC libnolibc: string.o CC
libnolibc: strsignal.o CC libnolibc: psignal.o CC libnolibc: getopt.o
CC libnolibc: sscanf.o CC libnolibc: asprintf.o CC libnolibc: malloc.o
CC libnolibc: qsort.o LD libnolibc.ld.o OBJCOPY libnolibc.o CC
libukalloc: alloc.o LD libukalloc.ld.o OBJCOPY libukalloc.o CC
libukallocbbuddy: bbuddy.o LD libukallocbbuddy.ld.o OBJCOPY
libukallocbbuddy.o CC libukbus: bus.o LD libukbus.ld.o OBJCOPY
libukbus.o CC libuksglist: sglist.o LD libuksglist.ld.o OBJCOPY
libuksglist.o CC libuktime: __month_to_secs.o CC libuktime:
__secs_to_tm.o CC libuktime: timegm.o CC libuktime: __tm_to_secs.o CC
libuktime: __year_to_secs.o CC libuktime: time.o CC libuktime: timer.o
LD libuktime.ld.o OBJCOPY libuktime.o LD HELLOWORLD_kvm-x86_64.ld.o
OBJCOPY HELLOWORLD_kvm-x86_64.o LD HELLOWORLD_kvm-x86_64.dbg SCSTRIP
HELLOWORLD_kvm-x86_64 GZ HELLOWORLD_kvm-x86_64.gz LN
HELLOWORLD_kvm-x86_64.dbg.gdb.py GEN uk-gdb.py Successfully built
unikernels: To instantiate, use: kraft run [CRITICAL] Could not find
unikernel: /home/bdunbar/workspace/uk/HELLOWORLD/build/helloworld_kvm-x86_64

Expected behavior


[bdunbar@hilda uk]$ kraft up -t helloworld -m x86_64 -p kvm helloworld
100.00% :::::::::::::::::::::::::::::::::::::::: | 21 / 21 |:
app/[email protected] [INFO ] Initialized new unikraft application:
/home/bdunbar/workspace/uk/helloworld make: Entering directory
'/home/bdunbar/.unikraft/unikraft' LN Makefile mkdir -p
/home/bdunbar/workspace/uk/helloworld/build/kconfig/lxdialog make
--no-print-directory CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \
obj=/home/bdunbar/workspace/uk/helloworld/build/kconfig -C
/home/bdunbar/.unikraft/unikraft/support/kconfig -f Makefile.br
/home/bdunbar/workspace/uk/helloworld/build/kconfig/conf /usr/bin/gcc
-I. -I/home/bdunbar/workspace/uk/helloworld/build/kconfig
-DCONFIG_=\"\" -c fixdep.c -o
/home/bdunbar/workspace/uk/helloworld/build/kconfig/fixdep.o
/usr/bin/gcc -I. -I/home/bdunbar/workspace/uk/helloworld/build/kconfig
-DCONFIG_=\"\" /home/bdunbar/workspace/uk/helloworld/build/kconfig/fixdep.o
-o /home/bdunbar/workspace/uk/helloworld/build/kconfig/fixdep # #
configuration written to /home/bdunbar/workspace/uk/helloworld/.config
# make: Leaving directory '/home/bdunbar/.unikraft/unikraft' make:
Entering directory '/home/bdunbar/.unikraft/unikraft' which: no time
in (/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.nvm/versions/node/v15.14.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/)
make[1]: Nothing to be done for 'fetch'. make: Leaving directory
'/home/bdunbar/.unikraft/unikraft' make: Entering directory
'/home/bdunbar/.unikraft/unikraft' which: no time in
(/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.nvm/versions/node/v15.14.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/)
CP config make: Leaving directory '/home/bdunbar/.unikraft/unikraft'
which: no time in
(/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.nvm/versions/node/v15.14.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/)
0% 0/96 [?file/s]which: no time in
(/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.krew/bin:/home/bdunbar/.nvm/versions/node/v15.14.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/:/home/bdunbar/terraform:/home/bdunbar/.local/bin:/home/bdunbar/.nimble/pkgs/inim-0.6.1/)
CC libkvmplat: trace.common.o CC libkvmplat: traps.isr.o CC
libkvmplat: cpu_features.common.o CC libkvmplat: cpu_native.common.o
AS libkvmplat: entry64.o CC libkvmplat: traps.o AS libkvmplat:
cpu_vectors_x86_64.o CC libkvmplat: setup.o CC libkvmplat: console.o
CC libkvmplat: lcpu.o CC libkvmplat: intctrl.o CC libkvmplat:
tscclock.o CC libkvmplat: time.o CC libkvmplat: memory.x86.o CC
libkvmplat: vga_console.o CC libkvmplat: serial_console.o CC
libkvmplat: shutdown.o CC libkvmplat: memory.o CC libkvmplat: irq.o CC
libkvmplat: io.o CC libkvmplat: lcpu.common.o CC libkvmplat:
memory.common.o LDS libkvmplat: link64.lds LD libkvmplat.ld.o OBJCOPY
libkvmplat.o CC libkvmpci: pci_bus.common.o LD libkvmpci.ld.o OBJCOPY
libkvmpci.o CC libkvmvirtio: virtio_bus.o CC libkvmvirtio:
virtio_ring.o LD libkvmvirtio.ld.o OBJCOPY libkvmvirtio.o CC
apphelloworld: main.o 35%
█████████████████████████████████████████████████████████████████▌
34/96 [16.79file/s /home/bdunbar/workspace/uk/helloworld/main.c: In
function 'main': /home/bdunbar/workspace/uk/helloworld/main.c:53:1:
warning: control reaches end of non-void function [-Wreturn-type] 53 |
} | ^ LD apphelloworld.ld.o OBJCOPY apphelloworld.o CC libukboot:
boot.o CC libukboot: version.o CC libukboot: banner.o LD
libukboot.ld.o OBJCOPY libukboot.o CC libukboot_main: weak_main.o LD
libukboot_main.ld.o OBJCOPY libukboot_main.o CC libukdebug: print.o CC
libukdebug: outf.o CC libukdebug: hexdump.o LD libukdebug.ld.o OBJCOPY
libukdebug.o CC libukargparse: argparse.o LD libukargparse.ld.o
OBJCOPY libukargparse.o CC libuktimeconv: timeconv.o LD
libuktimeconv.ld.o OBJCOPY libuktimeconv.o CC libnolibc: errno.o CC
libnolibc: stdio.o CC libnolibc: ctype.o CC libnolibc: stdlib.o CC
libnolibc: string.o CC libnolibc: strsignal.o CC libnolibc: psignal.o
CC libnolibc: getopt.o CC libnolibc: sscanf.o CC libnolibc: asprintf.o
CC libnolibc: malloc.o CC libnolibc: qsort.o LD libnolibc.ld.o OBJCOPY
libnolibc.o CC libukalloc: alloc.o LD libukalloc.ld.o OBJCOPY
libukalloc.o CC libukallocbbuddy: bbuddy.o LD libukallocbbuddy.ld.o
OBJCOPY libukallocbbuddy.o CC libukbus: bus.o LD libukbus.ld.o OBJCOPY
libukbus.o CC libuksglist: sglist.o LD libuksglist.ld.o OBJCOPY
libuksglist.o CC libuktime: __month_to_secs.o CC libuktime:
__secs_to_tm.o CC libuktime: timegm.o CC libuktime: __tm_to_secs.o CC
libuktime: __year_to_secs.o CC libuktime: time.o CC libuktime: timer.o
LD libuktime.ld.o OBJCOPY libuktime.o LD helloworld_kvm-x86_64.ld.o
OBJCOPY helloworld_kvm-x86_64.o LD helloworld_kvm-x86_64.dbg SCSTRIP
helloworld_kvm-x86_64 GZ helloworld_kvm-x86_64.gz LN
helloworld_kvm-x86_64.dbg.gdb.py GEN uk-gdb.py Successfully built
unikernels: => build/helloworld_kvm-x86_64 =>
build/helloworld_kvm-x86_64.dbg (with symbols) To instantiate, use:
kraft run Trying to get root privileges...
**************************************************************************
QEMU: Name: e2fa9eb0-5dae-4599-b97e-9882c12516d2 PID: 2736362 Monitor
socket: /run/qemu-guest-2736346_monitor.socket VNC listen: 5900 SMP
configuration: sockets=1,cores=1,threads=1 Memory: 64 MB Kernel:
/home/bdunbar/workspace/uk/helloworld/build/helloworld_kvm-x86_64
Parameters: console=ttyS0 Warning: No networking for guest! Warning:
Guest will be terminated with CTRL+C!
**************************************************************************
Starting VM... Connecting to serial output... Google, Inc. Serial
Graphics Adapter 04/27/17 SGABIOS $Id$ (pbonzini@donizetti) gio 27 apr
2017, 08.36.57, UTC Term: 213x58 4 0 SeaBIOS (version ArchLinux
1.14.0-1) Booting from ROM... Powered by o. .o _ _ __ _ Oo Oo ___ (_)
| __ __ __ _ ' _) :_ oO oO ' _ `| | |/ / _)' _` | |_| _) oOo oOO| | |
| | (| | | (_) | _) :_ OoOoO ._, ._:_:_,\_._, .__,_:_, \___) Tethys
0.5.0~b8be82b Hello world! Arguments:
"/home/bdunbar/workspace/uk/helloworld/build/helloworld_kvm-x86_64"
"console=ttyS0"

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants