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

Some errors when build on ubuntu 20.04 (installed via virtualbox on windows) #160

Open
jundai20 opened this issue Oct 18, 2021 · 2 comments

Comments

@jundai20
Copy link

Tested on a brand new ubuntu 20.04 on Virutalbox, meet following issues:

./build --download-dependencies qemu-buildroot

  1. Need to modify /etc/apt/sources.list to add back deb-src
    ==> uncomment deb-src

  2. Need to manually install following packages
    builddeps:qemu : Depends: libgtk-3-dev but it is not going to be installed
    Depends: libvte-2.91-dev but it is not going to be installed
    Depends: libepoxy-dev but it is not going to be installed
    Depends: libgbm-dev but it is not going to be installed

  3. The openssl git name has a typo. Instead of openssl, it should be openssl.git
    qemu/roms/edk2/.gitmodules ==> openssl-> openssl.git

  4. It will kill ubuntu GUI mode, smash the host linux
    After ./build --arch aarch64 --download-dependencies qemu-buildroot, the ubuntu GUI is disspear. Still can login, but it is CLI mode.

  5. Pending, DO not know what happened, give up here :)
    Later, the host out/buildroot/buid/default/host-uitl-linux-2.35.2 will fail, the error is,
    configure: error: C compiler cannot create executables

@cirosantilli
Copy link
Owner

cirosantilli commented Oct 18, 2021

1 and 2: discussed at https://cirosantilli.com/linux-kernel-module-cheat/put-source-uris-in-sources and automated in Docker:

sources_txt = re.sub('^# deb-src ', 'deb-src ', sources_txt, flags=re.MULTILINE)
Not automated in other hosts because of fear of blowing up system :-)

  1. I suspect that both openssl and openssl.git work since they are GitHub URLs and you can git clone either, and that instead it was a one off internet/github problem. I have also been able to checkout that version of QEMU just now.

4 and 5. Not sure about those. Is your simulated disk large enough?

@jundai20
Copy link
Author

Thanks for the information. Yes, I created a 42G VirtualBox fixed size vdi for this purpose.

BTW, follow the following link, I've brought back the GUI. There should be some gdm version confliction.
https://askubuntu.com/questions/641642/gui-does-not-start
sudo apt purge gdm gdm3
sudo apt install gdm3 ubuntu-desktop
systemctl restart gdm

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

No branches or pull requests

2 participants