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

Error 1 and Error 127 on Build (make bootstrap needed prior of building anything else) #1126

Closed
ghost opened this issue Feb 25, 2022 · 13 comments

Comments

@ghost
Copy link

ghost commented Feb 25, 2022

Hello everyone,
I am trying to build x230-maximized Board on Debian 10.4.0.
I have installed all the extra required packages.
Right at the start of building I get error 1, The certificate of coreboot.org cannot be trusted, the certificate is invalid.
I have already failed building on Debian 9 (had the wrong gawk and make versions), but this is a new error for me.
I have even tried and downloaded the coreboot-blob file with --no-certificate-check and put it in heads/packages
but the installer still gives out the same error.
I have also updated ca-certificates package on debian, but still no luck.
Any ideas of what I'm doing wrong?

Thanks in advance for your help!

root:xxxxxx....~/heads# make BOARD=x230-maximized
2022-02-25 15:00:13+01:00 Local built HEADS_GAWK only if different then provided by OS:
2022-02-25 15:00:13+01:00 Local built HEADS_MAKE only if different then provided by OS:
2022-02-25 15:00:13+01:00 Heads build system will call make from now on as: MAKE: make.
2022-02-25 15:00:13+01:00 WGET https://www.coreboot.org/releases/coreboot-blobs-4.13.tar.xz
--2022-02-25 15:00:13--  https://www.coreboot.org/releases/coreboot-blobs-4.13.tar.xz
Auflösen des Hostnamens www.coreboot.org (www.coreboot.org)… 2a01:4f8:121:1254::2, 78.46.105.101
Verbindungsaufbau zu www.coreboot.org (www.coreboot.org)|2a01:4f8:121:1254::2|:443 … verbunden.
FEHLER: Dem Zertifikat von »www.coreboot.org« wird nicht vertraut.
FEHLER: Das Zertifikat von »www.coreboot.org« ist abgelaufen.
make: *** [Makefile:505: /root/heads/packages/coreboot-blobs-4.13.tar.xz] Fehler 1
root:xxxxxx....~/heads#
@tlaurion
Copy link
Collaborator

tlaurion commented Feb 25, 2022

@grawawa23 This is weird looking at the certificate of coreboot.org which is valid for a while and haven't change also for a while...

There is no reason using debian-10 anymore since even CircleCI is based on debian-11. Will try to check this...

But your error extract shows that you have none of the required prerequisites installed.

apt update
apt install -y build-essential zlib1g-dev uuid-dev libdigest-sha-perl libelf-dev bc bzip2 bison flex git gnupg gawk iasl m4 nasm patch python python2 python3 wget gnat cpio ccache pkg-config cmake libusb-1.0-0-dev autoconf texinfo ncurses-dev doxygen graphviz udev libudev1 libudev-dev automake libtool rsync innoextract sudo
./blobs/xx30/download_clean_me.sh -m $(readlink -f ./blobs/xx30/me_cleaner.py)
make BOARD=x230-hotp-maximized

EDIT: debian-10 comes with proper version of make and gawk which is why those packages are not locally built.
So this issue of certificate is an issue of its own. Sorry for the noise.

@ghost
Copy link
Author

ghost commented Feb 25, 2022

Hey tlaurion,
thanks for the quick reply!
I did apt update and apt upgrade and rebooted.
Now suddenly the build starts, takes about 30-40 minutes, and then at the end (or at least for me what seems like the end) I still get Error 1.

I will post the code below (I executed make BOARD=xxx a second time after the first build, still same error but now everything is much faster, the code below is from the second time), the os is in german, I hope it still makes sense.

I have tried building on Debian 11 bullseye, the latest stable release, a few days ago, didn't work.
Then, as mentioned above on Debian 9, still not working, and now on Debian 10.4.0 at least I seem to have the right make and gawk versions, but it stills delivers an error.

I really appreciate any help and comments 😃

Thanks in advance!

root@:~# cd heads
root@:~/heads# make BOARD=x230-maximized
2022-02-25 16:57:19+01:00 Local built HEADS_GAWK only if different then provided by OS: 
2022-02-25 16:57:19+01:00 Local built HEADS_MAKE only if different then provided by OS: 
2022-02-25 16:57:19+01:00 Heads build system will call make from now on as: MAKE: make.
make -C "/root/heads/build/coreboot-4.13" CPUS=4 crossgcc-i386
make[1]: Verzeichnis „/root/heads/build/coreboot-4.13“ wird betreten
Welcome to the coreboot cross toolchain builder v ()

Building toolchain using 4 thread(s).

Target architecture is i386-elf

Found compatible Ada compiler, enabling Ada support by default.

Downloading and verifying tarballs ...
 * gmp-6.2.0.tar.xz (cached)... hash verified (052a5411dc74054240eec58132d2cf41211d0ff6)
 * mpfr-4.1.0.tar.xz (cached)... hash verified (159c3a58705662bfde4dc93f2617f3660855ead6)
 * mpc-1.2.0.tar.gz (cached)... hash verified (0abdc94acab0c9bfdaa391347cdfd7bbdb1cf017)
 * binutils-2.35.tar.xz (cached)... hash verified (6bdd090ce268b6d6c3442516021c4e4b5019e303)
 * gcc-8.3.0.tar.xz (cached)... hash verified (c27f4499dd263fe4fb01bcc5565917f3698583b2)
Downloaded tarballs ... ok
Unpacking and patching ...
 * gmp-6.2.0.tar.xz
   o gmp-6.2.0_generic-build.patch
 * mpfr-4.1.0.tar.xz
 * mpc-1.2.0.tar.gz
 * binutils-2.35.tar.xz
   o binutils-2.35_as-ipxe.patch
   o binutils-2.35_mips-gold.patch
   o binutils-2.35_no-bfd-doc.patch
   o binutils-2.35_no-makeinfo.patch
 * gcc-8.3.0.tar.xz
   o gcc-8.3.0_ada-musl_workaround.patch
   o gcc-8.3.0_asan_shadow_offset_callback.patch
   o gcc-8.3.0_gnat-bad_constant.patch
   o gcc-8.3.0_gnat.patch
   o gcc-8.3.0_gnat_eh.patch
   o gcc-8.3.0_libcpp.patch
   o gcc-8.3.0_libgcc.patch
   o gcc-8.3.0_nds32_ite.patch
Unpacked and patched ... ok
Building packages ...
Skipping GMP v6.2.0 for host as it is already built
Skipping MPFR v4.1.0 for host as it is already built
Skipping MPC v1.2.0 for host as it is already built
Skipping BINUTILS v2.35 for target as it is already built
Skipping GCC v8.3.0 for target as it is already built
Packages built ... ok
Copied EDK2 tools template ... ok
Cleaning up temporary files... ok

