User:MarcusC/TalosOpBuild
Some notes on building talos-op-build
Required packages on gentoo
When building on gentoo, the following packages need to be installed:
dev-perl/XML-Simple dev-perl/XML-LibXML dev-util/cscope sys-libs/zlib[static-libs]
host-libopenssl-1.0.2m builds in 32-bit mode
If a compilation error complaining about the lack of <gnu/stubs-32.h> appears, this is because the libopenssl package is trying to compile in 32-bit mode and no 32-bit CRT is installed.
To fix, set the environment variable KERNEL_BITS to force a 64-bit build:
export KERNEL_BITS=64 rm -rf output/build/host-libopenssl-1.0.2m op-build
Broken hcode reference
The Makefile for the hcode package (openpower/package/hcode/hcode.mk) specifies 37069e1756e2b8e70e8e185d28609414033dbc02 as the version to checkout. However, no such commit exists in the git repo (https://scm.raptorcs.com/scm/git/talos-hcode). Current master is at e45e1293f43a534fc180133ec588733035cd2dc8. Maybe Raptor forgot to push something?
As a workaround, change the value of HCODE_VERSION in the Makefile from 37069e1756e2b8e70e8e185d28609414033dbc02 to e45e1293f43a534fc180133ec588733035cd2dc8.