OPNsense Forum

English Forums => Development and Code Review => Topic started by: GeorgePatches on September 16, 2022, 02:43:41 am

Title: Questions on building code
Post by: GeorgePatches on September 16, 2022, 02:43:41 am
Hello all, so I'd like to work on getting the code to build for the Pi4.  I'm very new to building code from source, but I'm very handy with VMs and had a 13.1 VM spun up in no time.  I'm following the instructions on the github on https://github.com/opnsense/tools/blob/master/README.md (https://github.com/opnsense/tools/blob/master/README.md).  I'm trying to build an AMD64 image to confirm everything works before I try the crosscompiling the pi will require. I have no issues following the instructions to setup the build environment, but when I try "make dvd" it runs for a while before it errors out saying my pkg version is 1.18 when it expected 1.17.  I have no idea where it's logging the build to, so I have no idea where in the build process things are even failing.  Can someone give me a little guidance on where the make command is logging it's progress to, or if that's something I need to enable?  Thanks.
Title: Re: Questions on building code
Post by: GeorgePatches on September 16, 2022, 03:10:55 am
Dug a little harder on this and tried pushing the stdout to a file.  It seems to be completing the base and kernel steps, and then blowing up on the ports step.  The log directories seem to be empty, no idea why.
Title: Re: Questions on building code
Post by: GeorgePatches on September 17, 2022, 10:56:25 pm
Anyone know how to correct the pkg version error I’m getting?
Title: Re: Questions on building code
Post by: mimugmail on September 17, 2022, 11:05:20 pm
You need to downgrade to 1.17 via /usr/ports, there are couple of closed issues like this in Tools repo