zos icon indicating copy to clipboard operation
zos copied to clipboard

build is not working on ubuntu 22:04

Open ashraffouda opened this issue 2 years ago • 1 comments

Describe the bug

I build the binaries from ubuntu 22:04 but for some reason it is not working as expected and it gives this error when I do zinit log

To Reproduce

go to cmds directory and do make then try to instantiate a vm

Screenshots

Screenshot from 2023-12-19 16-31-13 the issue was saying

db: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub"

as a work around I did the following created ubuntu docker and mounted zos inside it

docker run -it   -v ~/code/github/threefoldtech/zos:/root/zos ubuntu:20.04 

then inside the docker install

apt-get install -y wget make binutils build-essential

then install golang and do make this the resulting bins should be correct in this case also not build-essential is required for sqlite issue to be solved

ashraffouda avatar Dec 20 '23 12:12 ashraffouda

Weird that I tried to reproduce this by using ubuntu:22.04 container

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"

I only had to install:

  • build-essential
  • git
  • go v1.21.5

I built the binaries in the container then started my zos vm. The boot went completely fine with no errors. Can you please try to rebuild on ubuntu 22.04 but inside a container. If that works we need to figure out what is different from your actual local setup

muhamadazmy avatar Jan 09 '24 10:01 muhamadazmy

https://github.com/threefoldtech/0-fs/pull/48

ashraffouda avatar Apr 24 '24 14:04 ashraffouda