Author Topic: Virtualbox fails with BCC not working  (Read 1397 times)

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3982
Virtualbox fails with BCC not working
« on: April 22, 2011, 09:37:54 PM »
As there's now no difference between the binaries downloaded by getVirtualBox and the result of compiling from source I thought I'd have a go at packaging it, because a package would be easier for those with multiple machines to maintain than a series of download scripts for different applications.

However, the compile fails at:
Code: [Select]

Checking for bcc:
  ** BCC not working!

configure.log contains:
Code: [Select]

bcc -B /usr/bin/ -C-c -3 -S -o /home/ken/src/rpm/BUILD/VirtualBox-4.0.6_OSE/.tmp_out /home/ken/src/rpm/BUILD/VirtualBox-4.0.6_OSE/.tmp_src.c
Unable to execute bcc-cpp.
** BCC not working!

Googling this suggests it is not a new check, but it is now failing. Does this indicate that the package containing bcc (dev86?) needs rebuilding, or is there now a missing dependency?
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Virtualbox fails with BCC not working
« Reply #1 on: April 24, 2011, 03:45:49 PM »
Hello kjpetrie,

apparently the -B option and the compiler default paths are actually ignored:
Quote
-B
prefix for executable search path (as usual; the search order is all paths specified using -B, in order, then the path given in the environment variable BCC_EXEC_PREFIX if that is set, then the compiled-in defaults (something like /usr/lib/bcc/ followed by /usr/bin/)

you should try to override this modifying PATH:
PATH=/usr/lib/bcc :/usr/bin:$PATH
export PATH

Made a very short test, and apparently the bcc-cpp error is gone, I'm not used with bcc source, can't assure it will work.
Of course, the above behavior suggest that dev86 package may be broken/misconfigured ....

AS

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3982
Re: Virtualbox fails with BCC not working
« Reply #2 on: April 25, 2011, 03:58:55 PM »
Thank you. I'll give it a try.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf