Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
[SOLVED] Build OPNSense 16.7 failed ...
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: [SOLVED] Build OPNSense 16.7 failed ... (Read 13789 times)
Mohiuddin
Newbie
Posts: 28
Karma: 5
[SOLVED] Build OPNSense 16.7 failed ...
«
on:
November 13, 2016, 11:58:00 am »
Hi,
I was trying to custom build OPNSense following the link '
https://github.com/opnsense/tools/blob/master/README.md
' . But the build failed after some time, when I ran 'make cdrom'. Running the build in FreeBSD 10.3 in a VM, with RAM assigned to FreeBSD 512. Processor is Quadcore. I would appreciate if you help me out on this!
Thanks!
I'm adding the detailed log here in a file as well. Partial log is below:
LOG:
>>> Building packages...
pkg: 27 packages installed
>>> Building opnsense/ngattach
===> ngattach-1.2 depends on file: /usr/local/sbin/pkg - found
=> fichtner-ngattach-1.2_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch
https://codeload.github.com/fichtner/ngattach/tar.gz/1.2?dummy=/fichtner-ngattach-1.2_GH0.tar.gz
fetch:
https://codeload.github.com/fichtner/ngattach/tar.gz/1.2?dummy=/fichtner-ngattach-1.2_GH0.tar.gz
: size unknown
fetch:
https://codeload.github.com/fichtner/ngattach/tar.gz/1.2?dummy=/fichtner-ngattach-1.2_GH0.tar.gz
: size of remote file is not known
fichtner-ngattach-1.2_GH0.tar.gz 1724 B 7907 kBps 00m00s
===> Fetching all distfiles required by ngattach-1.2 for building
===> Extracting for ngattach-1.2
===> ngattach-1.2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by ngattach-1.2 for building
=> SHA256 Checksum OK for fichtner-ngattach-1.2_GH0.tar.gz.
===> Patching for ngattach-1.2
===> Configuring for ngattach-1.2
===> Building for ngattach-1.2
Warning: Object directory not changed from original /usr/obj/usr/ports/opnsense/ngattach/work/ngattach-1.2
echo ngattach: /usr/lib/libc.a >> .depend
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -MD -MF.depend.ngattach.o -MTngattach.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -c ngattach.c -o ngattach.o
ngattach.c:72:6: error: use of undeclared identifier 'NGM_ETHER_ATTACH'
NGM_ETHER_ATTACH, argv[1], strlen(argv[1]) + 1) < 0) {
^
1 error generated.
*** [ngattach.o] Error code 1
make[2]: stopped in /usr/obj/usr/ports/opnsense/ngattach/work/ngattach-1.2
1 error
make[2]: stopped in /usr/obj/usr/ports/opnsense/ngattach/work/ngattach-1.2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/opnsense/ngattach
*** Error code 1
Stop.
make: stopped in /usr/ports/opnsense/ngattach
>>> Creating binary packages...
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Nothing to do.
Loading the package list...
acme-tiny-0.0.g.2016.08.18 already packaged, skipping...
apinger-0.7 already packaged, skipping...
autoconf-2.69_1 already packaged, skipping...
autoconf-wrapper-20131203 already packaged, skipping...
automake-1.15_1 already packaged, skipping...
automake-wrapper-20131203 already packaged, skipping...
beep-1.0_1 already packaged, skipping...
bison-2.7.1,1 already packaged, skipping...
bsdinstaller-16.7_1 already packaged, skipping...
cpdup-1.18 already packaged, skipping...
cpustats-0.1 already packaged, skipping...
dhcpleases-0.2 already packaged, skipping...
filterdns-0.2 already packaged, skipping...
filterlog-0.2 already packaged, skipping...
gmake-4.2.1_1 already packaged, skipping...
help2man-1.43.3_1 already packaged, skipping...
ifinfo-10.1 already packaged, skipping...
indexinfo-0.2.6 already packaged, skipping...
libffi-3.2.1 already packaged, skipping...
m4-1.4.17_1,1 already packaged, skipping...
openssl-1.0.2j_1,1 already packaged, skipping...
perl5-5.24.1.r4 already packaged, skipping...
pkg-1.9.3 already packaged, skipping...
pkgconf-1.0.2 already packaged, skipping...
python27-2.7.12 already packaged, skipping...
readline-6.3.8 already packaged, skipping...
texinfo-6.1.20160425,1 already packaged, skipping...
.MAKE.LEVEL.ENV=MAKELEVEL
ABI_FILE=/usr/lib/crt1.o
BLOCKSIZE=K
CONFIGDIR=/usr/tools/config/16.7
CONFIG_XML=/usr/local/etc/config.xml
COREDIR=/usr/core
CPUS=1
DEVICEDIR=/usr/tools/device
EDITOR=vi
ENV_FILTER=env -i USER=root LOGNAME=root HOME=/root SHELL=/bin/csh BLOCKSIZE=K MAIL=/var/mail/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin TERM=xterm-256color HOSTTYPE=FreeBSD VENDOR=intel OSTYPE=FreeBSD MACHTYPE=i386 PWD=/usr/tools/build GROUP=wheel HOST=brotecs EDITOR=vi PAGER=more ABI_FILE=/usr/lib/crt1.o
GROUP=wheel
HOME=/root
HOST=brotecs
HOSTTYPE=FreeBSD
IMAGESDIR=/tmp/images
LABEL=OPNsense
LOGNAME=root
MACHTYPE=i386
MAIL=/var/mail/root
MAKEFLAGS= .MAKE.LEVEL.ENV=MAKELEVEL
MAKELEVEL=1
OLDPWD=/usr/obj/usr/tools
OSTYPE=FreeBSD
PACKAGESDIR=/.pkg
PAGER=more
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
PLUGINSDIR=/usr/plugins
PORTSDIR=/usr/ports
PORTSREFDIR=/usr/freebsd-ports
PRODUCT_ARCH=i386
PRODUCT_DEVICE=a10
PRODUCT_FLAVOUR=OpenSSL
PRODUCT_HOST=i386
PRODUCT_MIRROR=http://mirror.wdc1.us.leaseweb.net/opnsense
PRODUCT_NAME=OPNsense
PRODUCT_PKGNAME=opnsense
PRODUCT_PKGNAMES=opnsense opnsense-stable opnsense-devel
PRODUCT_PRIVKEY=/usr/tools/config/16.7/repo.key
PRODUCT_PUBKEY=/usr/tools/config/16.7/repo.pub
PRODUCT_RELEASE=OPNsense-201611132211-OpenSSL
PRODUCT_SETTINGS=16.7
PRODUCT_SIGNCHK=/usr/tools/scripts/pkg_fingerprint.sh /usr/tools/config/16.7/repo.pub
PRODUCT_SIGNCMD=/usr/tools/scripts/pkg_sign.sh /usr/tools/config/16.7/repo.pub /usr/tools/config/16.7/repo.key
PRODUCT_SPEED=115200
PRODUCT_SUFFIX=
PRODUCT_TARGET=i386
PRODUCT_TYPE=opnsense
PRODUCT_UEFI=yes
PRODUCT_VERSION=201611132211
PWD=/usr/tools/build
REMOTEHOST=192.168.30.67
SETSDIR=/tmp/sets
SHELL=/bin/csh
SHLVL=1
SRCDIR=/usr/src
SSH_CLIENT=192.168.30.67 46436 22
SSH_CONNECTION=192.168.30.67 46436 192.168.30.48 22
SSH_TTY=/dev/pts/0
STAGEDIR=/usr/obj/usr/tools/config/16.7/OpenSSL:i386
STAGEDIRPREFIX=/usr/obj
TERM=xterm-256color
TOOLSDIR=/usr/tools
USER=root
VENDOR=intel
>>> Removing packages set
Creating repository in /usr/obj/usr/tools/config/16.7/OpenSSL:i386/.pkg-new/: 100%
Packing files for repository: 100%
>>> Creating package mirror set for 16.7.7_130-OpenSSL-i386... done
.MAKE.LEVEL.ENV=MAKELEVEL
ABI_FILE=/usr/lib/crt1.o
BLOCKSIZE=K
CONFIGDIR=/usr/tools/config/16.7
CONFIG_XML=/usr/local/etc/config.xml
COREDIR=/usr/core
CPUS=1
DEVICEDIR=/usr/tools/device
EDITOR=vi
ENV_FILTER=env -i USER=root LOGNAME=root HOME=/root SHELL=/bin/csh BLOCKSIZE=K MAIL=/var/mail/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin TERM=xterm-256color HOSTTYPE=FreeBSD VENDOR=intel OSTYPE=FreeBSD MACHTYPE=i386 PWD=/usr/tools/build GROUP=wheel HOST=brotecs EDITOR=vi PAGER=more ABI_FILE=/usr/lib/crt1.o
GROUP=wheel
HOME=/root
HOST=brotecs
HOSTTYPE=FreeBSD
IMAGESDIR=/tmp/images
LABEL=OPNsense
LOGNAME=root
MACHTYPE=i386
MAIL=/var/mail/root
MAKEFLAGS= .MAKE.LEVEL.ENV=MAKELEVEL
MAKELEVEL=1
OLDPWD=/usr/obj/usr/tools
OSTYPE=FreeBSD
PACKAGESDIR=/.pkg
PAGER=more
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
PLUGINSDIR=/usr/plugins
PORTSDIR=/usr/ports
PORTSREFDIR=/usr/freebsd-ports
PRODUCT_ARCH=i386
PRODUCT_DEVICE=a10
PRODUCT_FLAVOUR=OpenSSL
PRODUCT_HOST=i386
PRODUCT_MIRROR=http://mirror.sfo12.us.leaseweb.net/opnsense
PRODUCT_NAME=OPNsense
PRODUCT_PKGNAME=opnsense
PRODUCT_PKGNAMES=opnsense opnsense-stable opnsense-devel
PRODUCT_PRIVKEY=/usr/tools/config/16.7/repo.key
PRODUCT_PUBKEY=/usr/tools/config/16.7/repo.pub
PRODUCT_RELEASE=OPNsense-201611132211-OpenSSL
PRODUCT_SETTINGS=16.7
PRODUCT_SIGNCHK=/usr/tools/scripts/pkg_fingerprint.sh /usr/tools/config/16.7/repo.pub
PRODUCT_SIGNCMD=/usr/tools/scripts/pkg_sign.sh /usr/tools/config/16.7/repo.pub /usr/tools/config/16.7/repo.key
PRODUCT_SPEED=115200
PRODUCT_SUFFIX=
PRODUCT_TARGET=i386
PRODUCT_TYPE=opnsense
PRODUCT_UEFI=yes
PRODUCT_VERSION=201611132211
PWD=/usr/tools/build
REMOTEHOST=192.168.30.67
SETSDIR=/tmp/sets
SHELL=/bin/csh
SHLVL=1
SRCDIR=/usr/src
SSH_CLIENT=192.168.30.67 46436 22
SSH_CONNECTION=192.168.30.67 46436 192.168.30.48 22
SSH_TTY=/dev/pts/0
STAGEDIR=/usr/obj/usr/tools/config/16.7/OpenSSL:i386
STAGEDIRPREFIX=/usr/obj
TERM=xterm-256color
TOOLSDIR=/usr/tools
USER=root
VENDOR=intel
>>> Packages (plugins) are up to date
.MAKE.LEVEL.ENV=MAKELEVEL
ABI_FILE=/usr/lib/crt1.o
BLOCKSIZE=K
CONFIGDIR=/usr/tools/config/16.7
CONFIG_XML=/usr/local/etc/config.xml
COREDIR=/usr/core
CPUS=1
DEVICEDIR=/usr/tools/device
EDITOR=vi
ENV_FILTER=env -i USER=root LOGNAME=root HOME=/root SHELL=/bin/csh BLOCKSIZE=K MAIL=/var/mail/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin TERM=xterm-256color HOSTTYPE=FreeBSD VENDOR=intel OSTYPE=FreeBSD MACHTYPE=i386 PWD=/usr/tools/build GROUP=wheel HOST=brotecs EDITOR=vi PAGER=more ABI_FILE=/usr/lib/crt1.o
GROUP=wheel
HOME=/root
HOST=brotecs
HOSTTYPE=FreeBSD
IMAGESDIR=/tmp/images
LABEL=OPNsense
LOGNAME=root
MACHTYPE=i386
MAIL=/var/mail/root
MAKEFLAGS= .MAKE.LEVEL.ENV=MAKELEVEL
MAKELEVEL=1
OLDPWD=/usr/obj/usr/tools
OSTYPE=FreeBSD
PACKAGESDIR=/.pkg
PAGER=more
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
PLUGINSDIR=/usr/plugins
PORTSDIR=/usr/ports
PORTSREFDIR=/usr/freebsd-ports
PRODUCT_ARCH=i386
PRODUCT_DEVICE=a10
PRODUCT_FLAVOUR=OpenSSL
PRODUCT_HOST=i386
PRODUCT_MIRROR=http://mirror.ams1.nl.leaseweb.net/opnsense
PRODUCT_NAME=OPNsense
PRODUCT_PKGNAME=opnsense
PRODUCT_PKGNAMES=opnsense opnsense-stable opnsense-devel
PRODUCT_PRIVKEY=/usr/tools/config/16.7/repo.key
PRODUCT_PUBKEY=/usr/tools/config/16.7/repo.pub
PRODUCT_RELEASE=OPNsense-201611132211-OpenSSL
PRODUCT_SETTINGS=16.7
PRODUCT_SIGNCHK=/usr/tools/scripts/pkg_fingerprint.sh /usr/tools/config/16.7/repo.pub
PRODUCT_SIGNCMD=/usr/tools/scripts/pkg_sign.sh /usr/tools/config/16.7/repo.pub /usr/tools/config/16.7/repo.key
PRODUCT_SPEED=115200
PRODUCT_SUFFIX=
PRODUCT_TARGET=i386
PRODUCT_TYPE=opnsense
PRODUCT_UEFI=yes
PRODUCT_VERSION=201611132211
PWD=/usr/tools/build
REMOTEHOST=192.168.30.67
SETSDIR=/tmp/sets
SHELL=/bin/csh
SHLVL=1
SRCDIR=/usr/src
SSH_CLIENT=192.168.30.67 46436 22
SSH_CONNECTION=192.168.30.67 46436 192.168.30.48 22
SSH_TTY=/dev/pts/0
STAGEDIR=/usr/obj/usr/tools/config/16.7/OpenSSL:i386
STAGEDIRPREFIX=/usr/obj
TERM=xterm-256color
TOOLSDIR=/usr/tools
USER=root
VENDOR=intel
>>> Setting up stage in /usr/obj/usr/tools/config/16.7/OpenSSL:i386
>>> Setting up world in /usr/obj/usr/tools/config/16.7/OpenSSL:i386
>>> Setting up chroot in /usr/obj/usr/tools/config/16.7/OpenSSL:i386
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
>>> Extracting packages in /usr/obj/usr/tools/config/16.7/OpenSSL:i386
>>> Installing packages in /usr/obj/usr/tools/config/16.7/OpenSSL:i386: pkg git gettext-tools
pkg: Warning: Major OS version upgrade detected. Running "pkg-static install -f pkg" recommended
pkg: No packages installed. Nothing to do!
pkg: Warning: Major OS version upgrade detected. Running "pkg-static install -f pkg" recommended
pkg: Warning: Major OS version upgrade detected. Running "pkg-static install -f pkg" recommended
Installing pkg-1.9.3...
Extracting pkg-1.9.3: 100%
pkg: Warning: Major OS version upgrade detected. Running "pkg-static install -f pkg" recommended
pkg: Warning: Major OS version upgrade detected. Running "pkg-static install -f pkg" recommended
Installing pkg-1.9.3...
the most recent version of pkg-1.9.3 is already installed
Could not find package: git
*** Error code 1
Stop.
make: stopped in /usr/tools
root@brotecs:/usr/tools #
«
Last Edit: November 25, 2016, 07:23:01 am by franco
»
Logged
Mohiuddin
Newbie
Posts: 28
Karma: 5
Re: Build OPNSense 16.7 failed ...
«
Reply #1 on:
November 23, 2016, 06:46:06 am »
Hi Again, I have increased the RAM a bit to 1gb but it's still the same. Would appreciate a lot if you could have me this resolved. Pretty much stuck into this!
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Build OPNSense 16.7 failed ...
«
Reply #2 on:
November 23, 2016, 08:26:38 am »
Hi Mohiuddin,
You're building src.git master branch, but you need to switch to stable/16.7:
# cd /usr/src && git checkout stable/16.7
Unfortunately, the legacy of our project introduced breaking changes against FreeBSD which we are unwinding, breaking build processes between different major versions like this one. It's ironic.
For 17.1, ngattach will be removed as the corresponding custom FreeBSD was removed as well.
Cheers,
Franco
Logged
Mohiuddin
Newbie
Posts: 28
Karma: 5
Re: Build OPNSense 16.7 failed ...
«
Reply #3 on:
November 24, 2016, 09:44:05 am »
Hi Franco
Thanks a lot! I Appreciate it!
I did run the command 'cd /usr/src && git checkout stable/16.7' but sadly I got error again.
Here's the Error log!
...
...
...
===> usr.sbin/ctm/ctm_dequeue (obj)
===> usr.sbin/daemon (obj)
===> usr.sbin/dconschat (obj)
===> usr.sbin/devctl (obj)
===> usr.sbin/devinfo (obj)
===> usr.sbin/digictl (obj)
===> usr.sbin/diskinfo (obj)
===> usr.sbin/dumpcis (obj)
===> usr.sbin/extattr (obj)
===> usr.sbin/extattrctl (obj)
===> usr.sbin/faithd (obj)
===> usr.sbin/fdcontrol (obj)
===> usr.sbin/fdformat (obj)
===> usr.sbin/fdread (obj)
===> usr.sbin/fdwrite (obj)
===> usr.sbin/fifolog (obj)
===> usr.sbin/fifolog/lib (obj)
===> usr.sbin/fifolog/fifolog_create (obj)
===> usr.sbin/fifolog/fifolog_writer (obj)
===> usr.sbin/fifolog/fifolog_reader (obj)
===> usr.sbin/flowctl (obj)
===> usr.sbin/fstyp (obj)
===> usr.sbin/ftp-proxy (obj)
===> usr.sbin/ftp-proxy/libevent (obj)
===> usr.sbin/ftp-proxy/ftp-proxy (obj)
mkdir: /usr/obj/usr/src/usr.sbin/ftp-proxy/ftp-proxy: File exists
*** [obj] Error code 1
bmake[5]: stopped in /usr/src/usr.sbin/ftp-proxy/ftp-proxy
1 error
bmake[5]: stopped in /usr/src/usr.sbin/ftp-proxy/ftp-proxy
*** [_sub.obj] Error code 2
bmake[4]: stopped in /usr/src/usr.sbin/ftp-proxy
1 error
bmake[4]: stopped in /usr/src/usr.sbin/ftp-proxy
*** [obj_subdir_ftp-proxy] Error code 2
bmake[3]: stopped in /usr/src/usr.sbin
1 error
bmake[3]: stopped in /usr/src/usr.sbin
*** [usr.sbin.obj__D] Error code 2
bmake[2]: stopped in /usr/src
1 error
bmake[2]: stopped in /usr/src
*** [_obj] Error code 2
bmake[1]: stopped in /usr/src
1 error
bmake[1]: stopped in /usr/src
*** [buildworld] Error code 2
make: stopped in /usr/src
1 error
make: stopped in /usr/src
*** Error code 2
Stop.
make: stopped in /usr/tools
root@brotecs:/usr/tools #
Thanks Again!
Mohiuddin.
Logged
Mohiuddin
Newbie
Posts: 28
Karma: 5
Re: Build OPNSense 16.7 failed ...
«
Reply #4 on:
November 24, 2016, 09:52:30 am »
Hi Franco
I removed the file '/usr/obj/usr/src/usr.sbin/ftp-proxy/ftp-proxy' and the error is gone. Later it stucked in another Error.
Here's the Error log!
...
...
...
===> lib/clang/libllvmsparccodegen (obj)
===> lib/clang/libllvmsparcdesc (obj)
===> lib/clang/libllvmsparcdisassembler (obj)
===> lib/clang/libllvmsparcinfo (obj)
===> lib/clang/libllvmsparcinstprinter (obj)
===> lib/clang/libllvmx86asmparser (obj)
===> lib/clang/libllvmx86codegen (obj)
===> lib/clang/libllvmx86desc (obj)
===> lib/clang/libllvmx86disassembler (obj)
===> lib/clang/libllvmx86info (obj)
===> lib/clang/libllvmx86instprinter (obj)
===> lib/clang/libllvmx86utils (obj)
===> lib/clang/include (obj)
===> lib/clang/libclanganalysis (depend)
bmake[4]: bmake[4]: don't know how to make /usr/src/lib/clang/libclanganalysis/../../../contrib/llvm/tools/clang/include/clang/Basic/AttrDocs.td. Stop
bmake[4]: stopped in /usr/src/lib/clang/libclanganalysis
*** [depend_subdir_libclanganalysis] Error code 2
bmake[3]: stopped in /usr/src/lib/clang
1 error
bmake[3]: stopped in /usr/src/lib/clang
*** [cross-tools] Error code 2
bmake[2]: stopped in /usr/src
1 error
bmake[2]: stopped in /usr/src
*** [_cross-tools] Error code 2
bmake[1]: stopped in /usr/src
1 error
bmake[1]: stopped in /usr/src
*** [buildworld] Error code 2
make: stopped in /usr/src
1 error
make: stopped in /usr/src
*** Error code 2
Stop.
make: stopped in /usr/tools
root@brotecs:/usr/tools #
Thanks!
Mohiuddin.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Build OPNSense 16.7 failed ...
«
Reply #5 on:
November 24, 2016, 11:08:03 am »
These are arcane caching bugs in /usr/obj from going backwards with the FreeBSD source repo. Clean up with the following command, then restart the build:
# make clean-obj
Cheers,
franco
Logged
Mohiuddin
Newbie
Posts: 28
Karma: 5
Re: Build OPNSense 16.7 failed ...
«
Reply #6 on:
November 25, 2016, 06:33:42 am »
Hi Franco
Build Success!!! Thanks for Your co-operation and swift guidelines! I though have 1 small question, I see in '/tmp/images' there's an .iso created named 'OPNsense-201611240201-OpenSSL-cdrom-i386.iso' and it's 32bit. our FreeBSD is 32 bit also, so if I run 'make cdrom' under 64 bit FreeBSD will it create a 64bit .iso?
Here's the final Build end logs:
...
...
...
Message from opnsense-17.1.a_632:
Thanks for all the fish...
>>> Begin extra: cdrom_hook
rc.loader: assembling banner
rc.loader: assembling brand
rc.loader: assembling misc
rc.loader: assembling modules
rc.loader: assembling netgraph
>>> End extra: cdrom_hook
>>> Creating mtree summary of files present...
>>> Setting up entropy in /usr/obj/usr/tools/config/16.7/OpenSSL:i386/work
1+0 records in
1+0 records out
4096 bytes transferred in 0.000092 secs (44507433 bytes/sec)
1+0 records in
1+0 records out
4096 bytes transferred in 0.000084 secs (48806447 bytes/sec)
>>> Building cdrom image... done
You have new mail.
root@brotecs:/usr/tools #
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: [SOLVED] Build OPNSense 16.7 failed ...
«
Reply #7 on:
November 25, 2016, 07:24:15 am »
Hi Mohiuddin,
Glad to hear.
Yes, the system automatically builds for the architecture of the build system.
There are ways to cross-build, especially for ARM, but if you only need amd64 it's better to set up a new native build system, it's the fastest option.
Cheers,
Franco
Logged
Mohiuddin
Newbie
Posts: 28
Karma: 5
Re: [SOLVED] Build OPNSense 16.7 failed ...
«
Reply #8 on:
November 27, 2016, 04:47:16 am »
Hi Franco
Okay, Got You!
Thanks Again!
Have a nice day!
Mohiuddin.
«
Last Edit: November 27, 2016, 01:00:03 pm by Mohiuddin
»
Logged
Mohiuddin
Newbie
Posts: 28
Karma: 5
Re: [SOLVED] Build OPNSense 16.7 failed ...
«
Reply #9 on:
November 29, 2016, 06:43:15 am »
Hi Franco
Back Again!
The build is failed for 64bit FreeBSD and gave the same git error. I did as before 'git checkout stable/16.7' and 'make clean-obj' but stuck in the same area. Here's the partial build log:
LOG:
...
...
...
PRODUCT_ARCH=amd64
PRODUCT_DEVICE=a10
PRODUCT_FLAVOUR=OpenSSL
PRODUCT_HOST=amd64
PRODUCT_MIRROR=https://opnsense.c0urier.net
PRODUCT_NAME=OPNsense
PRODUCT_PKGNAME=opnsense
PRODUCT_PKGNAMES=opnsense opnsense-stable opnsense-devel
PRODUCT_PRIVKEY=/usr/tools/config/16.7/repo.key
PRODUCT_PUBKEY=/usr/tools/config/16.7/repo.pub
PRODUCT_RELEASE=OPNsense-201611291724-OpenSSL
PRODUCT_SETTINGS=16.7
PRODUCT_SIGNCHK=/usr/tools/scripts/pkg_fingerprint.sh /usr/tools/config/16.7/repo.pub
PRODUCT_SIGNCMD=/usr/tools/scripts/pkg_sign.sh /usr/tools/config/16.7/repo.pub /usr/tools/config/16.7/repo.key
PRODUCT_SPEED=115200
PRODUCT_SUFFIX=
PRODUCT_TARGET=amd64
PRODUCT_TYPE=opnsense
PRODUCT_UEFI=yes
PRODUCT_VERSION=201611291724
PWD=/usr/tools/build
REMOTEHOST=192.168.30.67
SETSDIR=/tmp/sets
SHELL=/bin/csh
SHLVL=1
SRCDIR=/usr/src
SSH_CLIENT=192.168.30.67 37144 22
SSH_CONNECTION=192.168.30.67 37144 192.168.30.24 22
SSH_TTY=/dev/pts/0
STAGEDIR=/usr/obj/usr/tools/config/16.7/OpenSSL:amd64
STAGEDIRPREFIX=/usr/obj
TERM=xterm-256color
TOOLSDIR=/usr/tools
USER=root
VENDOR=amd
>>> Setting up stage in /usr/obj/usr/tools/config/16.7/OpenSSL:amd64
>>> Setting up world in /usr/obj/usr/tools/config/16.7/OpenSSL:amd64
>>> Setting up chroot in /usr/obj/usr/tools/config/16.7/OpenSSL:amd64
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
>>> Extracting packages in /usr/obj/usr/tools/config/16.7/OpenSSL:amd64
>>> Installing packages in /usr/obj/usr/tools/config/16.7/OpenSSL:amd64: pkg git gettext-tools
pkg: No packages installed. Nothing to do!
Installing pkg-1.9.3_1...
Extracting pkg-1.9.3_1: 100%
Installing pkg-1.9.3_1...
the most recent version of pkg-1.9.3_1 is already installed
Could not find package: git
*** Error code 1
Stop.
make: stopped in /usr/tools
root@brotecs:/usr/tools #
Thanks!
Mohiuddin.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: [SOLVED] Build OPNSense 16.7 failed ...
«
Reply #10 on:
November 30, 2016, 08:52:04 am »
Did you edit ports.conf ? The package build did not finish or at least did not build the git package it seems....
Logged
Mohiuddin
Newbie
Posts: 28
Karma: 5
Re: [SOLVED] Build OPNSense 16.7 failed ...
«
Reply #11 on:
November 30, 2016, 09:02:25 am »
Hi Franco
Nop, didn't edit the ports.repo, it's a clean checkout!
Regards.
Mohiuddin.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: [SOLVED] Build OPNSense 16.7 failed ...
«
Reply #12 on:
November 30, 2016, 09:03:14 am »
# tar tf /tmp/sets/packages-*
What does that print?
Cheers,
Franco
Logged
Mohiuddin
Newbie
Posts: 28
Karma: 5
Re: [SOLVED] Build OPNSense 16.7 failed ...
«
Reply #13 on:
November 30, 2016, 10:23:14 am »
Hi Franco
Here's the output:
root@brotecs:/usr/tools # tar tf /tmp/sets/packages-*
./
./Latest/
./All/
./.plugins_done
./digests.txz
./meta.txz
./packagesite.txz
./All/acme-tiny-0.0.g.2016.08.18.txz
./All/apinger-0.7.txz
./All/autoconf-2.69_1.txz
./All/autoconf-wrapper-20131203.txz
./All/automake-1.15_1.txz
./All/automake-wrapper-20131203.txz
./All/beep-1.0_1.txz
./All/bison-2.7.1,1.txz
./All/bsdinstaller-16.7_1.txz
./All/cpdup-1.18.txz
./All/cpustats-0.1.txz
./All/cyrus-sasl-2.1.26_12.txz
./All/dhcpleases-0.2.txz
./All/filterdns-0.2.txz
./All/filterlog-0.2.txz
./All/gmake-4.2.1_1.txz
./All/help2man-1.43.3_1.txz
./All/ifinfo-10.1.txz
./All/indexinfo-0.2.6.txz
./All/libffi-3.2.1.txz
./All/libltdl-2.4.6.txz
./All/libtool-2.4.6.txz
./All/libucl-0.8.0.txz
./All/m4-1.4.17_1,1.txz
./All/ngattach-1.2.txz
./All/openldap-sasl-client-2.4.44.txz
./All/openldap-sasl-server-2.4.44.txz
./All/openssl-1.0.2j_1,1.txz
./All/opnsense-lang-16.7.7.txz
./All/opnsense-update-16.7.7_1.txz
./All/pam_opnsense-16.7.txz
./All/perl5-5.24.1.r4.txz
./All/pkg-1.9.3_1.txz
./All/pkgconf-1.0.2.txz
./All/py27-Babel-2.3.4.txz
./All/py27-Jinja2-2.8.txz
./All/py27-MarkupSafe-0.23.txz
./All/py27-fail2ban-0.9.5.txz
./All/py27-netaddr-0.7.18.txz
./All/py27-pytz-2016.7,1.txz
./All/py27-requests-2.11.1.txz
./All/py27-setuptools27-28.1.0.txz
./All/py27-sqlite3-2.7.12_7.txz
./All/py27-ujson-1.35.txz
./All/python27-2.7.12.txz
./All/sqlite3-3.15.1_1.txz
./Latest/pkg.txz
You have new mail.
root@brotecs:/usr/tools #
Regards.
Mohiuddin.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: [SOLVED] Build OPNSense 16.7 failed ...
«
Reply #14 on:
November 30, 2016, 11:27:05 am »
Hi Mohiuddin,
Your ports build aborted for some reason, there should be a ".ports_done" file in there and many more packages.
Rerun, possibly let us know the error....
# make ports
E.g. the ports build fetches a lot of files, if that fails, it will have to abort. But you can fix that by caching the distfiles:
# make distfiles
# make ports
Cheers,
Franco
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
[SOLVED] Build OPNSense 16.7 failed ...