quantum/esos

Cannot build ESOS 2.x.x from latest release source

Opened this issue · 4 comments

Hello,
I'm trying to build the latest release following the wiki, but the build breaks abnormally with the following message:

...
### Creating initramfs image...
rm -rf /home/build/build/esos_build/work/initramfs/dev/*
mknod /home/build/build/esos_build/work/initramfs/dev/null c 1 3
mknod /home/build/build/esos_build/work/initramfs/dev/console c 5 1
mknod /home/build/build/esos_build/work/initramfs/dev/tty c 5 0
chmod +x /home/build/build/esos_build/work/initramfs/init
ln -sf busybox /home/build/build/esos_build/work/initramfs/bin/sh
cp -Rp /home/build/build/esos_build/work/chroot/lib/firmware/* /home/build/build/esos_build/work/initramfs/lib/firmware/
cp: cannot stat `/home/build/build/esos_build/work/chroot/lib/firmware/*': No such file or directory
make: *** [image] Error 1
make: *** No rule to make target `/home/build/build/esos_build/esos-HEAD_eeec843.img.bz2', needed by `pkg_dist'.  Stop.

I'm building this on Ubuntu 12.04 using the following steps:

# Begin downloading sources
git clone https://github.com/quantum/esos.git esos_build
cd esos_build
git checkout $(git describe --tags)

# Fix build environment
autoconf
./configure
sudo make symlink

# Start building
make -j$(nproc) -w -Orecurse > /tmp/bootstrap.out 2>&1
#sudo make pre_chroot
sudo ./chroot_build.sh -j$(nproc) -w -Orecurse > /tmp/chroot.out 2>&1
#sudo make post_chroot
sudo rm /tools
sudo make image
sudo make pkg_dist

Is there anything I may be missing?

After some research, I found that the build instructions are old so I will describe what I did to make it work:

  • Used Ubuntu 19.04 as build machine.
  • Used -j4 as switch everywhere, because I got errors with cpu-count>4.
  • Build script goes like this
#!/bin/bash

# in Docker, the USER variable is unset by default
# but some programs rely on it
export USER="$(whoami)"
export PATH="$HOME/bin:$PATH"

# Begin downloading sources
git clone https://github.com/quantum/esos.git esos_build
cd esos_build
git checkout $(git describe --tags)

# Fix build environment
autoconf
./configure
sudo make symlink

# Start building
make -j4 all > /tmp/bootstrap.out 2>&1
sudo ./chroot_build.sh -j4 -w -Orecurse > /tmp/chroot.out 2>&1
sudo rm work/chroot/tools
sudo make image
make pkg_dist

I made a repo for automated esos build using Docker. If anyone is interested, please feel free to use it.

https://github.com/dpolitis/esos-build
Regards,
DP

This is great... do you have a set of instructions for how to use this? Maybe something like "Install Docker, clone this Git repo, run this to build ESOS, fetch the finished image from here, etc."?

If so, I'd like to link to your Docker repo on the ESOS Build wiki page, if you're okay with it?

I have updated the instructions in my git repo.

Of course you can include my repo on the ESOS Build wiki page, no problem.

Please let me know if you need any relevant information.

Hi, i need build esos because the prebuild image is only on 3.0.6 or lower and the drbd is broken on this version, the fix is on 3.0.7.
I have exactly the same problem, i have try to build the 3.x.x branch with ubuntu 19.04, 20.04 and fedora 33 with allways the same error "make: *** [MakeFile:4433: image] Error 1".