View previous topic :: View next topic |
Author |
Message |
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Sat Nov 24, 2007 4:10 pm Post subject: Can not compile Qemu 0.9.0 |
|
|
Although, I have gcc 4.2.2, I emerged gcc 3.4.6 for that purpose, to install qemu. I did switch to the old version of gcc.
qemu-user does not compile. I do not see any error (!!!), only the following message:
Code: |
../dyngen -o op.h op.o
../dyngen -c -o opc.h op.o
../dyngen -g -o gen-op.h op.o
gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/target-arm -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0 -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/linux-user -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/linux-user/arm -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/fpu -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/slirp -c -o translate-op.o /var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/translate-op.c
gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/target-arm -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0 -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/linux-user -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/linux-user/arm -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/fpu -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/slirp -c -o translate-all.o /var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/translate-all.c
gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/target-arm -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0 -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/linux-user -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/linux-user/arm -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/fpu -I/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/slirp -c -o translate.o /var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/target-arm/translate.c
rm -f libqemu.a
ar rcs libqemu.a exec.o kqemu.o translate-op.o translate-all.o cpu-exec.o translate.o op.o fpu/softfloat.o op_helper.o helper.o disas.o i386-dis.o arm-dis.o
gcc -Wl,--as-needed -g -Wl,-shared -o qemu-arm main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o elfload.o linuxload.o flatload.o nwfpe/fpa11.o nwfpe/fpa11_cpdo.o nwfpe/fpa11_cpdt.o nwfpe/fpa11_cprt.o nwfpe/fpopcode.o nwfpe/single_cpdo.o nwfpe/double_cpdo.o nwfpe/extended_cpdo.o arm-semi.o libqemu.a gdbstub.o -lm
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
make[1]: Leaving directory `/var/tmp/portage/app-emulation/qemu-user-0.9.0/work/qemu-0.9.0/arm-linux-user'
*
* ERROR: app-emulation/qemu-user-0.9.0 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* qemu-user-0.9.0.ebuild, line 80: Called die
* The specific snippet of code:
* emake || die "make failed"
* The die message:
* make failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-emulation/qemu-user-0.9.0/temp/build.log'.
*
|
I could not find something usefull in the build.log file
Thank you |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Sat Nov 24, 2007 7:22 pm Post subject: |
|
|
On amd64 I can use gcc-3.4 to compile qemu, but on i686 it only compiled with gcc-3.3. Try that version instead. |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Sun Nov 25, 2007 8:40 am Post subject: |
|
|
whig wrote: | On amd64 I can use gcc-3.4 to compile qemu, but on i686 it only compiled with gcc-3.3. Try that version instead. |
I can not compile gcc-3.3.6
I am getting the following error:
Code: |
for f in $gf; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo " NULL};" >> tmp-gtyp.h
echo "static const char *lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
gf="cp f treelang"; \
for l in $gf; do \
echo "\"$l\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
/bin/sh /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/move-if-change tmp-gtyp.h gtyp-gen.h
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2
*
* ERROR: sys-devel/gcc-3.3.6-r1 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* ebuild.sh, line 1383: Called toolchain_src_compile
* toolchain.eclass, line 26: Called gcc_src_compile
* toolchain.eclass, line 1548: Called gcc_do_make
* toolchain.eclass, line 1422: Called die
* The specific snippet of code:
* emake \
* LDFLAGS="${LDFLAGS}" \
* STAGE1_CFLAGS="${STAGE1_CFLAGS}" \
* LIBPATH="${LIBPATH}" \
* BOOT_CFLAGS="${BOOT_CFLAGS}" \
* ${GCC_MAKE_TARGET} \
* || die "emake failed with ${GCC_MAKE_TARGET}"
* The die message:
* emake failed with bootstrap-lean
|
I have tried to compile gcc 3.3 with gcc-3.4 and gcc-4.2 |
|
Back to top |
|
|
dream_ericc n00b
Joined: 08 Feb 2007 Posts: 14 Location: Belgium
|
Posted: Sun Nov 25, 2007 5:37 pm Post subject: |
|
|
Hello
I have the same problem.
I have a Pentium4 HT, gcc 4.1.2 and 3.4.6 . I have read all messages I found in the forum and try everything I can.
But it doesn't work.
Qemu 0.9 refuse to install with gcc4 and fail with 3.4.6
Code: | c -o helper.o /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-ppc/helper.c
../softmmu_template.h: In function `__stq_mmu':
../softmmu_template.h:260: error: unable to find a register to spill in class `GENERAL_REGS'
../softmmu_template.h:260: error: this is the insn:
(insn:HI 337 317 338 13 ../softmmu_template.h:287 (parallel [
(set (reg:DI 0 ax [214])
(lshiftrt:DI (reg/v:DI 59 [ val ])
(subreg:QI (reg:SI 235) 0)))
(clobber (scratch:SI))
(clobber (reg:CC 17 flags))
]) 309 {lshrdi3_1} (nil)
(expr_list:REG_UNUSED (reg:CC 17 flags)
(expr_list:REG_UNUSED (scratch:SI)
(nil))))
../softmmu_template.h:260: confused by earlier errors, bailing out
make[1]: *** [op_helper.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/ppc-softmmu'
make: *** [subdir-ppc-softmmu] Error 2
*
* ERROR: app-emulation/qemu-softmmu-0.9.0-r1 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* qemu-softmmu-0.9.0-r1.ebuild, line 99: Called die
* The specific snippet of code:
* emake || die "make failed"
* The die message:
* make failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/temp/build.log'.
*
* Messages for package app-emulation/qemu-softmmu-0.9.0-r1:
*
* ERROR: app-emulation/qemu-softmmu-0.9.0-r1 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* qemu-softmmu-0.9.0-r1.ebuild, line 99: Called die
* The specific snippet of code:
* emake || die "make failed"
* The die message:
* make failed
|
I have try to modify the CFLAGS without success.
gcc 3.3.6 fail also to compile
Code: | bison: cannot open file `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.y--output=/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.c': No such file or directory
make[2]: *** [/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.h] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2
*
* ERROR: sys-devel/gcc-3.3.6-r1 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* ebuild.sh, line 1383: Called toolchain_src_compile
* toolchain.eclass, line 26: Called gcc_src_compile
* toolchain.eclass, line 1548: Called gcc_do_make
* toolchain.eclass, line 1422: Called die
* The specific snippet of code:
* emake \
* LDFLAGS="${LDFLAGS}" \
* STAGE1_CFLAGS="${STAGE1_CFLAGS}" \
* LIBPATH="${LIBPATH}" \
* BOOT_CFLAGS="${BOOT_CFLAGS}" \
* ${GCC_MAKE_TARGET} \
* || die "emake failed with ${GCC_MAKE_TARGET}"
* The die message:
* emake failed with bootstrap-lean
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-devel/gcc-3.3.6-r1/temp/build.log'.
*
* Messages for package sys-devel/gcc-3.3.6-r1:
*
* ERROR: sys-devel/gcc-3.3.6-r1 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* ebuild.sh, line 1383: Called toolchain_src_compile
* toolchain.eclass, line 26: Called gcc_src_compile
* toolchain.eclass, line 1548: Called gcc_do_make
* toolchain.eclass, line 1422: Called die
* The specific snippet of code:
* emake \
* LDFLAGS="${LDFLAGS}" \
* STAGE1_CFLAGS="${STAGE1_CFLAGS}" \
* LIBPATH="${LIBPATH}" \
* BOOT_CFLAGS="${BOOT_CFLAGS}" \
* ${GCC_MAKE_TARGET} \
* || die "emake failed with ${GCC_MAKE_TARGET}"
* The die message:
* emake failed with bootstrap-lean
* |
I really need qemu, it works perfectly with the previous version ...
here is my emerge --info
Code: | Portage 2.1.3.19 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.6.1-r0, 2.6.19-gentoo-r5-ericc i686)
=================================================================
System uname: 2.6.19-gentoo-r5-ericc i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Sun, 25 Nov 2007 09:46:01 +0000
app-shells/bash: 3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i586"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=i586"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://distfiles.gentoo.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo/"
LANG="en_US.utf8"
LINGUAS="en uk fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac alsa ao arj bash-completion berkdb bitmap-fonts boo bzip2 cdr cli cracklib crypt cups daap dbus directfb dri dts dvd dvdr encode esd exif fbcon firefox flac fortran ftp gdbm gif gnome gpm gtk gtk2 guile hal hardened iconv imagemagick ipv6 isdnlog jabber java javascript jpeg lha libnotify lm_sensors lua mad midi mikmod mono mp3 mudflap ncurses nls nptl nptlonly ocaml opengl openmp pam pcre perl plugins png ppds pppd python quicktime rar readline real reflection ruby sdl session spl sse2 ssl startup-notification tcl tcpd thunar-vfs tiff timidity tk truetype truetype-fonts type1-fonts unicode usb vnc vorbis win32codecs x86 xface xml xorg xv zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en uk fr" USERLAND="GNU" VIDEO_CARDS="fglrx radeon"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
ericc |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Mon Nov 26, 2007 7:29 pm Post subject: |
|
|
Even gcc 3.3.5 does not compile |
|
Back to top |
|
|
majin_boy n00b
Joined: 01 Feb 2006 Posts: 24
|
Posted: Mon Nov 26, 2007 9:54 pm Post subject: |
|
|
I am also having trouble compiling qemu/kvm due to the gcc3 dependency. Like MasterX I have gcc-4.2 installed. After some searching on these forums, I saw that libstdc++-v3 contains gcc3 (this compiles fine on my computer) from this thread. Forgive me for my noobishness, but is there some way the ebuild for qemu/kvm can be changed to use libstdc++-v3 instead of having to emerge gcc-3.3.6?
I have a Core Duo CPU with march=prescott and using ~x86
Thanks,
Alex. |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Tue Nov 27, 2007 2:01 am Post subject: |
|
|
The issue is that one of the qemu packages hasn't been ported to gcc4 yet |
|
Back to top |
|
|
dream_ericc n00b
Joined: 08 Feb 2007 Posts: 14 Location: Belgium
|
Posted: Tue Nov 27, 2007 8:37 am Post subject: |
|
|
Ok, I understand that not all the packages of qemu can be emerged with gcc4, but why I can't emerge gcc3.3.6 ?
Is it because I installed libstdc++-v3 ?
And why I can't emerge qemu with gcc3.4 ?
I have tried to clear my CFLAGS or to put something less restrictive as march=i586 , without succes with qemu nor gcc3.3 !!
ericc |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Tue Nov 27, 2007 9:08 pm Post subject: |
|
|
My 32 bit system has sys-libs/libstdc++-v3-3.3.6 so peaceful coexistence there. |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Wed Nov 28, 2007 5:01 pm Post subject: |
|
|
whig wrote: | My 32 bit system has sys-libs/libstdc++-v3-3.3.6 so peaceful coexistence there. |
I also have sys-libs/libstdc++-v3-3.3.6, but I can not emerge gcc-3.3.6 |
|
Back to top |
|
|
Asante n00b
Joined: 11 Jun 2007 Posts: 34 Location: Bochum (NRW-DE)
|
Posted: Fri Nov 30, 2007 10:03 pm Post subject: |
|
|
i've experienced the same problem, but with merging amarok, vlc and some other problems. it seems as if they also need gcc3.3.6, but they just won't merge :-/
update:
i've just read:
https://forums.gentoo.org/viewtopic-t-619574.html
this Code: | emerge -1 libstdc++-v3 | helped, i don't need gcc3.3.6.
perhaps this will help you, too |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Sat Dec 01, 2007 8:32 am Post subject: |
|
|
Asante wrote: | i've experienced the same problem, but with merging amarok, vlc and some other problems. it seems as if they also need gcc3.3.6, but they just won't merge :-/
update:
i've just read:
https://forums.gentoo.org/viewtopic-t-619574.html
this Code: | emerge -1 libstdc++-v3 | helped, i don't need gcc3.3.6.
perhaps this will help you, too |
I also have amarok emerged, but with gcc-4.1.2. The problem with qemu is that its libraries are not compatible with newer versions of gcc |
|
Back to top |
|
|
MasterX Veteran
Joined: 26 Jun 2003 Posts: 1165
|
Posted: Sun Dec 02, 2007 3:35 pm Post subject: |
|
|
Instead of merging Qemu, I decided to emerge VirtualBox. VIrtualBox does compile with gcc 4.1.2 and some people believe that it is better that Qemu.
Now, I have a problem with VirtualBox. It does not capture the keyboard. When I press the "Host Key" the mouse is confined within the VM's window. Nevertheless, the keyboard is not captured.
I am running VirtualBox 1.5.2. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|