[SOLVED] Build error

Started by mohammed.sherif, May 24, 2015, 02:53:16 PM

Previous topic - Next topic
May 24, 2015, 02:53:16 PM Last Edit: June 15, 2015, 09:04:26 AM by franco
Hi,

I'm trying to build opnsense as per the instructions given here.

https://github.com/opnsense/tools

Initially I tried to "make everything", was unsucessfull, now am trying unit by unit, so when I run "make base", it stops with the following error. FreeBSD version is 10.1 i386. Any help is highly appreciated. Also tried with "set MAKE_JOBS_UNSAFE=yes"




cd /usr/src/kerberos5/lib/libasn1;  make install -DNO_SUBDIR DESTDIR=/usr/obj/usr/src/release/dist/base SHARED=copies
install -C -o root -g wheel -m 444   libasn1.a /usr/obj/usr/src/release/dist/base/usr/lib
install -s -o root -g wheel -m 444     libasn1.so.11 /usr/obj/usr/src/release/dist/base/usr/lib
install -l s libasn1.so.11 /usr/obj/usr/src/release/dist/base/usr/lib/libasn1.so
cmp -s krb5_asn1.hx krb5_asn1.h 2> /dev/null || cp krb5_asn1.hx krb5_asn1.h
cp: not found
*** Error code 127[/i][/i]



May 25, 2015, 10:30:01 AM #1 Last Edit: May 25, 2015, 10:43:37 AM by franco
You have maybe run out is disk space.

Can you please provide output for:

# cp
# df -h

Sorry for my late response, as I was expecting an email from the forum for any replies :)

There is enough space, as this VM is dedicated for opnsense build. please see the below out put

Filesystem            Size    Used   Avail Capacity  Mounted on
/dev/da0p2             18G    4.8G     12G    29%    /
devfs                 1.0K    1.0K      0B   100%    /dev
<below>:/usr/ports     37G     23G     12G    66%    /usr/local/stage/usr/ports
<below>:/usr/src       37G     23G     12G    66%    /usr/local/stage/usr/src
devfs                 1.0K    1.0K      0B   100%    /usr/local/stage/dev


usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file target_file
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file ... target_directory

This is strange. If you go to /usr/src, does the following run fine?

# make clean
# make buildworld
# cd release
# make obj
# make base.txz

It looks like the FreeBSD build itself stops at some point, basically all the tools do is wrap around it using the above command sequence. Let me know if that works (it won't fix the issue, but it's a start).

Alternatively, you can skip the base/kernel builds by downloading the prebuilt sets:

# mkdir -p /tmp/sets
# cd /tmp/sets
# fetch https://pkg.opnsense.org/sets/kernel-15.1.11-i386.txz
# fetch https://pkg.opnsense.org/sets/base-15.1.11-i386.txz

And afterwards you only run "make packages", not "make everything".

All the make in /usr/src ran successfully without any errors.  Trying to run "make everything" once again