virtualbox install error on FreeBSD 8.1 AMD64

I want install Virtaulbox from port and I use FreeBSD 8.1 AMD 64 and I see this error
Code:
Requires 32-bit libraries installed under /usr/lib32.
Do: cd /usr/src; make build32 install32; ldconfig -v -m -R /usr/lib32
and I run this command
Code:
cd /usr/src; make build32 install32; ldconfig -v -m -R /usr/lib32
and after minute I see this error
Code:
/usr/local/libexec/ccache/world-cc -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common  -I/usr/src/lib/csu/i386-elf/../../libc/include -
std=gnu99  -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 -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -
Wredundant-decls -Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crt1_s.S
/usr/src/lib/csu/i386-elf/crt1_s.S: Assembler messages:
/usr/src/lib/csu/i386-elf/crt1_s.S:36: Error: suffix or operands invalid for `push'
/usr/src/lib/csu/i386-elf/crt1_s.S:39: Error: bad register expression
/usr/src/lib/csu/i386-elf/crt1_s.S:40: Error: bad register expression
/usr/src/lib/csu/i386-elf/crt1_s.S:42: Error: `8(%ebp)' is not a valid 64 bit base/index expression
/usr/src/lib/csu/i386-elf/crt1_s.S:43: Error: suffix or operands invalid for `push'
/usr/src/lib/csu/i386-elf/crt1_s.S:44: Error: `4(%ebp)' is not a valid 64 bit base/index expression
/usr/src/lib/csu/i386-elf/crt1_s.S:45: Error: suffix or operands invalid for `push'
*** Error code 1

Stop in /usr/src/lib/csu/i386-elf.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
ldconfig: warning: /usr/lib32: No such file or directory
and I have SRC directory in my system and I use Generic kernel
 
when I use this command
Code:
make -DNOCCACHE build32 install32
I see this error
Code:
===> lib/csu/i386-elf (obj,depend,all,install)
/usr/local/libexec/ccache/world-cc -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common  -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99  -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 -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crt1_s.S
/usr/src/lib/csu/i386-elf/crt1_s.S: Assembler messages:
/usr/src/lib/csu/i386-elf/crt1_s.S:36: Error: suffix or operands invalid for `push'
/usr/src/lib/csu/i386-elf/crt1_s.S:39: Error: bad register expression
/usr/src/lib/csu/i386-elf/crt1_s.S:40: Error: bad register expression
/usr/src/lib/csu/i386-elf/crt1_s.S:42: Error: `8(%ebp)' is not a valid 64 bit base/index expression
/usr/src/lib/csu/i386-elf/crt1_s.S:43: Error: suffix or operands invalid for `push'
/usr/src/lib/csu/i386-elf/crt1_s.S:44: Error: `4(%ebp)' is not a valid 64 bit base/index expression
/usr/src/lib/csu/i386-elf/crt1_s.S:45: Error: suffix or operands invalid for `push'
*** Error code 1

Stop in /usr/src/lib/csu/i386-elf.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
ldconfig: warning: /usr/lib32: No such file or directory
and I can not install virtualbox
 
I deinstall or remove
Code:
ccache
and all config files was depend on ccache ,and reboot system but I see that error again
 
after long time update port tree and packages , I can not install Virtualbox from port , so I install with
Code:
pkg_add
and it work good , but old version is installed and I can not update it with
Code:
portmaster
 
I had this same exact issue. I fixed with updating sources and rebuilding world with -DNOCCACHE=yes

ex:
[cmd=]make -DNOCCACHE=yes buildworld[/cmd]
 
VirtualBox install Error

Before going to the trouble of rebuilding the kernel, you may want to try a version of /etc/make.conf with no customizations. Essentially, save a copy of your current make.conf and try the install with an empty make.conf
Some ports are very sensitive about any extra commands in make.conf
 
Back
Top