Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
[SOLVED] Build help
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: [SOLVED] Build help (Read 21617 times)
miac60
Newbie
Posts: 22
Karma: 2
[SOLVED] Build help
«
on:
August 21, 2015, 07:41:20 am »
Hi,
I'm trying to build opnsense as per the instructions given here.
https://github.com/opnsense/tools
I tried to "make everything" and got this:
.....
>>> Removing packages set
Creating repository in /usr/local/stage/.pkg-new/: 100%
Packing files for repository: 100%
>>> Creating package mirror set for 15.7.8_35-OpenSSL-amd64... done
......
>>> Setting up stage in /usr/local/stage
>>> Setting up world in /usr/local/stage
>>> Setting up kernel in /usr/local/stage
>>> Extracting packages in /usr/local/stage
>>> Installing packages in /usr/local/stage...
pkg: No packages installed. Nothing to do!
Installing pkg-1.5.6...
Extracting pkg-1.5.6: 100%
Message for pkg-1.5.6:
If you are upgrading from the old package format, first run:
# pkg2ng
Usage: pkg add [-IAfqM] <pkg-name> ...
pkg add [-IAfqM] <protocol>://<path>/<pkg-name> ...
For more information see 'pkg help add'.
*** Error code 64
Stop.
make: stopped in /usr/tools
How to fix this?
# uname -a
FreeBSD freebsd 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
«
Last Edit: September 14, 2015, 04:07:56 pm by franco
»
Logged
franco
Administrator
Hero Member
Posts: 17675
Karma: 1613
Re: Build help
«
Reply #1 on:
August 21, 2015, 11:10:35 am »
Do you have the plugins.git installed? Are all repositories up-to-date? They go out of sync sometimes as work is being done that spreads across repositories. The current HEADs all work fine.
I have added a debug flag to the tools repository, try this to see what is the broken script line
# make packages DEBUG=1
Or if that doesn't clear up things go deeper:
# make ports DEBUG=1
# make plugins DEBUG=1
# make core DEBUG=1
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #2 on:
August 21, 2015, 12:32:23 pm »
I try
# make packages DEBUG=1
# make ports DEBUG=1
# make plugins DEBUG=1
# make core DEBUG=1
But still have message:
Message for pkg-1.5.6:
If you are upgrading from the old package format, first run:
pkg self upgrade when i do: pkg install git
What pkg version must be for correct build?
Logged
franco
Administrator
Hero Member
Posts: 17675
Karma: 1613
Re: Build help
«
Reply #3 on:
August 21, 2015, 12:38:36 pm »
Did you update tools.git? I just pushed support for DEBUG. I'll also need more context to debug. The package install code is called from a lot of places.
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #4 on:
August 21, 2015, 09:17:58 pm »
I try to downgrade pkg version.
And now i got this:
Installing vim-lite-7.4.826: 100%
Installing libevent2-2.0.22_1: 100%
Installing tmux-2.0_1: 100%
the most recent version of git-2.4.6 is already installed
Failed to install the following 1 package(s): ./.pkg/All/git-2.4.6.txz
*** Error code 70
Stop.
make: stopped in /usr/tools
Also i try clean install.
I create VirtualBox VM, install FreeBSD-10.1-RELEASE-amd64 with default setting.
Auto install pkg tool by running pkg command and press Y.
Than follow instrustion:
# 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 everything
And after some time again got old error:
Installing pkg-1.5.6...
Extracting pkg-1.5.6: 100%
Message for pkg-1.5.6:
If you are upgrading from the old package format, first run:
# pkg2ng
Usage: pkg add [-IAfqM] <pkg-name> ...
pkg add [-IAfqM] <protocol>://<path>/<pkg-name> ...
For more information see 'pkg help add'.
*** Error code 64
Logged
franco
Administrator
Hero Member
Posts: 17675
Karma: 1613
Re: Build help
«
Reply #5 on:
August 23, 2015, 01:09:35 pm »
Hi there,
I'll still need the extra lines of DEBUG output before the build step fails. That last message is not an error, just a notice so something else fails.
Are you using ZFS on root?
Cheers,
Franco
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #6 on:
August 23, 2015, 02:07:34 pm »
No I use UFS... Can you reproduce this issue on VM?
Logged
franco
Administrator
Hero Member
Posts: 17675
Karma: 1613
Re: Build help
«
Reply #7 on:
August 23, 2015, 07:58:08 pm »
No, I'm using UFS VMs all the time to do releases.
Is your disk full maybe? Please paste the output of:
# df -h
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #8 on:
August 30, 2015, 10:41:51 am »
root@freebsd:~ # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 27G 6.7G 18G 27% /
devfs 1.0K 1.0K 0B 100% /dev
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #9 on:
August 31, 2015, 07:17:34 pm »
Some error when i try make packages DEBUG=1
===> Checking if opnsense-update already installed
===> Registering installation for opnsense-update-15.7.10
Installing opnsense-update-15.7.10...
pkg-static: opnsense-update-15.7.10 conflicts with os-update-15.7.8 (installs files into the same place). Problematic file: /usr/local/man/man8/opnsense-update.8.gz
*** Error code 70
Stop.
make[2]: stopped in /usr/ports/opnsense/opnsense-update
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/opnsense/opnsense-update
+ PORT_ABORT=1
+ trap - 2
+ echo '>>> Creating binary packages...'
>>> Creating binary packages...
+ chroot /usr/local/stage /bin/sh -es
Nothing to do.
................. SKIP .......
+ [ -n 1 ]
+ echo '>>> The ports build did not finish properly
'
>>> The ports build did not finish properly
+ exit 1
*** Error code 1
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #10 on:
August 31, 2015, 07:35:24 pm »
# make core DEBUG=1
Extracting openvpn-2.3.8: .......... done
Message for openvpn-2.3.8:
### ------------------------------------------------------------------------
### Edit /etc/rc.conf[.local] to start OpenVPN automatically at system
### startup. See /usr/local/etc/rc.d/openvpn for details.
### ------------------------------------------------------------------------
### Connect to VPN server as a client with this command to include
### the client.up/down scripts in the initialization:
### openvpn-client <spec>.ovpn
### ------------------------------------------------------------------------
### For compatibility notes when interoperating with older OpenVPN
### versions, please, see <http://openvpn.net/relnotes.html>
### ------------------------------------------------------------------------
+ PKGFOUND=''
+ cd /usr/local/stage
+ find ./.pkg/All -name 'opnsense-update-*.txz'
+ pkg -c /usr/local/stage add
Usage: pkg add [-IAfqM] <pkg-name> ...
pkg add [-IAfqM] <protocol>://<path>/<pkg-name> ...
For more information see 'pkg help add'.
*** Error code 64
Stop.
make: stopped in /usr/tools
Logged
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: Build help
«
Reply #11 on:
August 31, 2015, 07:56:21 pm »
Your last issue looks related to the pkgng version, can you try a clean of all packages and an upgrade on your box?
Code:
[Select]
make clean-packages
pkg upgrade -y
And then try a full build using "make everything DEBUG=1"
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #12 on:
September 02, 2015, 05:07:55 pm »
Got this:
===> libexec/rpc.rusersd (all)
===> libexec/rpc.rwalld (all)
===> libexec/rpc.sprayd (all)
===> libexec/rtld-elf (all)
cc -O2 -pipe -Wall -DFREEBSD_ELF -DIN_RTLD -I/usr/src/libexec/rtld-elf/../../lib/csu/common -I/usr/src/libexec/rtld-elf/amd64 -I/usr/src/libexec/rtld-elf -fpic -DPIC 1 -fvisibility=hidden -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float -DNDEBUG -std=gnu99 -Qunused-arguments -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wformat=2 -Wno-format-extra-args -Wno-format-nonliteral -c /usr/src/libexec/rtld-elf/amd64/rtld_start.S -o rtld_start.o
cc: error: no such file or directory: '1'
*** [rtld_start.o] Error code 1
make[5]: stopped in /usr/src/libexec/rtld-elf
1 error
make[5]: stopped in /usr/src/libexec/rtld-elf
*** [_sub.all] Error code 2
make[4]: stopped in /usr/src/libexec
1 error
make[4]: stopped in /usr/src/libexec
*** [libexec.all__D] Error code 2
make[3]: stopped in /usr/src
1 error
Logged
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: Build help
«
Reply #13 on:
September 02, 2015, 10:17:09 pm »
Weird, I can't seem to reproduce this on my machine and the error doesn't ring a bell on my side.
Maybe Franco has any idea when he has the time to look at it, but if you have the opportunity to do a clean FreeBSD install and do a freebsd-update fetch + install that might be a good idea.
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #14 on:
September 04, 2015, 11:26:44 am »
===> ata/atapci/chipsets/atavia (depend)
--- depend_subdir_dtrace ---
cc -c -O2 -pipe -DDIS_MEM -DSMP -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/usr/src/sys/modules/dtrace/dtrace/../../../cddl/contrib/opensolaris/uts/intel -I/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace/x86 -I/usr/src/sys/modules/dtrace/dtrace/../../../cddl/compat/opensolaris -I/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace -I/usr/src/sys/modules/dtrace/dtrace/../../../cddl/dev/dtrace/amd64 -I/usr/src/sys/modules/dtrace/dtrace/../../../cddl/contrib/opensolaris/uts/common -I/usr/src/sys/modules/dtrace/dtrace/../../../../cddl/contrib/opensolaris/common/util -I/usr/src/sys/modules/dtrace/dtrace/../../.. -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/SMP/opt_global.h -I. -I@ -I@/contrib/altq 1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/obj/usr/src/sys/SMP -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized -Wno-cast-qual -Wno-unused -include /usr/src/sys/modules/dtrace/dtrace/../../../cddl/compat/opensolaris/sys/debug_compat.h @/amd64/amd64/genassym.c
cc: error: no such file or directory: '1'
*** [genassym.o] Error code 1
make[6]: stopped in /usr/src/sys/modules/dtrace/dtrace
1 error
make[6]: stopped in /usr/src/sys/modules/dtrace/dtrace
--- depend_subdir_drm2 ---
A failure has been detected in another branch of the parallel make
--- depend_subdir_dtrace ---
*** [_sub.depend] Error code 2
make[5]: stopped in /usr/src/sys/modules/dtrace
1 error
make[5]: stopped in /usr/src/sys/modules/dtrace
Full build log:
http://s000.tinyupload.com/index.php?file_id=55666358271737935014
«
Last Edit: September 04, 2015, 06:42:32 pm by miac60
»
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
[SOLVED] Build help