Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Error - building from source
« previous
next »
Print
Pages: [
1
]
Author
Topic: Error - building from source (Read 3193 times)
broas27
Newbie
Posts: 3
Karma: 1
Error - building from source
«
on:
July 20, 2019, 01:14:04 pm »
Hi,
I wanted to try out a 1000hz kernel to go with the traffic shaper, to see if i could get rid of the 10ms spikes im currently seeing under full load, this is a 12mb/1mb adsl line shaped to 10mb/500kb.
On the step dvd after complaining that it failed to install a package : Failed to install the following 1 package(s): ./.pkg/All/opnsense-19.7.r1_9.txz
the build stops with the message: *** Error code 70
I followed the build steps on:
https://github.com/opnsense/tools/tree/master
This was on a fresh install of the FreeBSD-11.2-RELEASE-amd64-disc1.iso with 5G of ram and UFS on a 30GB hard disk on a proxmox vm (kvm)
I was building it with the line: options HZ=1000 added to: /usr/tools/config/19.7/SMP I tried it with the line commented out, and also tried building from a tagged version as suggested here:
https://forum.opnsense.org/index.php?
topic=5213.msg21241#msg21241 , but it still gave me the same message.
full log for make dvd :
https://pastebin.com/C7DfcA3v
full log for make dvd VERBOSE=1 :
https://pastebin.com/ERnW3BUD
«
Last Edit: July 20, 2019, 04:07:18 pm by broas27
»
Logged
broas27
Newbie
Posts: 3
Karma: 1
Re: Error - building from source
«
Reply #1 on:
July 22, 2019, 06:29:17 pm »
Does anyone have any suggestions as to how to solve this?
I'm just looking for some directions before i just start reading the entire compile script, I'm still new at this, but i would eventually figure it out...(i think
)
Any help is appreciated.
Thanks.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Error - building from source
«
Reply #2 on:
July 23, 2019, 08:35:00 am »
I think the latest version of FreeBSD's pkg breaks this... (1.11.x) I have to fix this when we move OPNsense over from 1.10.x. But I can't do this before 19.7.1 is out.
Cheers,
Franco
Logged
broas27
Newbie
Posts: 3
Karma: 1
Re: Error - building from source
«
Reply #3 on:
July 25, 2019, 02:40:50 pm »
Hi.
Thanks for the tip, downgrading pkg to 1.10.5 through its git repo did the trick.
Just as a reference to someone who might be trying the same thing, as i was looking for ways to verify that the kernel HZ were indeed set to 1000
I found that # getconf CLK_TCK always reports 128 regardless of the actual setting, and the proper way to verify it is with # sysctl kern.hz
Also it turns out that I didn't have to recompile the kernel (i got this assumption from linux) and all I had to do was to add the line kern.hz="###" in /boot/loader.conf
I found about the kern.hz variable here
https://lists.freebsd.org/pipermail/freebsd-questions/2011-August/232638.html
and about the loader.conf line here
https://lists.freebsd.org/pipermail/freebsd-questions/2009-September/205518.html
Again thx for the help, I will be posting the results of whether or not it made any difference in my setup when i get around to testing it.
P.s.: adding a line to the build instructions saying that pkg version 1.10.x is required, should prevent anyone else form stumbling on this issue for as long as it isn't fixed.
«
Last Edit: July 25, 2019, 02:54:52 pm by broas27
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Error - building from source