Solved [Solved] Error on compiling on FreeBSD 10 on VirtualBox x86

I tried to make cd /usr/ports/ports-mgmt/portmaster/ && make install clean

And got that:

Code:
===> Building/installing dialog4ports as it is required for the config dialog
===>  Cleaning for pkg-1.2.4_1
===>  Cleaning for dialog4ports-0.1.5_2
===>   dialog4ports-0.1.5_2 depends on file: /usr/local/sbin/pkg - not found
===>    Verifying install for /usr/local/sbin/pkg in /usr/ports/ports-mgmt/pkg
===>  License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by pkg-1.2.4_1 for building
===>  Extracting for pkg-1.2.4_1
===>  License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by pkg-1.2.4_1 for building
=> SHA256 Checksum OK for pkg-1.2.4.tar.xz.
===>  Patching for pkg-1.2.4_1
===>  Applying FreeBSD patches for pkg-1.2.4_1
===>  Configuring for pkg-1.2.4_1
===>   FreeBSD 10 autotools fix applied to /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/external/expat/aclocal.m4
===>   FreeBSD 10 autotools fix applied to /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/external/expat/configure
===>   FreeBSD 10 autotools fix applied to /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/external/expat/m4/libtool.m4
===>   FreeBSD 10 autotools fix applied to /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/external/libyaml/aclocal.m4
===>   FreeBSD 10 autotools fix applied to /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/external/libyaml/configure
===>  Building for pkg-1.2.4_1
sed -e 's,%%PKGVERSION%%,1.2.4,' /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/Doxyfile.in > Doxyfile
===> libpkg (all)
Warning: Object directory not changed from original /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg
sed -e "s,__PREFIX__,/usr/local,g"  -e "s,__VERSION__,1.2.4,g"  pkg.pc.in > pkg.pc
sed -e 's,%%PKGVERSION%%,1.2.4,'    -e 's,%%PORTVERSION%%,1.2.4_1,'  pkg.h.in > pkg.h
gzip -cn pkg_printf.3 > pkg_printf.3.gz
gzip -cn pkg_repos.3 > pkg_repos.3.gz
gzip -cn pkg-repository.5 > pkg-repository.5.gz
cc  -O2 -pipe -fno-strict-aliasing  -Wall -Werror -I/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/include  -I/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src  -I/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/uthash  -Wno-pointer-sign  -Wno-strict-aliasing  -Wno-unused-function -std=gnu99 -Qunused-arguments -fstack-protector -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.c -o /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.o
/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.c:25:10: fatal error: file '/usr/include/math.h' modified since it was first processed
#include <math.h>
         ^