You can now run i386-elf cross GCC from /root/heads/build/coreboot-4.13/util/crossgcc/xgcc.
Welcome to the coreboot cross toolchain builder v ()

Building toolchain using 4 thread(s).

Downloading and verifying tarballs ...
 * nasm-2.15.03.tar.bz2 (cached)... hash verified (513ac3b800377f10833a02bc7f3fa8b84ca4f2b6)
Downloaded tarballs ... ok
Unpacking and patching ...
 * nasm-2.15.03.tar.bz2
Unpacked and patched ... ok
Building packages ...
Skipping NASM v2.15.03 for host as it is already built
Packages built ... ok
Copied EDK2 tools template ... ok
Cleaning up temporary files... ok

You can now run NASM from /root/heads/build/coreboot-4.13/util/crossgcc/xgcc.
Welcome to the coreboot cross toolchain builder v ()

Building toolchain using 4 thread(s).

Downloading and verifying tarballs ...
 * acpica-unix2-20200717.tar.gz (cached)... hash verified (92b0177f36b5209e6a667808ca58ef7462c4a6c7)
Downloaded tarballs ... ok
Unpacking and patching ...
 * acpica-unix2-20200717.tar.gz
   o acpica-unix2-20200717_iasl.patch
Unpacked and patched ... ok
Building packages ...
Skipping IASL v20200717 for host as it is already built
Packages built ... ok
Copied EDK2 tools template ... ok
Cleaning up temporary files... ok

