Skip to contentSkip to conversation

Problem in compiling qemu on Gentoo unstable

Qemu-devel Luca Ferroni 5 participants 5 messages Mar 23, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,
I have an up to date x86 Gentoo and I can't compile qemu-fast I get this warning followed by an error:

/usr/lib/libSDL.a(SDL_loadso.o)(.text+0x1b): In function `SDL_LoadObject':
: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lasound

I think this may depend on the way libsdl was compiled, in fact if I compile this lib without alsa support, I get the error in the flag -lggi

On my system I have

libsdl 1.2.7
alsa-lib 1.0.3b-r1
libggi 2.0.1-r1
libgii 0.8.1

I am using qemu cvs snapshot

Thanks

Signature · 6 lines
----------------------------------------
Non ci toglieranno mai....la LIBERTA'!!!
Luca Ferroni
ICQ #317977679
www.cs.unibo.it/~fferroni/
----------------------------------------
#1 lore raw
Quoted 3 lines · Luca Ferroni

Hi all,
I have an up to date x86 Gentoo and I can't compile qemu-fast I get this warning followed by an error:

[snip]

Quoted 7 lines

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux- gnu/bin/ld: cannot find -lasound

I think this may depend on the way libsdl was compiled, in fact if I compile this lib without alsa support, I get the error in the flag -lggi

Quoted 8 lines

On my system I have

libsdl 1.2.7
alsa-lib 1.0.3b-r1
libggi 2.0.1-r1
libgii 0.8.1

I am using qemu cvs snapshot

On my gentoo box I've been getting this whenever I want to compile the static targets of QEMU. There is no libasound.a in /usr/lib. The alsa package does not make a static version of it. I've emailed the ebuild maintainer but haven't received anything for two weeks.

So, if you don't make the static targets, I think things work. I'm not sure why some ebuilds do not make the static versions of the libraries too.

I see no workaround for this until the ebuilds are fixed.

Best,
Kyle

#2 lore raw
Quoted 6 lines

Hi all,
I have an up to date x86 Gentoo and I can't compile qemu-fast I get this warning followed by an error:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux- gnu/bin/ld: cannot find -lasound

Hey, I had the same error, and now it's ok for me. I tried to install a lot of librarie, but it works when I installed the library : "libnas2". I hope it helps...

#3 lore raw

Hello,

Am Dienstag, 23. März 2004 09:52 schrieb [email protected]:

Quoted 3 lines

Hey, I had the same error, and now it's ok for me. I tried to install a lot of librarie, but it works when I installed the library : "libnas2". I hope it helps...

You got qemu-fast compiling?
I usually get the following when trying to build qemu-fast on my gentoo (also x86) box:

for d in i386-user i386 i386-softmmu arm-user sparc-user ppc-user; do \
make -C $d all || exit 1 ; \
done
make[1]: Entering directory /home/gebner/data/tmp/qemu/i386-user' make[1]: Nothing to be done for all'.
make[1]: Leaving directory /home/gebner/data/tmp/qemu/i386-user' make[1]: Entering directory /home/gebner/data/tmp/qemu/i386'
gcc -static -Wl,-T,/home/gebner/tmp/qemu/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o sdl.o libqemu.a -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext -laa -L/usr/lib -Wl,-rpath,/usr/lib -laa -lm -L/usr/X11R6/lib -lX11 -lslang -lutil /usr/lib/libSDL.a(SDL_x11gl.lo)(.text+0x8d6): In function `X11_GL_LoadLibrary':
: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/X11R6/lib/libX11.a(x11trans.o)(.text+0xfe0): In function `_X11TransSocketINETConnect':
: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:
BFD 2.14.90.0.7 20031029 assertion fail elf.c:3460 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:
BFD 2.14.90.0.7 20031029 assertion fail elf.c:3460 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:
BFD 2.14.90.0.7 20031029 assertion fail elf.c:3460 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:
BFD 2.14.90.0.7 20031029 assertion fail elf.c:3460 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:
qemu-fast: Not enough room for program headers (allocated 5, need 7) /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:
final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1
make[1]: Leaving directory `/home/gebner/data/tmp/qemu/i386'
make: *** [all] Error 1

Gabriel.

#4 lore raw
In reply to Luca Ferroni
Quoted 10 lines · Luca Ferroni

Hi all,
I have an up to date x86 Gentoo and I can't compile qemu-fast I get this warning followed by an error:

/usr/lib/libSDL.a(SDL_loadso.o)(.text+0x1b): In function `SDL_LoadObject':
: warning: Using 'dlopen' in statically linked applications requires at : runtime the shared libraries from the glibc version used for linking

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/
ld: cannot find -lasound

Install the alsa-lib-devel package and retry ;)

Hetz