Re: Unable to build lang/dotnet for aarch64 in amd64 poudriere

From: Naram Qashat <njqashat_at_gmail.com>
Date: Thu, 06 Jun 2024 01:18:30 UTC
On 2024-06-05 16:35, Naram Qashat wrote:
> I wanted to build a copy of dotnet from lang/dotnet for my Raspberry Pi 
> 4 and I use poudriere on my amd64 machine to cross-compile aarch64 
> ports for the Pi. Both systems are currently running 13.2-RELEASE-p2. 
> But when I try to build lang/dotnet in poudriere this way, the build 
> fails. It twice gives the error of:
> 
> Failed to create CoreCLR, HRESULT: 0x8007FF06
> 
> I couldn't find a proper answer online for why this happens. I found a 
> close answer with a slightly different HRESULT that suggested having 
> allow.mlock in the jail configuration, but even adding that to my 
> global /etc/jail.conf doesn't solve the problem, so I think that mlock 
> isn't my issue.
> 
> The full build log is here: 
> https://poudriere.cyberbotx.com:8766/data/local_aarch64-default/2024-06-05_10h53m44s/logs/errors/dotnet-8.0.0.log

So, slight update, I think this is a qemu-user-static issue. I tried to 
build on the Pi itself and it actually proceeds to build. I know very 
little about how things work with using qemu-user-static to crossbuild 
arm64 on amd64, but this seems to be the culprit at least. I also don't 
know how to fix this so I can use poudriere to build dotnet for arm64 on 
an amd64 machine.