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

ARM64 + KVM configure error #90

Open
sktzwhj opened this issue Dec 19, 2021 · 2 comments
Open

ARM64 + KVM configure error #90

sktzwhj opened this issue Dec 19, 2021 · 2 comments

Comments

@sktzwhj
Copy link

sktzwhj commented Dec 19, 2021

Describe the bug

The example app helloworld cannot be configured.

Steps to reproduce

kraft init -t helloworld hello

kraft configure -m arm64 -p kvm
I also tried to give linuxu as the platform option, errors are the same.

Expected behavior

I expected the unikernel to be configured and compiled before running.

Which architectures were you using or does this bug affect?

No response

Which platforms were you using or does this bug affect?

No response

Relevant log output

[root@hector-arm64 hello]# kraft configure -m arm64 -p xen
[?] Which target would you like to configure?: helloworld_kvm-arm64
   helloworld_linuxu-x86_64
   helloworld_kvm-x86_64
   helloworld_xen-x86_64
   helloworld_linuxu-arm64
 > helloworld_kvm-arm64
   helloworld_linuxu-arm

make: Entering directory '/root/.unikraft/unikraft'
mkdir -p /home/whj/hello/hello/build/kconfig/lxdialog
make --no-print-directory CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \
obj=/home/whj/hello/hello/build/kconfig -C /root/.unikraft/unikraft/support/kconfig -f Makefile.br /home/whj/hello/hello/build/kconfig/conf
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[2]: *** [Makefile.rules:84: /home/whj/hello/hello/build/kconfig/parser.tab.h] Error 1
make[1]: *** [/home/whj/hello/hello/build/Makefile:756: /home/whj/hello/hello/build/kconfig/conf] Error 2
make: *** [Makefile:984: sub-make] Error 2
make: Leaving directory '/root/.unikraft/unikraft'
[CRITICAL] Could not configure application
@nderjung nderjung transferred this issue from unikraft/unikraft Jan 4, 2022
@StefanJum
Copy link
Member

Hello! I can't seem to be able to reproduce the issue.
I tried both using kraft configure -m arm64 -p kvm and selecting the platform and arch from the interactive menu as shown in the log output and it successfully configures in both cases.
Can you give any extra context that would help?
Could it be an issue regarding yacc, as it shows you the usage for it in the output?

@zhaoxinyu
Copy link

zhaoxinyu commented Oct 12, 2022

I also meet this issue when running kraft configure on a kvm virtual machine. The linux distribution is CentOS 7.9.
Yacc version is yacc - 1.9 20130304

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

3 participants