OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: ajee on February 28, 2017, 04:18:45 pm

Title: [SOLVED] Can't get 17.1 compiled
Post by: ajee on February 28, 2017, 04:18:45 pm
Hi,

I just follow the instruction as the opnsense git said:

# pkg install git
# cd /usr
# rm -rf src ports
# git clone https://github.com/opnsense/plugins
# git clone https://github.com/opnsense/ports
# git clone https://github.com/opnsense/tools
# git clone https://github.com/opnsense/core
# git clone https://github.com/opnsense/src
# cd tools
# make cdrom

All these done on a newly installed FreeBSD 11.0. At the beginning I got some error like:
>>> Running build step: base
>>> /usr/src does not match expected branch: stable/17.1
>>> To continue anyway set SRCBRANCH=master
*** Error code 1

After I do on each directory by "git checkout stable/17.1" it can go on but finally failed at:

Installing gettext-tools-0.19.8.1...
`-- Installing gettext-runtime-0.19.8.1_1...
`-- Extracting gettext-runtime-0.19.8.1_1: 100%
Extracting gettext-tools-0.19.8.1: 100%
>>> Locking packages in /usr/obj/usr/tools/config/17.1/OpenSSL:amd64: -a
>>> Setting up /usr/core copy in /usr/obj/usr/tools/config/17.1/OpenSSL:amd64
fatal: ambiguous argument '17.1.2': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
*** Error code 128

I wonder why only me to ask this building problem, is there anything doing wrong? The full log as attached, please help to troubleshoot what happens.
Thanks
Title: Re: Can't get 17.1 compiled
Post by: franco on February 28, 2017, 06:49:56 pm
Hi ajee,

Sorry, forgot to push the core.git tag for 17.1.2.

# cd /usr/tools
# make update-core


Cheers,
Franco
Title: Re: Can't get 17.1 compiled
Post by: ajee on March 01, 2017, 01:29:49 am
Great, it works, finally I got the image  :D
Title: Re: [SOLVED] Can't get 17.1 compiled
Post by: franco on March 01, 2017, 12:35:38 pm
Yay. 8)
Title: Re: [SOLVED] Can't get 17.1 compiled
Post by: bobbis on July 10, 2017, 10:40:07 pm
hi, i followed the instruction as written in the tools readme, and also did "make update-core" but still complains:

>>> Running build step: base
>>> /usr/src does not match expected branch: stable/17.1
>>> To continue anyway set SRCBRANCH=master
*** Error code 1

how can i fix that ?
uname -a
11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016

thanks
Title: Re: [SOLVED] Can't get 17.1 compiled
Post by: bobbis on July 10, 2017, 11:01:45 pm
ok.. reading in the forum here i found this:

cd /usr/src && git checkout stable/17.1
cd ../tools
make dvd

now its doing something ... ;)
Title: Re: [SOLVED] Can't get 17.1 compiled
Post by: franco on July 11, 2017, 05:24:51 pm
Hi Bobbis,

in that case...

# make update-src

;)


Cheers,
Franco