On Fri, Feb 20, 2009 at 12:56 PM, Harry Putnam <[email protected]> wrote: > Can anyone tell me if there is some way to tell emerge to use a > specific compiler during an emerge? > > I get this output during emerge of virutalbox-ose. Note that it says > to use a version of gcc earlier than 4.3. Is there some way to do > that without causing grief somewhere else? > > [...] > VirtualBox-2.0.6-OSE.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] > * checking ebuild checksums ;-) ... [ ok > ] > * checking auxfile checksums ;-) ... [ ok > ] > * checking miscfile checksums ;-) ... [ ok > ] >>>> cfg-update-1.8.2-r1: Creating checksum index... > * there are known problems with gcc 4.3 and the virtualbox > * recompiler stuff. Please use at least a version of gcc < 4.3 > * > * ERROR: app-emulation/virtualbox-ose-2.0.6 failed. > * Call stack: > * ebuild.sh, line 49: Called pkg_setup > * virtualbox-ose-2.0.6.ebuild, line 54: Called die > * The specific snippet of code: > * die "gcc 4.3 cannot build the virtualbox recompiler" > * The die message: > * gcc 4.3 cannot build the virtualbox recompiler > [...]
I guess you can just use gcc-config to change versions, compile it, then gcc-config back to normal... Maybe there's a way to define it at the package level (so you don't have to do that every time there's an update) but I don't know it off the top of my head.

