unikraft / pykraft

Python library for configuring and building unikernels
Other
176 stars 41 forks source link

`kraft up -t helloworld@staging ./helloworld` not working as expected #124

Open harsh098 opened 1 year ago

harsh098 commented 1 year ago

Describe the bug I was following the USoc'21 baby steps video and the USoc'21 baby steps documentation .I ran the following command to run the helloworld application.

To Reproduce Steps to reproduce the behavior:

  1. kraft up -t helloworld@staging ./helloworld
  2. The output :-
    
    $ kraft up -t helloworld@staging ./helloworld
    100.00% :::::::::::::::::::::::::::::::::::::::: |       16 /       16 |:  app/helloworld@9
    [INFO    ] Initialized new unikraft application: /home/harsh/unikraft/kraft/./helloworld
    make: Entering directory '/home/harsh/.unikraft/unikraft'
    LN      Makefile
    MKDIR   lxdialog
    MAKE    kconfig
    /usr/bin/gcc -ldl -I. -I/home/harsh/unikraft/kraft/helloworld/build/kconfig -DCONFIG_=\"\"   -c fixdep.c -o /home/harsh/unikraft/kraft/helloworld/build/kconfig/fixdep.o
    /usr/bin/gcc -ldl -I. -I/home/harsh/unikraft/kraft/helloworld/build/kconfig -DCONFIG_=\"\"   /home/harsh/unikraft/kraft/helloworld/build/kconfig/fixdep.o -o /home/harsh/unikraft/kraft/helloworld/build/kconfig/fixdep
    Usage: yacc [options] filename

Options: -b file_prefix set filename prefix (default "y.") -B create a backtracking parser -d write definitions (.tab.h) -i write interface (y.tab.i) -g write a graphical description -l suppress #line directives -L enable position processing, e.g., "%locations" -o output_file (default ".tab.c") -p symbol_prefix set symbol prefix (default "yy") -P create a reentrant parser, e.g., "%pure-parser" -r produce separate code and table files (y.code.c) -s suppress #define's for quoted names in %token lines -t add debugging support -v write description (y.output) -V show version information and exit make[3]: [Makefile.rules:84: /home/harsh/unikraft/kraft/helloworld/build/kconfig/parser.tab.h] Error 1 make[2]: [/home/harsh/unikraft/kraft/helloworld/build/Makefile:785: /home/harsh/unikraft/kraft/helloworld/build/kconfig/conf] Error 2 make[1]: [Makefile:1016: sub-make] Error 2 make: [Makefile:32: _all] Error 2 make: Leaving directory '/home/harsh/.unikraft/unikraft'



**Expected behavior**
helloworld is up and running.

**Desktop:**
- OS : RHEL 8.6(Ootpa)
- Python version : 3.9.7 (on conda)
- **All dependencies listed in `Readme.md` were installed along with `Virtualization group in RHEL`**

**Additional context**
I do not have enough experience using `Makefiles` in Linux. I suspect the problem exists with makefile.
nderjung commented 1 year ago

Hi @harsh098,

We have now deprecated kraft in favour of KraftKit. Please can you try this tool instead, you won't run into this kind of error with it.