You can now run IASL ACPI compiler from /root/heads/build/coreboot-4.13/util/crossgcc/xgcc.
make[1]: Verzeichnis „/root/heads/build/coreboot-4.13“ wird verlassen
2022-02-25 16:57:43+01:00 CONFIG coreboot
2022-02-25 16:57:46+01:00 INSTALL-MODULE drivers/net/ethernet/intel/e1000e/e1000e.ko
2022-02-25 16:57:46+01:00 INSTALL-MODULE drivers/usb/host/ehci-hcd.ko
2022-02-25 16:57:46+01:00 INSTALL-MODULE drivers/usb/host/ehci-pci.ko
2022-02-25 16:57:46+01:00 INSTALL-MODULE drivers/usb/host/xhci-hcd.ko
2022-02-25 16:57:46+01:00 INSTALL-MODULE drivers/usb/host/xhci-pci.ko
2022-02-25 16:57:46+01:00 INSTALL-MODULE drivers/usb/storage/usb-storage.ko
2022-02-25 16:57:46+01:00 SYMLINK bin/busybox
2022-02-25 16:57:53+01:00 INSTALL-BIN build/kexec-tools-2.0.22/build/sbin/kexec
2022-02-25 16:57:53+01:00 INSTALL-BIN build/tpmtotp-18b860fdcf5a55537c8395b891f2b2a5c24fc00a/totp
2022-02-25 16:57:53+01:00 INSTALL-BIN build/tpmtotp-18b860fdcf5a55537c8395b891f2b2a5c24fc00a/hotp
2022-02-25 16:57:53+01:00 INSTALL-BIN build/tpmtotp-18b860fdcf5a55537c8395b891f2b2a5c24fc00a/base32
2022-02-25 16:57:53+01:00 INSTALL-BIN build/tpmtotp-18b860fdcf5a55537c8395b891f2b2a5c24fc00a/qrenc
2022-02-25 16:57:53+01:00 INSTALL-BIN build/tpmtotp-18b860fdcf5a55537c8395b891f2b2a5c24fc00a/util/tpm
2022-02-25 16:57:53+01:00 INSTALL-BIN build/pciutils-3.5.4/lspci
2022-02-25 16:57:53+01:00 INSTALL-BIN build/flashrom-b1f858f65b2abd276542650d8cb9e382da258967/flashrom
2022-02-25 16:57:53+01:00 INSTALL-BIN build/cryptsetup-2.3.3/.libs/cryptsetup
2022-02-25 16:57:53+01:00 INSTALL-BIN build/cryptsetup-2.3.3/.libs/cryptsetup-reencrypt
2022-02-25 16:57:53+01:00 INSTALL-BIN build/cryptsetup-2.3.3/.libs/veritysetup
2022-02-25 16:57:53+01:00 INSTALL-BIN build/gnupg-2.2.21/g10/gpg
2022-02-25 16:57:53+01:00 INSTALL-BIN build/gnupg-2.2.21/agent/gpg-agent
2022-02-25 16:57:53+01:00 INSTALL-BIN build/gnupg-2.2.21/scd/scdaemon
2022-02-25 16:57:53+01:00 INSTALL-BIN build/pinentry-1.1.0/tty/pinentry-tty
2022-02-25 16:57:53+01:00 INSTALL-BIN build/lvm2.2.02.168/tools/dmsetup
2022-02-25 16:57:53+01:00 INSTALL-BIN build/lvm2.2.02.168/tools/lvm
2022-02-25 16:57:53+01:00 INSTALL-BIN build/dropbear-2016.74/ssh
2022-02-25 16:57:53+01:00 INSTALL-BIN build/dropbear-2016.74/scp
2022-02-25 16:57:53+01:00 INSTALL-BIN build/dropbear-2016.74/dropbear
2022-02-25 16:57:53+01:00 INSTALL-BIN build/flashtools-40d5170e84a3822552df7a500cd00aa870fdfe76/flashtool
2022-02-25 16:57:53+01:00 INSTALL-BIN build/flashtools-40d5170e84a3822552df7a500cd00aa870fdfe76/peek
2022-02-25 16:57:53+01:00 INSTALL-BIN build/flashtools-40d5170e84a3822552df7a500cd00aa870fdfe76/poke
2022-02-25 16:57:53+01:00 INSTALL-BIN build/flashtools-40d5170e84a3822552df7a500cd00aa870fdfe76/cbfs
2022-02-25 16:57:53+01:00 INSTALL-BIN build/flashtools-40d5170e84a3822552df7a500cd00aa870fdfe76/uefi
2022-02-25 16:57:53+01:00 INSTALL-BIN build/fbwhiptail-0f14a409735b71c219e0b9b3ee63cdae709ba143/fbwhiptail
2022-02-25 16:57:54+01:00 INSTALL-BIN build/fbwhiptail-0f14a409735b71c219e0b9b3ee63cdae709ba143/whiptail
2022-02-25 16:57:54+01:00 MAKE cbmem
make[1]: Verzeichnis „/root/heads/build/coreboot-4.13/util/cbmem“ wird betreten
make[1]: Für das Ziel „all“ ist nichts zu tun.
make[1]: Verzeichnis „/root/heads/build/coreboot-4.13/util/cbmem“ wird verlassen
2022-02-25 16:57:54+01:00 INSTALL-BIN build/coreboot-4.13/util/cbmem/cbmem
2022-02-25 16:57:54+01:00 INSTALL-LIB crossgcc/x86_64-linux-musl/lib/libc.so
2022-02-25 16:57:54+01:00 INSTALL-LIB build/libgcrypt-1.8.6/src/.libs/libgcrypt.so.20
2022-02-25 16:57:54+01:00 INSTALL-LIB build/lvm2.2.02.168/libdm/libdevmapper.so.1.02
2022-02-25 16:57:54+01:00 INSTALL-LIB build/popt-1.16/.libs/libpopt.so.0
2022-02-25 16:57:54+01:00 INSTALL-LIB build/cairo-1.14.12/src/.libs/libcairo.so.2
2022-02-25 16:57:54+01:00 INSTALL-LIB build/mbedtls-2.4.2/library/libmbedcrypto.so.0
2022-02-25 16:57:54+01:00 INSTALL-LIB build/npth-1.6/src/.libs/libnpth.so.0
2022-02-25 16:57:54+01:00 INSTALL-LIB build/qrencode-3.4.4/.libs/libqrencode.so.3
2022-02-25 16:57:54+01:00 INSTALL-LIB build/pixman-0.34.0/pixman/.libs/libpixman-1.so.0
2022-02-25 16:57:54+01:00 INSTALL-LIB build/pciutils-3.5.4/lib/libpci.so.3.5.4
2022-02-25 16:57:54+01:00 INSTALL-LIB build/pciutils-3.5.4/../../install/lib/libpci.so.3
2022-02-25 16:57:54+01:00 INSTALL-LIB build/libksba-1.4.0/src/.libs/libksba.so.8
2022-02-25 16:57:54+01:00 INSTALL-LIB build/libassuan-2.5.3/src/.libs/libassuan.so.0
2022-02-25 16:57:54+01:00 INSTALL-LIB build/cryptsetup-2.3.3/.libs/libcryptsetup.so.12
2022-02-25 16:57:55+01:00 INSTALL-LIB build/libusb-1.0.21/libusb/.libs/libusb-1.0.so.0
2022-02-25 16:57:55+01:00 INSTALL-LIB build/libgpg-error-1.37/src/.libs/libgpg-error.so.0
2022-02-25 16:57:55+01:00 INSTALL-LIB build/libpng-1.6.34/.libs/libpng16.so.16
2022-02-25 16:57:55+01:00 INSTALL-LIB build/json-c-0.14/build/libjson-c.so.5
2022-02-25 16:57:55+01:00 INSTALL-LIB build/tpmtotp-18b860fdcf5a55537c8395b891f2b2a5c24fc00a/libtpm/libtpm.so
2022-02-25 16:57:55+01:00 INSTALL-LIB build/libusb-compat-0.1.5/libusb/.libs/libusb-0.1.so.4
2022-02-25 16:57:55+01:00 INSTALL-LIB build/util-linux-2.29.2/.libs/libuuid.so.1
2022-02-25 16:57:55+01:00 INSTALL-LIB build/util-linux-2.29.2/.libs/libblkid.so.1
2022-02-25 16:57:55+01:00 INSTALL-LIB build/zlib-1.2.11/libz.so.1
2022-02-25 16:57:55+01:00 INSTALL boards/x230-maximized/x230-maximized.config
2022-02-25 16:57:55+01:00 HASH 3b99caa996f1c44b693cc938e9cee0a157adbc55 clean x230-maximized
2022-02-25 16:57:55+01:00 CPIO      build/x230-maximized/tools.cpio
2022-02-25 16:57:55+01:00 UNCHANGED build/x230-maximized/tools.cpio
3979157f7d201d43660328ac6826bf988dd5f8cba9929eeee67c2cba639ae98d  /root/heads/build/x230-maximized/tools.cpio
2022-02-25 16:57:55+01:00 HASHES    build/x230-maximized/tools.cpio
2022-02-25 16:57:56+01:00 CPIO      build/x230-maximized/heads.cpio
2022-02-25 16:57:56+01:00 UNCHANGED build/x230-maximized/heads.cpio
a42675ab5f238fe99deb056c33aa608c3a498d99df792623970e499e555e25f5  /root/heads/build/x230-maximized/heads.cpio
2022-02-25 16:57:56+01:00 HASHES    build/x230-maximized/heads.cpio
2022-02-25 16:57:56+01:00 MAKE coreboot
tail /root/heads/build/log/coreboot.log
-----
make -C "/root/heads/build/coreboot-4.13/x230-maximized" -C /root/heads/build/coreboot-4.13 obj=/root/heads/build/coreboot-4.13/x230-maximized CROSS=/root/heads/crossgcc/bin/i386-linux-musl- IASL=/root/heads/build/coreboot-4.13/util/crossgcc/xgcc/bin/iasl DOTCONFIG=/root/heads/build/coreboot-4.13/x230-maximized/.config BUILD_TIMELESS=1 CFLAGS_x86_32=-fdebug-prefix-map=/root/heads=heads -gno-record-gcc-switches -Wno-error=packed-not-aligned CFLAGS_x86_64=-fdebug-prefix-map=/root/heads=heads -gno-record-gcc-switches -Wno-error=packed-not-aligned -j4 --max-load 16
make[1]: Verzeichnis „/root/heads/build/coreboot-4.13“ wird betreten
    OPTION     option_table.h
    GEN        generated/assembly.inc
    CREATE     x230-maximized/mainboard/lenovo/x230/cbfs-file.zFDVaK.out (from /root/heads/build/coreboot-4.13/x230-maximized/.config)
#
# configuration written to /root/heads/build/coreboot-4.13/x230-maximized/.config
#
make[1]: *** Keine Regel vorhanden, um das Ziel „../../blobs/xx30/me.bin“, 
  benötigt von „add_intel_firmware“, zu erstellen.  Schluss.
make[1]: *** Es wird auf noch nicht beendete Prozesse gewartet....
make[1]: Verzeichnis „/root/heads/build/coreboot-4.13“ wird verlassen
make: *** [Makefile:505: /root/heads/build/coreboot-4.13/x230-maximized/.build] Fehler 1
root@:~/heads# 

@ghost ghost changed the title Error 1, Coreboot.org Certificate not trusted Error 1 on Build Feb 25, 2022
@ghost
Copy link
Author

ghost commented Feb 26, 2022

I installed Debian 11 Bullseye.
apt-get update & upgraded everything. Installed all the required extra repositories.
Now I get Error 127.

