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 21601 times)
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #15 on:
September 04, 2015, 07:03:43 pm »
Found problem: when I do make everything DEBUG=1
cc: error: no such file or directory: '1'
when I try make everything DEBUG=7
cc: error: no such file or directory:
'7'
"DEBUG=1" cause of the error.
Without "DEBUG=1" got error like in first post.
«
Last Edit: September 04, 2015, 07:20:34 pm by miac60
»
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Build help
«
Reply #16 on:
September 10, 2015, 02:53:28 pm »
Two more fixes went in. I know this must be tedious for you, it definitely is for us too tracing the subtleties of why an environment variable of DEBUG suddenly clobbers the kernel build.
Like in the other thread, can you let me know which build type you are looking for, maybe we can minimise the involved steps and see where it goes wrong.
I've yet to add more debugging, but it must wait for after 15.7.12.
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #17 on:
September 10, 2015, 03:19:25 pm »
Thank you.
I try to build iso image for x64 version of opnSense.
I also try to make regress
and this is result:
>>> Installing packages in /usr/local/stage...
+ BASEDIR=/usr/local/stage
+ shift
+ PKGLIST='opnsense pear-PHP_CodeSniffer'
+ pkg -c /usr/local/stage remove -fya
pkg: No packages installed. Nothing to do!
+ [ -z 'opnsense pear-PHP_CodeSniffer' ]
+ PKGFOUND=''
+ cd /usr/local/stage
+ find ./.pkg/All -name 'pkg-*.txz'
+ pkg -c /usr/local/stage info -F ./.pkg/All/pkg-1.5.6.txz
+ grep ^Name
+ awk '{ print $3; }'
+ PKGINFO=pkg
+ [ pkg = pkg ]
+ PKGFOUND=./.pkg/All/pkg-1.5.6.txz
+ pkg -c /usr/local/stage add ./.pkg/All/pkg-1.5.6.txz
Installing pkg-1.5.6...
Extracting pkg-1.5.6: .......... done
Message for pkg-1.5.6:
If you are upgrading from the old package format, first run:
# pkg2ng
+ PKGFOUND=''
+ cd /usr/local/stage
+ find ./.pkg/All -name 'opnsense-*.txz'
+ pkg -c /usr/local/stage info -F ./.pkg/All/opnsense-update-15.7.10.txz
+ grep ^Name
+ awk '{ print $3; }'
+ PKGINFO=opnsense-update
+ [ opnsense = opnsense-update ]
+ pkg -c /usr/local/stage info -F ./.pkg/All/opnsense-devel-15.7_934.txz
+ grep ^Name
+ awk '{ print $3; }'
+ PKGINFO=opnsense-devel
+ [ opnsense = opnsense-devel ]
+ 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
No package opnsense was found during install
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Build help
«
Reply #18 on:
September 10, 2015, 03:46:46 pm »
Can you try with the latest commit on tools? It's not supposed to look for "opnsense" by default anymore. "opnsense-devel" is there so the ports are ok.
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #19 on:
September 14, 2015, 08:38:20 am »
make everything DEBUG=1
--- genassym.o ---
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
*** [_sub.depend] Error code 2
make[5]: stopped in /usr/src/sys/modules/dtrace
1 error
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Build help
«
Reply #20 on:
September 14, 2015, 10:16:31 am »
Don't use DEBUG=1 anymore, it crashes the FreeBSD kernel build.
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #21 on:
September 14, 2015, 11:50:22 am »
Without DEBUG=1
USER=root
VENDOR=amd
VGAIMG=/tmp/images/OPNsense-201509141134-OpenSSL-vga-amd64.img
>>> 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: .......... done
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
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #22 on:
September 14, 2015, 12:03:26 pm »
make iso DEBUG=1
>>> Installing packages in /usr/local/stage...
+ BASEDIR=/usr/local/stage
+ shift
+ PKGLIST=opnsense
+ pkg -c /usr/local/stage remove -fya
pkg: No packages installed. Nothing to do!
+ [ -z opnsense ]
+ PKGFOUND=''
+ cd /usr/local/stage
+ find ./.pkg/All -name 'pkg-*.txz'
+ pkg -c /usr/local/stage info -F ./.pkg/All/pkg-1.5.6.txz
+ grep ^Name
+ awk '{ print $3; }'
+ PKGINFO=pkg
+ [ pkg = pkg ]
+ PKGFOUND=./.pkg/All/pkg-1.5.6.txz
+ pkg -c /usr/local/stage add ./.pkg/All/pkg-1.5.6.txz
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
+ PKGFOUND=''
+ cd /usr/local/stage
+ find ./.pkg/All -name 'opnsense-*.txz'
+ pkg -c /usr/local/stage info -F ./.pkg/All/opnsense-update-15.7.10.txz
+ grep ^Name
+ awk '{ print $3; }'
+ PKGINFO=opnsense-update
+ [ opnsense = opnsense-update ]
+ pkg -c /usr/local/stage info -F ./.pkg/All/opnsense-devel-15.7_934.txz
+ grep ^Name
+ awk '{ print $3; }'
+ PKGINFO=opnsense-devel
+ [ opnsense = opnsense-devel ]
+ 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
-------
Should there be a package of "opnsense"?
Logged
miac60
Newbie
Posts: 22
Karma: 2
Re: Build help
«
Reply #23 on:
September 14, 2015, 01:51:22 pm »
I try to change /usr/tools/build/iso.sh
setup_packages ${STAGEDIR} opnsense
to
setup_packages ${STAGEDIR} opnsense-devel
Than I do: make iso
And iso succesfuly created in /tmp/images/ dir
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Build help
«
Reply #24 on:
September 14, 2015, 04:07:43 pm »
I fixed this particular issue 5 days ago:
https://github.com/opnsense/tools/commit/e093cc884c0c35b6b9d7060dc288b2fbc6bfdca9
Please update your tools.git
Logged
Print
Pages:
1
[
2
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
[SOLVED] Build help