Stack dump:
0.	Program arguments: /usr/bin/cc -cc1 -triple i386-unknown-freebsd10.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name ucl_emitter.c -mrelocation-model static -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -target-cpu i486 -coverage-file /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.o -resource-dir /usr/bin/../lib/clang/3.3 -I /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/include -I /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src -I /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/uthash -O2 -Wall -Werror -Wno-pointer-sign -Wno-strict-aliasing -Wno-unused-function -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -std=gnu99 -fdebug-compilation-dir /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fdiagnostics-show-option -backend-option -vectorize-loops -o /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.o -x c /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.c 
1.	/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.c:25:2: current parser token 'include'
cc: error: unable to execute command: Segmentation fault (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: i386-unknown-freebsd10.0
Thread model: posix
cc: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
cc: error: unable to execute command: Segmentation fault (core dumped)
cc: note: diagnostic msg: Error generating preprocessed source(s).
*** [/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.o] Error code 254

make[8]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg
1 error

make[8]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg
*** [all] Error code 2

make[7]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4

make[7]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[6]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/ports-mgmt/dialog4ports
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/ports-mgmt/dialog4ports
===> Options unchanged
===>  License BSD accepted by the user
===>   portmaster-3.17.3 depends on file: /usr/local/sbin/pkg - not found
===>    Verifying install for /usr/local/sbin/pkg in /usr/ports/ports-mgmt/pkg
===>  Building for pkg-1.2.4_1
===> libpkg (all)
Warning: Object directory not changed from original /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg
cc  -O2 -pipe -fno-strict-aliasing  -Wall -Werror -I/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/include  -I/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src  -I/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/uthash  -Wno-pointer-sign  -Wno-strict-aliasing  -Wno-unused-function -std=gnu99 -Qunused-arguments -fstack-protector -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.c -o /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.o
In file included from /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.c:25:
/usr/include/math.h:285:10: error: expected ';' after top level declarator
double  lo double       expm1l(long double);
          ^
/usr/include/math.h:286:1: error: unknown type name 'lonlong'
lonlong lround(double);
^
/usr/include/math.h:458:38: error: expected ';' after top level declarator
long<U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000><U+0000>g double    fabsl(long double) __pure2;
                                                                                                                                                                                                                                                                     ^
In file included from /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.c:27:
/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_internal.h:27:10: fatal error: file '/usr/include/sys/types.h' modified since it was first processed
#include <sys/types.h>
         ^
Stack dump:
0.	Program arguments: /usr/bin/cc -cc1 -triple i386-unknown-freebsd10.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name ucl_emitter.c -mrelocation-model static -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -target-cpu i486 -coverage-file /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.o -resource-dir /usr/bin/../lib/clang/3.3 -I /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/include -I /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src -I /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/uthash -O2 -Wall -Werror -Wno-pointer-sign -Wno-strict-aliasing -Wno-unused-function -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -std=gnu99 -fdebug-compilation-dir /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fdiagnostics-show-option -backend-option -vectorize-loops -o /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.o -x c /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.c 
1.	/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_internal.h:27:2: current parser token 'include'
cc: error: unable to execute command: Segmentation fault (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: i386-unknown-freebsd10.0
Thread model: posix
cc: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
cc: error: unable to execute command: Segmentation fault (core dumped)
cc: note: diagnostic msg: Error generating preprocessed source(s).
*** [/usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg/../external/libucl/src/ucl_emitter.o] Error code 254

make[5]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg
1 error

make[5]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4/libpkg
*** [all] Error code 2

make[4]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4

make[4]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.2.4
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/ports-mgmt/portmaster
*** Error code 1

Stop.
make: stopped in /usr/ports/ports-mgmt/portmaster

And the same problem I got with any port. What is the problem?
 
Re: Error on any make install on FreeBSD 10 on VirtualBox x8

I can't :O

Code:
root@zabbix-agent:/home/ishayahu # portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found.
Fetching public key from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Thu Jul 17 04:11:19 SAMT 2014:
6d70a1403c385bded1b0c7fb052b21bd00073006253d91100% of   68 MB 4568 kBps 00m16s
Extracting snapshot... done.
Verifying snapshot integrity... gunzip: snap/f656d525fecb6a7d1a163ab1c0c6b1704892e0bd2a39002dbdd2c84800699ba5.gz: unexpected end of file
gunzip: snap/f656d525fecb6a7d1a163ab1c0c6b1704892e0bd2a39002dbdd2c84800699ba5.gz: uncompress failed
snapshot corrupt.
 
Re: Error on any make install on FreeBSD 10 on VirtualBox x8

I don't see there anything about it.
 
Re: Error on any make install on FreeBSD 10 on VirtualBox x8

Code:
FreeBSD/i386 10.0-RELEASE running as a guest operating system on VirtualBox can have a problem with disk I/O access. It depends on some specific hardware configuration and does not depend on a specific version of VirtualBox or host operating system.

It causes various errors and makes FreeBSD quite unstable. Although the cause is still unclear, disabling unmapped I/O works as a workaround. To disable it, choose Escape to loader prompt in the boot menu and enter the following lines from loader(8) prompt, after an OK:

set vfs.unmapped_buf_allowed=0
boot
Note that the following line has to be added to /boot/loader.conf after a boot. It disables unmapped I/O at every boot:

vfs.unmapped_buf_allowed=0
[2014-04-03 update] It has been reported that instability may be present on virtual machines running on other hypervisors, such as Xen or KVM.
 
Re: Error on any make install on FreeBSD 10 on VirtualBox x8

@kpa & @ljboiler
Thank you :OOO I didn't think that problem may be in VirtualBox :OOO
 
Last edited by a moderator:
Back
Top