Nitrokey / heads

A minimal Linux that runs as a coreboot or LinuxBoot ROM payload to provide a secure, flexible boot environment for laptops and servers.
http://osresearch.net/
GNU General Public License v2.0
15 stars 1 forks source link

Reproducably cant build. #6

Closed Discordia42 closed 3 years ago

Discordia42 commented 3 years ago

Just got my nitrokey pro and wanted to update my coreboot to your version but i haven't been able to build yet. getting /usr/bin/ld: obj/aslcompilerparse.o:(.bss+0x8): multiple definition ofAslCompilerlval'; obj/aslcompilerlex.o:(.bss+0x0): first defined here
/usr/bin/ld: obj/prparserlex.o:(.bss+0x0): multiple definition of LexBuffer'; obj/dtparserlex.o:(.bss+0x0): first defined here collect2: error: ld returned 1 exit status make[1]: *** [../Makefile.rules:15: obj/iasl] Error 1 make[1]: Leaving directory '/home/eris/Documents/builds/purism-heads/build/coreboot-4.8.1/util/crossgcc/acpica-unix2-20180531/generate/unix/iasl' make: *** [Makefile.common:7: iasl] Error 2 cp: cannot stat 'bin/iasl': No such file or directory remember also getting this previously but this is the first time it also happened to me on the recommended build system(an ubuntu VM).

szszszsz commented 3 years ago

Hi! Which version you are building? Please provide commit hash.

cc @daringer - you have Dockerfile based build somewhere, don't you?

szszszsz commented 3 years ago

This one worked for me for 8dc5b7616aec2586c4a3bd59ac8cfca1cfa01e91 some time ago. In general I would use Docker/Podman to separate build from the system, and run commands from the CI - see .gitlab-ci.yml.

$ cat Dockerfile
from fedora:30
run dnf install -y @development-tools gcc-c++ gcc-gnat zlib-devel perl-Digest-MD5 perl-Digest-SHA uuid-devel pcsc-tools ncurses-devel lbzip2 libuuid-devel lzma elfutils-libelf-devel bc bzip2 bison flex git gnupg iasl m4 nasm patch python wget libusb-devel cmake automake pv bsdiff autoconf libtool cpio texinfo
daringer commented 3 years ago

for building heads you can try building with: https://github.com/daringer/heads-builder

makes life easier, especially if you (for some reason) need multiple head builds next to each other ....

Discordia42 commented 3 years ago

Thanks the build docker works.