Compile failing

Status
Not open for further replies.

TJPeters

Cadet
Joined
Jan 3, 2018
Messages
6
Hi Folks,

Apologies if this is the incorrect sub forum, I was not sure if I should psot here or under development.

Anyway, for the hell of it, I thought I would try and compile FreeNAS, rather than use the ISO download.

Whilst I have almost got there, I have hit an issue during the compiling of the ports after the buildworld completes.

The issue occurs during the build of the Node-8.4.0. port, where the build is getting killed off as a runaway_process as no output was received for 7200 seconds. Please see attached log file for the Node build.

My build environment is.

Vmware 6.5
Root disk with 47.5 Gb
Swap file of 2.5Gb
Main Memory 64Gb
iSCSI mounted 300Gb drive for the build to run on.

The FreeBSD base system was built from FreeBSD-11.1-STABLE-amd64-20171213-r326821-disc1.iso
(I have also tried the 11.1 release version, but with that Node-8.4.0 failed, stating that the Kernel version of the OS was different to the JAIL.)

I have been following the instructions at ...
https://github.com/freenas/corral-build/wiki/FreeNAS-9.10---10-—-Setting-up-a-FreeNAS-build-environment
Where I am setting the profile to be FreeNAS for the various makes, which appears to match the current build profile on Github (https://github.com/freenas/build)

I am not a great with C or programming/compiling, but I do hate a mystery, so if anyone could point out what I have done wrong, or point out why the Node-8.4.0 port is not compiling, I would greatly appreciate it.

Thanks

Trev
 

Attachments

  • node-8.4.0.rar
    23.8 KB · Views: 258
Last edited by a moderator:
D

dlavigne

Guest
Those instructions are ancient and FreeNAS no longer uses node, but I see you got that link from https://github.com/freenas/build/. Please create a ticket at bugs.freenas.org asking that the instructions in the README at that location be updated.
 

TJPeters

Cadet
Joined
Jan 3, 2018
Messages
6
Hi DL,

For the instructions, it might be worth adding that the Initial Freebsd install should be done WITH the ports collections, otherwise you have to do a portsnap, to be able to do the "make -C /usr/ports/textproc/py-sphinx_numfig install clean" step.

I have finally got the build to complete, but not in one go. I found that the Node port is still being built, but also that it still fails during the "make release", as a runaway process.
However if I run another "make release" immediately afterwards, it completes fine, with 5 other ports which are skipped due to the original failure.
Now this could be unique to my build hardware, or maybe the number of poudriere parallel builds is overloading the system, but I don't see why as my build system meets the requirments

I plan to do another test at the weekend, as I am away for a few days, just to confirm.
But if you have any recommendations for then, I will include them and provide another update on my findings.

Trev
 

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
I have finally got the build to complete, but not in one go. I found that the Node port is still being built, but also that it still fails during the "make release", as a runaway process.
How much memory does the build machine have?
 

TJPeters

Cadet
Joined
Jan 3, 2018
Messages
6
It's a Vm on Esxi6.5 with
4 vcpu
64 Gb Ram
47.5 Gb disk
2.7 Gb swap
300Gb Iscsi remote drive for building on
 
Joined
Dec 22, 2017
Messages
13
I have just tried a build myself (to test the memory leak fix scheduled for 11.1-U1) but I ran into the same issue runaway issue. I only have 12G ram + the same amount of ram on that VM. Could that be the issue?
 

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
Joined
Dec 22, 2017
Messages
13
What I actually wanted to write was that I had 12GB RAM + 12GB SWAP dedicated to that VM but it failed. I thought that the swap would make up for the 4GB that I was short on RAM but that did not work out.
 
Last edited:
Joined
Dec 22, 2017
Messages
13
I went through the logs and found that the build broke b/c of some rxjs issue (seems similar to https://github.com/angular/angular-cli/issues/9190). That happened on the 11.1-stable branch.
I saw that the web-ui's deps have been updated on master, so I curiously tried to build master with the default freenas profile and that did indeed succeed.

While I'm happy that I was able to build it, I do not understand the version matrix here.
What branch of https://github.com/freenas/build am I'm supposed to build when I'd like to build 11.1 (stable), 11.1-U1 (next minor release) or the nightly?
 
Status
Not open for further replies.
Top