Giter VIP home page Giter VIP logo

Comments (15)

maxux avatar maxux commented on August 12, 2024 1

I'll try that on my Mac M1, never installed docker on it, will give it a try.

from 0-initramfs.

Totodebrant avatar Totodebrant commented on August 12, 2024 1

I guess build-essential was missing since it works fine now, don't have time to deep dive into what exactly the issue was. Thanks!

from 0-initramfs.

maxux avatar maxux commented on August 12, 2024

It seems that go binary cannot be found. Does go version in your shell works or you have a command not found ?

from 0-initramfs.

Totodebrant avatar Totodebrant commented on August 12, 2024

Seems to work:

toto@toto:~/0-initramfs$ go version
go version go1.19 linux/amd64

from 0-initramfs.

maxux avatar maxux commented on August 12, 2024

Note that all theses scripts are made to be run as root. Can you try everything as root ?

from 0-initramfs.

Totodebrant avatar Totodebrant commented on August 12, 2024

Yes, same result unfortunately.

from 0-initramfs.

maxux avatar maxux commented on August 12, 2024

What does arch command returns ?

from 0-initramfs.

Totodebrant avatar Totodebrant commented on August 12, 2024
toto@toto:~/0-initramfs$ arch
x86_64

from 0-initramfs.

maxux avatar maxux commented on August 12, 2024

And command -v go ?

from 0-initramfs.

Totodebrant avatar Totodebrant commented on August 12, 2024
toto@toto:~/0-initramfs$ command -v go
/usr/local/go/bin/go

from 0-initramfs.

maxux avatar maxux commented on August 12, 2024
   if [ -z $GOPATH ]; then
       if command -v go > /dev/null; then
           export GOPATH=$(go env GOPATH)
       else
           echo "[-] variable GOPATH not defined"
           exit 1
       fi
   fi

That's exactly what the scripts does. So it seems that your environment is not correct when running the script. I guess your PATH and GOPATH are reset when executing bash.

Or try to execute the script without spawning a new bash process:

. ./initramfs.sh

Or try to export variables first:

export PATH
export GOPATH
bash -x initramfs.sh

But this should have been done by . autobuild/tf-build-settings.sh, this script is there for that purpose exactly.

from 0-initramfs.

Totodebrant avatar Totodebrant commented on August 12, 2024

Both give the same exact issue, also on the m1 mac docker.

from 0-initramfs.

maxux avatar maxux commented on August 12, 2024

Well sorry, it works fine for me, using the same command:

docker run --platform=linux/amd64 -ti ubuntu:18.04 /bin/bash
apt-get update
apt-get install -y git build-essential curl
cd
git clone -b development-zos-v3-build-m1 https://github.com/threefoldtech/0-initramfs
cd 0-initramfs/
. ./autobuild/tf-build-deps.sh 
. ./autobuild/tf-build-settings.sh 
bash initramfs.sh

image

I made a new branch with a fix for the cpuinfo issue, but there is no other changes.

Will try using Ubuntu 22.04 now but that's not supposedly supported.

from 0-initramfs.

maxux avatar maxux commented on August 12, 2024

image

Could not reproduce on Ubuntu 22.04 neither so far.

from 0-initramfs.

Totodebrant avatar Totodebrant commented on August 12, 2024

Ubuntu 22.04 is on bare metal x86_64 (desktop with intel processor). Will try your exact procedure on the mac m1 later, thank you for checking so fast, I will report back.

from 0-initramfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.