2022-02-26 19:57:09+01:00 Wrong OS deployed make detected: 4.3. Building and using 4.2.1...
2022-02-26 19:57:09+01:00 Wrong OS deployed gawk detected: 5.1.0. Building and using 4.2.1...
2022-02-26 19:57:09+01:00 Local built HEADS_GAWK only if different then provided by OS: /root/heads/build/gawk-4.2.1/gawk
2022-02-26 19:57:09+01:00 Local built HEADS_MAKE only if different then provided by OS: /root/heads/build/make-4.2.1/make
2022-02-26 19:57:09+01:00 Heads build system will call make from now on as: MAKE: /root/heads/build/make-4.2.1/make.
Makefile:262: Warnung: Die Befehle für das Ziel „all“ werden überschrieben
Makefile:139: Warnung: Alte Befehle für das Ziel „all“ werden ignoriert
wget -O "/root/heads/packages/gawk-4.2.1.tar.xz.tmp" "http://gnu.mirror.constant.com/gawk/gawk-4.2.1.tar.xz"
--2022-02-26 19:57:09--  http://gnu.mirror.constant.com/gawk/gawk-4.2.1.tar.xz
Resolving gnu.mirror.constant.com (gnu.mirror.constant.com)... 2001:19f0:1595:1403::1096, 108.61.5.83
Connecting to gnu.mirror.constant.com (gnu.mirror.constant.com)|2001:19f0:1595:1403::1096|:80... failed: Connection timed out.
Connecting to gnu.mirror.constant.com (gnu.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2985412 (2.8M) [application/octet-stream]
Saving to: '/root/heads/packages/gawk-4.2.1.tar.xz.tmp'

/root/heads/packages/gawk- 100%[=====================================>]   2.85M  2.94MB/s    in 1.0s    

2022-02-26 19:59:21 (2.94 MB/s) - '/root/heads/packages/gawk-4.2.1.tar.xz.tmp' saved [2985412/2985412]

if ! echo "d1119785e746d46a8209d28b2de404a57f983aa48670f4e225531d3bdc175551  /root/heads/packages/gawk-4.2.1.tar.xz.tmp" | sha256sum --check -; then \
	exit 1 ; \
fi
/root/heads/packages/gawk-4.2.1.tar.xz.tmp: OK
mv "/root/heads/packages/gawk-4.2.1.tar.xz.tmp" "/root/heads/packages/gawk-4.2.1.tar.xz"
tar xf "/root/heads/packages/gawk-4.2.1.tar.xz" -C "/root/heads/build"
touch "/root/heads/build/gawk-4.2.1/.extract"
touch "/root/heads/build/gawk-4.2.1/.patch"
cd "/root/heads/build/gawk-4.2.1/" ; \
./configure 2>&1 \
| tee "/root/heads/build/log/gawk.configure.log" \
> /dev/null
touch "/root/heads/build/gawk-4.2.1/.configured"
/root/heads/build/make-4.2.1/make -C "/root/heads/build/gawk-4.2.1/" -j4 --max-load 16 \
	2>&1 \
	| tee "/root/heads/build/log/gawk.log" \
	> /dev/null
make: *** [Makefile:132: /root/heads/build/gawk-4.2.1/gawk] Fehler 127

System Clock is correct by the way.

I am at a loss. Does any one have an idea?

Thanks again!

@tlaurion
Copy link
Collaborator

@grawawa23
cat /root/heads/build/log/gawk.log

Shows more details?

@tlaurion
Copy link
Collaborator

apt update
apt install -y build-essential zlib1g-dev uuid-dev libdigest-sha-perl libelf-dev bc bzip2 bison flex git gnupg gawk iasl m4 nasm patch python python2 python3 wget gnat cpio ccache pkg-config cmake libusb-1.0-0-dev autoconf texinfo ncurses-dev doxygen graphviz udev libudev1 libudev-dev automake libtool rsync innoextract sudo
./blobs/xx30/download_clean_me.sh -m $(readlink -f ./blobs/xx30/me_cleaner.py)
make BOARD=x230-hotp-maximized V=1
Or
make BOARD=x230-maximized V=1

Depending of the board configuration you want to build

@ghost
Copy link
Author

ghost commented Feb 26, 2022

/root/heads/build/log/gawk.log shows:

/bin/bash: line 1: /root/heads/build/make-4.2.1/make: No such file or directory

Creating the directory hasn't helped, then it just says .... make: Is a directory

I ran the commands above, still no luck 😞

@tlaurion
Copy link
Collaborator

tlaurion commented Feb 26, 2022

Please rm ./packages/* and try again.

@ghost
Copy link
Author

ghost commented Feb 26, 2022

Please rm ./packages/* and try again.

Didn't work, sorry, still Error 127, gawk log is the same

@tlaurion
Copy link
Collaborator

tlaurion commented Feb 26, 2022

rm -rf ./build/* ./packages/* and try again?

@ghost
Copy link
Author

ghost commented Feb 26, 2022

rm -rf ./build/* ./packages/* and try again?

Nope same error I'm afraid, and same log info

@tlaurion
Copy link
Collaborator

tlaurion commented Feb 26, 2022

rm -rf ./build/* ./packages/*
make BOARD=x230-maximized bootststrap V=1

Seriously I'm confused here.

CircleCI is building bootstrap first separately, but all my local builds made from clean checkout worked on debian-11.

If that doesn't work I will have to retest Monday but what I extracted from CircleCI before is basically supposed to work on a clean checkout from master:

apt update
apt install -y build-essential zlib1g-dev uuid-dev libdigest-sha-perl libelf-dev bc bzip2 bison flex git gnupg gawk iasl m4 nasm patch python python2 python3 wget gnat cpio ccache pkg-config cmake libusb-1.0-0-dev autoconf texinfo ncurses-dev doxygen graphviz udev libudev1 libudev-dev automake libtool rsync innoextract sudo
./blobs/xx30/download_clean_me.sh -m $(readlink -f ./blobs/xx30/me_cleaner.py)
make BOARD=x230-hotp-maximized V=1
Or
make BOARD=x230-maximized V=1

@tlaurion
Copy link
Collaborator

Seems like bootstrap is currently needed.

Will fix that.

For now make BOARD=x230-maximized bootstrap prior of calling make BOARD=x230-maximized will fix this.

Trace:

user@heads-x230-clean:~$ rm -rf heads
user@heads-x230-clean:~$ git clone https://github.com/osresearch/heads
Cloning into 'heads'...
remote: Enumerating objects: 8447, done.
remote: Counting objects: 100% (195/195), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 8447 (delta 96), reused 159 (delta 85), pack-reused 8252
Receiving objects: 100% (8447/8447), 3.24 MiB | 239.00 KiB/s, done.
Resolving deltas: 100% (5565/5565), done.
user@heads-x230-clean:~$ cd heads
user@heads-x230-clean:~/heads$ grep apt .circleci/config.yml 
            apt update
            apt install -y build-essential zlib1g-dev uuid-dev libdigest-sha-perl libelf-dev bc bzip2 bison flex git gnupg gawk iasl m4 nasm patch python python2 python3 wget gnat cpio ccache pkg-config cmake libusb-1.0-0-dev autoconf texinfo ncurses-dev doxygen graphviz udev libudev1 libudev-dev automake libtool rsync innoextract sudo
            apt update
            apt install -y build-essential zlib1g-dev uuid-dev libdigest-sha-perl libelf-dev bc bzip2 bison flex git gnupg gawk iasl m4 nasm patch python python2 python3 wget gnat cpio ccache pkg-config cmake libusb-1.0-0-dev autoconf texinfo ncurses-dev doxygen graphviz udev libudev1 libudev-dev automake libtool rsync innoextract sudo
user@heads-x230-clean:~/heads$ sudo apt update
Hit:1 https://deb.debian.org/debian bullseye InRelease                
Get:2 https://deb.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Hit:3 https://deb.qubes-os.org/r4.0/vm bullseye InRelease 
Get:4 https://deb.debian.org/debian-security bullseye-security/main amd64 Packages [121 kB]
Get:5 https://deb.debian.org/debian-security bullseye-security/main Translation-en [77.8 kB]
Fetched 243 kB in 2s (109 kB/s)      
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
9 packages can be upgraded. Run 'apt list --upgradable' to see them.
user@heads-x230-clean:~/heads$ sudo apt install -y build-essential zlib1g-dev uuid-dev libdigest-sha-perl libelf-dev bc bzip2 bison flex git gnupg gawk iasl m4 nasm patch python python2 python3 wget gnat cpio ccache pkg-config cmake libusb-1.0-0-dev autoconf texinfo ncurses-dev doxygen graphviz udev libudev1 libudev-dev automake libtool rsync innoextract sudo
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'acpica-tools' instead of 'iasl'
Note, selecting 'python-is-python2' instead of 'python'
Note, selecting 'libncurses-dev' instead of 'ncurses-dev'
acpica-tools is already the newest version (20200925-1.2).
autoconf is already the newest version (2.69-14).
automake is already the newest version (1:1.16.3-2).
bc is already the newest version (1.07.1-2+b2).
bison is already the newest version (2:3.7.5+dfsg-1).
build-essential is already the newest version (12.9).
bzip2 is already the newest version (1.0.8-4).
ccache is already the newest version (4.2-1).
cmake is already the newest version (3.18.4-2+deb11u1).
cpio is already the newest version (2.13+dfsg-4).
doxygen is already the newest version (1.9.1-1).
libelf-dev is already the newest version (0.183-1).
flex is already the newest version (2.6.4-8).
gawk is already the newest version (1:5.1.0-1).
gawk set to manually installed.
git is already the newest version (1:2.30.2-1).
gnat is already the newest version (10.1).
gnupg is already the newest version (2.2.27-2).
graphviz is already the newest version (2.42.2-5).
innoextract is already the newest version (1.8-1.2+b1).
libdigest-sha-perl is already the newest version (6.02-1+b3).
libtool is already the newest version (2.4.6-15).
libusb-1.0-0-dev is already the newest version (2:1.0.24-3).
m4 is already the newest version (1.4.18-5).
nasm is already the newest version (2.15.05-1).
libncurses-dev is already the newest version (6.2+20201114-2).
patch is already the newest version (2.7.6-7).
pkg-config is already the newest version (0.29.2-1).
python2 is already the newest version (2.7.18-3).
python3 is already the newest version (3.9.2-3).
rsync is already the newest version (3.2.3-4+deb11u1).
sudo is already the newest version (1.9.5p2-3).
libudev-dev is already the newest version (247.3-6).
libudev1 is already the newest version (247.3-6).
udev is already the newest version (247.3-6).
texinfo is already the newest version (6.7.0.dfsg.2-6).
wget is already the newest version (1.21-1+deb11u1).
python-is-python2 is already the newest version (2.7.18-9).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2).
uuid-dev is already the newest version (2.36.1-8+deb11u1).
The following packages were automatically installed and are no longer required:
  linux-headers-5.10.0-8-amd64 linux-headers-5.10.0-8-common linux-headers-5.10.0-9-amd64 linux-headers-5.10.0-9-common linux-image-5.10.0-8-amd64
  linux-image-5.10.0-9-amd64
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
user@heads-x230-clean:~/heads$ grep blobs .circleci/config.yml 
            ./blobs/xx20/download_parse_me.sh
          # me_cleaner.py present under heads xx30 blobs dir comes from https://github.com/corna/me_cleaner/blob/43612a630c79f3bc6f2653bfe90dfe0b7b137e08/me_cleaner.py
            ./blobs/xx30/download_clean_me.sh -m $(readlink -f ./blobs/xx30/me_cleaner.py)
            ./blobs/xx30/vbios_t530.sh
            ./blobs/xx30/vbios_w530.sh
user@heads-x230-clean:~/heads$ ./blobs/xx30/download_clean_me.sh -m $(readlink -f ./blobs/xx30/me_cleaner.py)
### Creating temp dir
### Downloading https://download.lenovo.com/pccbbs/mobiles/g1rg24ww.exe...
--2022-02-26 17:04:32--  https://download.lenovo.com/pccbbs/mobiles/g1rg24ww.exe
Resolving download.lenovo.com (download.lenovo.com)... 104.91.102.41
Connecting to download.lenovo.com (download.lenovo.com)|104.91.102.41|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4626016 (4.4M) [application/octet-stream]
Saving to: ‘g1rg24ww.exe’

g1rg24ww.exe                          100%[=======================================================================>]   4.41M  1.02MB/s    in 4.8s    

2022-02-26 17:04:38 (933 KB/s) - ‘g1rg24ww.exe’ saved [4626016/4626016]

### Verifying expected hash of g1rg24ww.exe
g1rg24ww.exe: OK
### Extracting g1rg24ww.exe...
Extracting "Intel Management Engine 8.1 Firmware for Windows 7/8/8.1" - setup data version 5.4.2
 - "app/FwDetect.exe"
 - "app/FwUpdate.exe"
 - "app/FWUpdLcl.exe"
 - "app/FWUpdLcl64.exe"
 - "app/Idrvdll.dll"
 - "app/ME8_5M_Production.bin"
 - "app/MEInfoWin.exe"
 - "app/MEUpdate.CMD"
 - "app/Pmxdll.dll"
 - "app/SLA_TOOLS.pdf"
Done.
### Verifying expected hash of app/ME8_5M_Production.bin
app/ME8_5M_Production.bin: OK
###Applying me_cleaner to neuter+deactivate+maximize reduction of ME on , outputting minimized ME under /home/user/heads/blobs/xx30/me.bin... 
ME/TXE image detected
Found FPT header at 0x10
Found 23 partition(s)
Found FTPR header: FTPR partition spans from 0x180000 to 0x24a000
ME/TXE firmware version 8.1.72.3002 (generation 2)
Public key match: Intel ME, firmware versions 7.x.x.x, 8.x.x.x
Reading partitions list...
 ???? (0x000003c0 - 0x000000400, 0x00000040 total bytes): removed
 FOVD (0x00000400 - 0x000001000, 0x00000c00 total bytes): removed
 MDES (0x00001000 - 0x000002000, 0x00001000 total bytes): removed
 FCRS (0x00002000 - 0x000003000, 0x00001000 total bytes): removed
 EFFS (0x00003000 - 0x0000df000, 0x000dc000 total bytes): removed
 BIAL (NVRAM partition, no data, 0x0000add0 total bytes): nothing to remove
 BIEL (NVRAM partition, no data, 0x00003000 total bytes): nothing to remove
 BIIS (NVRAM partition, no data, 0x00036000 total bytes): nothing to remove
 NVCL (NVRAM partition, no data, 0x00010511 total bytes): nothing to remove
 NVCM (NVRAM partition, no data, 0x0000493f total bytes): nothing to remove
 NVCP (NVRAM partition, no data, 0x0000a553 total bytes): nothing to remove
 NVJC (NVRAM partition, no data, 0x00004000 total bytes): nothing to remove
 NVKR (NVRAM partition, no data, 0x0001257d total bytes): nothing to remove
 NVOS (NVRAM partition, no data, 0x00034af7 total bytes): nothing to remove
 NVSH (NVRAM partition, no data, 0x00007609 total bytes): nothing to remove
 NVTD (NVRAM partition, no data, 0x00001eac total bytes): nothing to remove
 PLDM (NVRAM partition, no data, 0x0000a000 total bytes): nothing to remove
 GLUT (0x000df000 - 0x0000e3000, 0x00004000 total bytes): removed
 LOCL (0x000e3000 - 0x0000e7000, 0x00004000 total bytes): removed
 WCOD (0x000e7000 - 0x000140000, 0x00059000 total bytes): removed
 MDMV (0x00140000 - 0x000180000, 0x00040000 total bytes): removed
 FTPR (0x00180000 - 0x00024a000, 0x000ca000 total bytes): NOT removed
 NFTP (0x0024a000 - 0x0004a4000, 0x0025a000 total bytes): removed
Removing partition entries in FPT...
Removing EFFS presence flag...
Correcting checksum (0xed)...
Reading FTPR modules list...
 UPDATE           (LZMA   , 0x1cc508 - 0x1cc6c6       ): removed
 ROMP             (Huffman, fragmented data, ~2 KiB   ): NOT removed, essential
 BUP              (Huffman, fragmented data, ~56 KiB  ): NOT removed, essential
 KERNEL           (Huffman, fragmented data, ~135 KiB ): removed
 POLICY           (Huffman, fragmented data, ~91 KiB  ): removed
 HOSTCOMM         (LZMA   , 0x1cc6c6 - 0x1d343f       ): removed
 RSA              (LZMA   , 0x1d343f - 0x1d872a       ): removed
 CLS              (LZMA   , 0x1d872a - 0x1ddec0       ): removed
 TDT              (LZMA   , 0x1ddec0 - 0x1e45be       ): removed
 FTCS             (Huffman, fragmented data, ~18 KiB  ): removed
 ClsPriv          (LZMA   , 0x1e45be - 0x1e499f       ): removed
 SESSMGR          (LZMA   , 0x1e499f - 0x1f32cb       ): removed
Relocating FTPR from 0x180000 - 0x24a000 to 0xd00 - 0xcad00...
 Adjusting FPT entry...
 Adjusting LUT start offset...
 Adjusting Huffman start offset...
 Adjusting chunks offsets...
 Moving data...
The ME minimum size should be 98304 bytes (0x18000 bytes)
Truncating file at 0x18000...
Checking the FTPR RSA signature... VALID
Done! Good luck!
### Verifying expected hash of me.bin
/home/user/heads/blobs/xx30/me.bin: OK
###Cleaning up...
/home/user/heads
user@heads-x230-clean:~/heads$ make BOARD=x230-maximized V=1
2022-02-26 17:04:47-05:00 Wrong OS deployed make detected: 4.3. Building and using 4.2.1...
2022-02-26 17:04:47-05:00 Wrong OS deployed gawk detected: 5.1.0. Building and using 4.2.1...
2022-02-26 17:04:47-05:00 Local built HEADS_GAWK only if different then provided by OS: /home/user/heads/build/gawk-4.2.1/gawk
2022-02-26 17:04:47-05:00 Local built HEADS_MAKE only if different then provided by OS: /home/user/heads/build/make-4.2.1/make
2022-02-26 17:04:47-05:00 Heads build system will call make from now on as: MAKE: /home/user/heads/build/make-4.2.1/make.
Makefile:262: warning: overriding recipe for target 'all'
Makefile:139: warning: ignoring old recipe for target 'all'
wget -O "/home/user/heads/packages/gawk-4.2.1.tar.xz.tmp" "http://gnu.mirror.constant.com/gawk/gawk-4.2.1.tar.xz"
--2022-02-26 17:04:47--  http://gnu.mirror.constant.com/gawk/gawk-4.2.1.tar.xz
Resolving gnu.mirror.constant.com (gnu.mirror.constant.com)... 108.61.5.83, 2001:19f0:1595:1403::1096
Connecting to gnu.mirror.constant.com (gnu.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2985412 (2.8M) [application/octet-stream]
Saving to: '/home/user/heads/packages/gawk-4.2.1.tar.xz.tmp'

/home/user/heads/packages/gawk-4.2.1. 100%[=======================================================================>]   2.85M   783KB/s    in 4.4s    

2022-02-26 17:04:52 (664 KB/s) - '/home/user/heads/packages/gawk-4.2.1.tar.xz.tmp' saved [2985412/2985412]

if ! echo "d1119785e746d46a8209d28b2de404a57f983aa48670f4e225531d3bdc175551  /home/user/heads/packages/gawk-4.2.1.tar.xz.tmp" | sha256sum --check -; then \
	exit 1 ; \
fi
/home/user/heads/packages/gawk-4.2.1.tar.xz.tmp: OK
mv "/home/user/heads/packages/gawk-4.2.1.tar.xz.tmp" "/home/user/heads/packages/gawk-4.2.1.tar.xz"
tar xf "/home/user/heads/packages/gawk-4.2.1.tar.xz" -C "/home/user/heads/build"
touch "/home/user/heads/build/gawk-4.2.1/.extract"
touch "/home/user/heads/build/gawk-4.2.1/.patch"
cd "/home/user/heads/build/gawk-4.2.1/" ; \
./configure 2>&1 \
| tee "/home/user/heads/build/log/gawk.configure.log" \

checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for egrep... (cached) /usr/bin/grep -E
checking for bison... bison -y
checking whether ln -s works... yes
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking whether make sets $(MAKE)... (cached) yes
checking for special development options... no
checking for z/OS USS compilation... no
checking for library containing strerror... none required
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking if we are using EBCDIC... no
checking for a sed that does not truncate output... /usr/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking mcheck.h usability... yes
checking mcheck.h presence... yes
checking for mcheck.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for ANSI C header files... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking for memory.h... (cached) yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for unsigned long long int... yes
checking for long long int... yes
checking for unsigned long long int... (cached) yes
checking for intmax_t... yes
checking for uintmax_t... yes
checking for ssize_t... yes
checking size of unsigned int... 4
checking size of unsigned long... 8
checking for socklen_t... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for getaddrinfo... yes
checking for library containing fmod... -lm
checking for library containing isinf... none required
checking for library containing ismod... no
checking for libsigsegv... no, consider installing GNU libsigsegv
checking for __etoa_l... no
checking for atexit... yes
checking for btowc... yes
checking for fmod... yes
checking for gai_strerror... yes
checking for getgrent... yes
checking for getgroups... yes
checking for grantpt... yes
checking for fwrite_unlocked... yes
checking for isascii... yes
checking for iswctype... yes
checking for iswlower... yes
checking for iswupper... yes
checking for mbrlen... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memcpy_ulong... no
checking for memmove... yes
checking for memset... yes
checking for memset_ulong... no
checking for mkstemp... yes
checking for posix_openpt... yes
checking for setenv... yes
checking for setlocale... yes
checking for setsid... yes
checking for sigprocmask... yes
checking for snprintf... yes
checking for strchr... yes
checking for strerror... yes
checking for strftime... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strcoll... yes
checking for strtod... yes
checking for strtoul... yes
checking for system... yes
checking for tmpfile... yes
checking for towlower... yes
checking for towupper... yes
checking for tzset... yes
checking for usleep... yes
checking for waitpid... yes
checking for wcrtomb... yes
checking for wcscoll... yes
checking for wctype... yes
checking whether mbrtowc and mbstate_t are properly declared... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for library containing dlopen... -ldl
checking whether getpgrp requires zero arguments... yes
checking for printf %F format... yes
checking for gethostbyname... yes
checking for connect... yes
checking where to find the socket library calls... the standard library
checking whether readline via "-lreadline" is present and sane... no
checking whether readline via "-lreadline -ltermcap" is present and sane... no
checking whether readline via "-lreadline -lcurses" is present and sane... no
checking whether readline via "-lreadline -lncurses" is present and sane... no
checking whether mpfr via "-lmpfr -lgmp" is present and usable... no
checking for struct stat.st_blksize... yes
checking for struct passwd.pw_passwd... yes
checking for struct group.gr_passwd... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking whether char is unsigned... no
checking for an ANSI C-conforming const... yes
checking for C/C++ restrict keyword... __restrict
checking for inline... inline
checking for preprocessor stringizing operator... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating support/Makefile
config.status: creating awklib/Makefile
config.status: creating doc/Makefile
config.status: creating extras/Makefile
config.status: creating po/Makefile.in
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
=== configuring in extension (/home/user/heads/build/gawk-4.2.1/extension)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for z/OS USS compilation... no
checking for a sed that does not truncate output... /usr/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for struct stat.st_blksize... yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for special development options... no
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether time.h and sys/time.h may both be included... yes
checking whether mpfr via "-lmpfr -lgmp" is present and usable... no
checking for library containing fmod... -lm
checking for fdopendir... yes
checking for fmod... yes
checking for fnmatch... yes
checking for getdtablesize... yes
checking for gettimeofday... yes
checking for nanosleep... yes
checking for select... yes
checking for statvfs... yes
checking for GetSystemTimeAsFileTime... no
checking for dirfd... yes
checking whether dirfd is declared... yes
checking whether dirfd is a macro... no
checking how to get the file descriptor associated with an open DIR*... no_such_member
checking for inline... inline
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: executing libtool commands
touch "/home/user/heads/build/gawk-4.2.1/.configured"
/home/user/heads/build/make-4.2.1/make -C "/home/user/heads/build/gawk-4.2.1/" -j2 --max-load 16 \
	2>&1 \
	| tee "/home/user/heads/build/log/gawk.log" \
	
/bin/bash: line 1: /home/user/heads/build/make-4.2.1/make: No such file or directory
make: *** [Makefile:132: /home/user/heads/build/gawk-4.2.1/gawk] Error 127
user@heads-x230-clean:~/heads$ make BOARD=x230-maximized bootstrap
2022-02-26 17:05:23-05:00 Wrong OS deployed make detected: 4.3. Building and using 4.2.1...
2022-02-26 17:05:23-05:00 Wrong OS deployed gawk detected: 5.1.0. Building and using 4.2.1...
2022-02-26 17:05:23-05:00 Local built HEADS_GAWK only if different then provided by OS: /home/user/heads/build/gawk-4.2.1/gawk
2022-02-26 17:05:23-05:00 Local built HEADS_MAKE only if different then provided by OS: /home/user/heads/build/make-4.2.1/make
2022-02-26 17:05:23-05:00 Heads build system will call make from now on as: MAKE: /home/user/heads/build/make-4.2.1/make.
Makefile:262: warning: overriding recipe for target 'all'
Makefile:139: warning: ignoring old recipe for target 'all'
wget -O "/home/user/heads/packages/make-4.2.1.tar.bz2.tmp" "http://gnu.mirror.constant.com/make/make-4.2.1.tar.bz2"
--2022-02-26 17:05:23--  http://gnu.mirror.constant.com/make/make-4.2.1.tar.bz2
Resolving gnu.mirror.constant.com (gnu.mirror.constant.com)... 108.61.5.83, 2001:19f0:1595:1403::1096
Connecting to gnu.mirror.constant.com (gnu.mirror.constant.com)|108.61.5.83|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1407126 (1.3M) [application/octet-stream]
Saving to: '/home/user/heads/packages/make-4.2.1.tar.bz2.tmp'

/home/user/heads/packages/make-4.2.1. 100%[=======================================================================>]   1.34M  1.14MB/s    in 1.2s    

2022-02-26 17:05:25 (1.14 MB/s) - '/home/user/heads/packages/make-4.2.1.tar.bz2.tmp' saved [1407126/1407126]

if ! echo "d6e262bf3601b42d2b1e4ef8310029e1dcf20083c5446b4b7aa67081fdffc589  /home/user/heads/packages/make-4.2.1.tar.bz2.tmp" | sha256sum --check -; then \
	exit 1 ; \
fi
/home/user/heads/packages/make-4.2.1.tar.bz2.tmp: OK
mv "/home/user/heads/packages/make-4.2.1.tar.bz2.tmp" "/home/user/heads/packages/make-4.2.1.tar.bz2"
tar xf "/home/user/heads/packages/make-4.2.1.tar.bz2" -C "/home/user/heads/build"
touch "/home/user/heads/build/make-4.2.1/.extract"
( cd "/home/user/heads/build/make-4.2.1/" ; patch -p1 ) < "patches/make-4.2.1.patch"
patching file glob/glob.c
Hunk #1 succeeded at 208 with fuzz 2.
touch "/home/user/heads/build/make-4.2.1/.patch"
cd "/home/user/heads/build/make-4.2.1/" ; \
./configure 2>&1 \
| tee "/home/user/heads/build/log/make.configure.log" \
> /dev/null
touch "/home/user/heads/build/make-4.2.1/.configured"
make -C "/home/user/heads/build/make-4.2.1/" -j2 --max-load 16 \
	2>&1 \
	| tee "/home/user/heads/build/log/make.log" \
	> /dev/null
/home/user/heads/build/make-4.2.1/make -C "/home/user/heads/build/gawk-4.2.1/" -j2 --max-load 16 \
	2>&1 \
	| tee "/home/user/heads/build/log/gawk.log" \
	> /dev/null
user@heads-x230-clean:~/heads$ make BOARD=x230-maximized V=1
2022-02-26 17:06:03-05:00 Wrong OS deployed make detected: 4.3. Building and using 4.2.1...
2022-02-26 17:06:03-05:00 Wrong OS deployed gawk detected: 5.1.0. Building and using 4.2.1...
2022-02-26 17:06:03-05:00 Local built HEADS_GAWK only if different then provided by OS: /home/user/heads/build/gawk-4.2.1/gawk
2022-02-26 17:06:03-05:00 Local built HEADS_MAKE only if different then provided by OS: /home/user/heads/build/make-4.2.1/make
2022-02-26 17:06:03-05:00 Heads build system will call make from now on as: MAKE: /home/user/heads/build/make-4.2.1/make.
Makefile:262: warning: overriding recipe for target 'all'
Makefile:139: warning: ignoring old recipe for target 'all'
2022-02-26 17:06:03-05:00 WGET https://www.coreboot.org/releases/coreboot-blobs-4.13.tar.xz
if ! wget -O "/home/user/heads/packages/coreboot-blobs-4.13.tar.xz.tmp" https://www.coreboot.org/releases/coreboot-blobs-4.13.tar.xz ; then exit 1 ; fi ; mv "/home/user/heads/packages/coreboot-blobs-4.13.tar.xz.tmp" "/home/user/heads/packages/coreboot-blobs-4.13.tar.xz" 
--2022-02-26 17:06:03--  https://www.coreboot.org/releases/coreboot-blobs-4.13.tar.xz
Resolving www.coreboot.org (www.coreboot.org)... 78.46.105.101, 2a01:4f8:121:1254::2
Connecting to www.coreboot.org (www.coreboot.org)|78.46.105.101|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38318160 (37M) [application/octet-stream]
Saving to: '/home/user/heads/packages/coreboot-blobs-4.13.tar.xz.tmp'

ads/packages/coreboot-blobs-4.13.tar.   8%[=====>                                                                  ]   3.23M   270KB/s    eta 89s    ^Cmake: *** [Makefile:505: /home/user/heads/packages/coreboot-blobs-4.13.tar.xz] Interrupt

@ghost
Copy link
Author

ghost commented Feb 26, 2022

It worked! Thank you so much, without your help i'd never figured it out!
Thanks!!

@ghost ghost closed this as completed Feb 26, 2022
@tlaurion tlaurion changed the title Error 1 on Build Error 1 and Error 127 on Build (make bootstrap needed prior of building anything else) Mar 2, 2022
tlaurion added a commit to tlaurion/heads that referenced this issue Mar 2, 2022
…and gawk are not found in expected 4.2.1 versions.

This will be the case on debian-11 and other newer OSes.

Fixes a bug where "make BOARD=xyz bootstrap" was needed prior of being able to build anything else otherwise HEADS_GAWK was expecting HEADS_MAKE to be built already, which was not the case.
(fixes linuxboot#1126)
As of now, I do not see any OS make/gawk being used anymore.
All modules except coreboot (which uses coreboot buildstack), including musl-cross-make, are being built with local make and local gawk.
Improves linuxboot#936 (comment) which showed that local make (/usb/bin/make, /usr/local/bin/make, /usr/sbin/make, /usr/local/sbin/make and /usr/bin/gawk were called locally. To redo)
tlaurion added a commit to tlaurion/heads that referenced this issue Mar 2, 2022
…gawk locally built in expected 4.2.1 versions.

This applies to debian-11 and other newer OSes.

Fixes a bug where "make BOARD=xyz bootstrap" was needed prior of being able to build anything else otherwise HEADS_GAWK was expecting HEADS_MAKE to be built already, which was not the case.
(fixes linuxboot#1126)

As of now, I do not see any OS make/gawk being used anymore.
All modules except coreboot (which uses coreboot buildstack), including musl-cross-make, are being built with local make and local gawk.
Improves linuxboot#936 (comment) which showed that local make (/usb/bin/make, /usr/local/bin/make, /usr/sbin/make, /usr/local/sbin/make and /usr/bin/gawk were called locally. To redo)
tlaurion added a commit to tlaurion/heads that referenced this issue Mar 4, 2022
…pected version.

Maximized boards: have rom hashes outputted under hashes.txt. Still not clear why the Makefile "all" target is not doing that for each target.

- Fixes a bug where "make BOARD=xyz bootstrap" was needed prior of being able to build anything else otherwise HEADS_GAWK was expecting HEADS_MAKE to be built already, which was not the case.
(fixes linuxboot#1126)

- As of now, I do not see any OS make/gawk being used anymore. All modules except coreboot (which uses coreboot buildstack), including musl-cross-make, are being built with local make and local gawk.
Improves linuxboot#936 (comment) which showed that local make (/usb/bin/make, /usr/local/bin/make, /usr/sbin/make, /usr/local/sbin/make and /usr/bin/gawk were called locally. To redo)
This issue was closed.
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

Successfully merging a pull request may close this issue.

1 participant