Summary: | app-emulation/qemu-user-0.8.2 fails w/ gcc-4 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Henrique Dias <hdias> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | VERIFIED INVALID | ||
Severity: | major | ||
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Henrique Dias
2007-01-04 04:12:30 UTC
> !!! Qemu must build with GCC 3
You haven't read the message, have you?
(In reply to comment #1) > > !!! Qemu must build with GCC 3 > > You haven't read the message, have you? > I know. But in my Gentoo I have gcc4. To emerge qemu I also installed the gcc3. To select the compiler I use the EXTRA_ECONF variable: EXTRA_ECONF="--cc=gcc-3.4.6" emerge app-emulation/qemu But not work, because it selects the gcc4! The EXTRA_ECONF is to force the use of gcc3. To make this work you need change the ebuild file. If you compile from the sources is possible force the use of gcc3. EXTRA_ECONF plain *won't* work for selecting a compiler, no clue whatsoever where did you get the idea that it would. gcc-config -h (In reply to comment #4) > gcc-config -h > http://forums.gentoo.org/viewtopic-t-520162-highlight-extraeconf.html Not work with qemu, but if you add the ${EXTRA_ECONF} to the ebuild files work. Example for app-emulation/qemu-user. Look at ./configure ... src_compile() { #Let the application set its cflags unset CFLAGS # Switch off hardened tech filter-flags -fpie -fstack-protector myconf="--disable-gcc-check" set_target_list # --interp-prefix=${RUNTIME_PATH}/qemu-%M ./configure \ --prefix=/usr \ --target-list="${TARGET_LIST}" \ --enable-slirp \ --kernel-path=${KV_DIR} \ ${myconf} \ ${EXTRA_ECONF} \ || die "could not configure" emake || die "make failed" } ... Stop reopening this bug, we won't be adding any EXTRA_ECONF to the ebuild, as said, switch your compiler _properly_ Closed. |