FreeNAS build from scratch fails on a FreeBSD 11.2 desktop platform

Status
Not open for further replies.
Joined
Aug 13, 2018
Messages
4
Hi ,

I have FreeBSD 11.2-RELEASE desktop platform setup and cloned the FreeNAS 11 and trying to following the process of "Building FreeNAS 11 from Scratch" from the https://github.com/freenas/build path
My FreeBSD setup has 8GB RAM.

On attempting to issue a "make release" the system stops responding after some time and sometimes the build throws an error as follows
Code:
oot@freebsdhost:/usr/build # make release
[0:00:00] ==> NOTICE: Selected profile: freenas
[0:00:00] ==> NOTICE: Build timestamp: 201809031115
[0:00:00] ==> Checking build environment...
[0:00:00] ==> Build environment is OK
[0:00:00] ==> Sandbox is fully checked out
Doing executing target release on host: freebsdhost
Build directory: /usr/build
[0:00:01] ==> Building world from /usr/build/freenas/_BE/os
[0:00:01] ==> Log file: /usr/build/freenas/_BE/objs/logs/buildworld
[2:34:16] ==> Failed command: env -u DEBUG -u MAKEFLAGS MAKEOBJDIRPREFIX=/usr/build/freenas/_BE/objs make -j 9 -C /usr/build/freenas/_BE/os __MAKE_CONF=/usr/build/freenas/_BE/objs/make-build.conf NOCLEAN=YES buildworld
[2:34:17] ==> Returned value: 2
[2:34:17] ==> ERROR: Build failed
*** Error code 1

Stop.
make[2]: stopped in /usr/build
*** Error code 1

Stop.
make[1]: stopped in /usr/build
*** Error code 1

Stop.
make: stopped in /usr/build
root@freebsdhost:/usr/build #

Note: Attached the buildworld log
 
Last edited by a moderator:
D

dlavigne

Guest
Why are you trying to build from scratch? What is your goal?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Also note:
  • You need a beefy workstation to build FreeNAS. I don't think 8 GB is enough for a vaguely pleasant experience, but @dlavigne should know more about that
  • 11.2 is still in Beta
 

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
That procedure worked the last time I tested it. Given the error, I would do make clean, then try again.
 

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
Note that the requirements say you need 16G of RAM. With only 8G, make sure there is at least 8G of swap space, and plan on it taking a long time.
 
Status
Not open for further replies.
Top