* [Qemu-devel] Problem compiling qemu on Mandrake 9.2
@ 2004-03-05 22:35 Stealth Dave
2004-03-10 8:14 ` Renzo Davoli
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Stealth Dave @ 2004-03-05 22:35 UTC (permalink / raw)
To: qemu-devel
I'm having quite a bit of trouble getting qemu to compile under Mandrake
9.2, and I think that the problem lies somewhere in the glibc library
that Mandrake uses and that qemu expects.
Whenever I try to compile qemu, I get the following error:
gcc -static
-Wl,-T,/home/stealthdave/download/emulators/qemu/i386-vl.ld -o
qemu-fast vl.o block.o ide.o vga.o sb16.o dma.o oss.o fdc.o osdep.o
sdl.o libqemu.a -lm -L/usr/lib -lSDL -lpthread -lm -ldl -lasound
-laudio -lXt -L/usr/X11R6/lib -lX11 -lXext
/usr//bin/ld: cannot find -lm
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1
make[1]: Leaving directory `/mnt/data/download/emulators/qemu/i386'
make: *** [all] Error 1
I get the same error when trying to compile either 0.5.2 or current
cvs. And it's not just the math library. When I try to go in and edit
out the math library dependancy, it complains that it can't find
-lpthread, the next library in the list. I have all the glibc and
glibc-devel packages installed. Here's my glibc versions:
glibc-2.3.2-14mdk
glibc-devel-2.3.2-14mdk
libc-base-5.3.12-38mdk
I installed that last one to try and get qemu to compile. Any help in
getting this to compile would be greatly appreciated.
Thanks,
- Dave
--
Stealth Dave <stealthdave@stilldesigning.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Problem compiling qemu on Mandrake 9.2
2004-03-05 22:35 [Qemu-devel] Problem compiling qemu on Mandrake 9.2 Stealth Dave
@ 2004-03-10 8:14 ` Renzo Davoli
2004-03-10 8:17 ` Herbert Poetzl
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Renzo Davoli @ 2004-03-10 8:14 UTC (permalink / raw)
To: qemu-devel
> gcc -static
> -Wl,-T,/home/stealthdave/download/emulators/qemu/i386-vl.ld -o
> qemu-fast vl.o block.o ide.o vga.o sb16.o dma.o oss.o fdc.o osdep.o
> sdl.o libqemu.a -lm -L/usr/lib -lSDL -lpthread -lm -ldl -lasound
> -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext
> /usr//bin/ld: cannot find -lm
it seems that your likage editor does not recognize the -lm option.
This problem could be caused by the non existence of the libm.a or
libm.so library (I feel this is highly improbable).
I think that your linkage editor ld get confused as the -lm option
appears twice in the command, thus it tries to find a file named -lm
(in fact it says -lm not found, it is not looking for libm.a).
I would edit the Makefile by hand to remove the first -lm.
renzo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Problem compiling qemu on Mandrake 9.2
2004-03-05 22:35 [Qemu-devel] Problem compiling qemu on Mandrake 9.2 Stealth Dave
2004-03-10 8:14 ` Renzo Davoli
@ 2004-03-10 8:17 ` Herbert Poetzl
2004-03-12 10:13 ` Mark IJbema
2004-03-10 18:57 ` Richard Zidlicky
` (2 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Herbert Poetzl @ 2004-03-10 8:17 UTC (permalink / raw)
To: Stealth Dave; +Cc: qemu-devel
On Fri, Mar 05, 2004 at 02:35:35PM -0800, Stealth Dave wrote:
> I'm having quite a bit of trouble getting qemu to compile under Mandrake
> 9.2, and I think that the problem lies somewhere in the glibc library
> that Mandrake uses and that qemu expects.
>
> Whenever I try to compile qemu, I get the following error:
you are missing the glibc-static-devel-*
(-static compiles require the static .a libs)
btw, you can get Mandrake RPMs here ...
http://vserver.13thfloor.at/Stuff/QEMU/
HTH,
Herbert
PS: does anybody know why this email took 5 days
to reach me? (I'm subscribed to the ml)
> gcc -static
> -Wl,-T,/home/stealthdave/download/emulators/qemu/i386-vl.ld -o
> qemu-fast vl.o block.o ide.o vga.o sb16.o dma.o oss.o fdc.o osdep.o
> sdl.o libqemu.a -lm -L/usr/lib -lSDL -lpthread -lm -ldl -lasound
> -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext
> /usr//bin/ld: cannot find -lm
> collect2: ld returned 1 exit status
> make[1]: *** [qemu-fast] Error 1
> make[1]: Leaving directory `/mnt/data/download/emulators/qemu/i386'
> make: *** [all] Error 1
>
> I get the same error when trying to compile either 0.5.2 or current
> cvs. And it's not just the math library. When I try to go in and edit
> out the math library dependancy, it complains that it can't find
> -lpthread, the next library in the list. I have all the glibc and
> glibc-devel packages installed. Here's my glibc versions:
>
> glibc-2.3.2-14mdk
> glibc-devel-2.3.2-14mdk
> libc-base-5.3.12-38mdk
>
> I installed that last one to try and get qemu to compile. Any help in
> getting this to compile would be greatly appreciated.
>
> Thanks,
> - Dave
>
> --
> Stealth Dave <stealthdave@stilldesigning.com>
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/qemu-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Problem compiling qemu on Mandrake 9.2
2004-03-05 22:35 [Qemu-devel] Problem compiling qemu on Mandrake 9.2 Stealth Dave
2004-03-10 8:14 ` Renzo Davoli
2004-03-10 8:17 ` Herbert Poetzl
@ 2004-03-10 18:57 ` Richard Zidlicky
2004-03-12 3:21 ` Tim
2004-03-12 20:00 ` Gabriel Ebner
4 siblings, 0 replies; 8+ messages in thread
From: Richard Zidlicky @ 2004-03-10 18:57 UTC (permalink / raw)
To: qemu-devel
On Fri, Mar 05, 2004 at 02:35:35PM -0800, Stealth Dave wrote:
> I'm having quite a bit of trouble getting qemu to compile under Mandrake
> 9.2, and I think that the problem lies somewhere in the glibc library
> that Mandrake uses and that qemu expects.
>
> Whenever I try to compile qemu, I get the following error:
>
> gcc -static
> -Wl,-T,/home/stealthdave/download/emulators/qemu/i386-vl.ld -o
> qemu-fast vl.o block.o ide.o vga.o sb16.o dma.o oss.o fdc.o osdep.o
> sdl.o libqemu.a -lm -L/usr/lib -lSDL -lpthread -lm -ldl -lasound
> -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext
> /usr//bin/ld: cannot find -lm
> collect2: ld returned 1 exit status
> make[1]: *** [qemu-fast] Error 1
> make[1]: Leaving directory `/mnt/data/download/emulators/qemu/i386'
> make: *** [all] Error 1
try an explicit "-L /lib/path", if that doesnt help edit i386-vl.ld
and add /lib and /usr/lib to SEARCH_DIR.
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Problem compiling qemu on Mandrake 9.2
2004-03-05 22:35 [Qemu-devel] Problem compiling qemu on Mandrake 9.2 Stealth Dave
` (2 preceding siblings ...)
2004-03-10 18:57 ` Richard Zidlicky
@ 2004-03-12 3:21 ` Tim
2004-03-12 20:00 ` Gabriel Ebner
4 siblings, 0 replies; 8+ messages in thread
From: Tim @ 2004-03-12 3:21 UTC (permalink / raw)
To: qemu-devel
> Whenever I try to compile qemu, I get the following error:
>
> gcc -static
> -Wl,-T,/home/stealthdave/download/emulators/qemu/i386-vl.ld -o
> qemu-fast vl.o block.o ide.o vga.o sb16.o dma.o oss.o fdc.o osdep.o
> sdl.o libqemu.a -lm -L/usr/lib -lSDL -lpthread -lm -ldl -lasound
> -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext
> /usr//bin/ld: cannot find -lm
> collect2: ld returned 1 exit status
> make[1]: *** [qemu-fast] Error 1
> make[1]: Leaving directory `/mnt/data/download/emulators/qemu/i386'
> make: *** [all] Error 1
Don't you need '.a' library files for your libraries when you are
compiling static instead of just '.so' files? It has been a while since
I did this stuff, maybe I am just reaching here...
tim
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Problem compiling qemu on Mandrake 9.2
2004-03-10 8:17 ` Herbert Poetzl
@ 2004-03-12 10:13 ` Mark IJbema
2004-03-12 18:53 ` Herbert Poetzl
0 siblings, 1 reply; 8+ messages in thread
From: Mark IJbema @ 2004-03-12 10:13 UTC (permalink / raw)
To: qemu-devel
On Wed, Mar 10, 2004 at 09:17:03AM +0100, Herbert Poetzl wrote:
> PS: does anybody know why this email took 5 days
> to reach me? (I'm subscribed to the ml)
It seems it got stuck on the mailinglist system, check the headers if
you wonder why a mail took so long :)
Mark
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Problem compiling qemu on Mandrake 9.2
2004-03-12 10:13 ` Mark IJbema
@ 2004-03-12 18:53 ` Herbert Poetzl
0 siblings, 0 replies; 8+ messages in thread
From: Herbert Poetzl @ 2004-03-12 18:53 UTC (permalink / raw)
To: Mark IJbema; +Cc: qemu-devel
On Fri, Mar 12, 2004 at 11:13:29AM +0100, Mark IJbema wrote:
> On Wed, Mar 10, 2004 at 09:17:03AM +0100, Herbert Poetzl wrote:
> > PS: does anybody know why this email took 5 days
> > to reach me? (I'm subscribed to the ml)
>
> It seems it got stuck on the mailinglist system, check the headers if
> you wonder why a mail took so long :)
hmm, yeah, right, but it was more a rhetorical
kind of question, but maybe I should make this
clear the next time ...
anyway, thanks for the info ;)
best,
Herbert
> Mark
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Problem compiling qemu on Mandrake 9.2
2004-03-05 22:35 [Qemu-devel] Problem compiling qemu on Mandrake 9.2 Stealth Dave
` (3 preceding siblings ...)
2004-03-12 3:21 ` Tim
@ 2004-03-12 20:00 ` Gabriel Ebner
4 siblings, 0 replies; 8+ messages in thread
From: Gabriel Ebner @ 2004-03-12 20:00 UTC (permalink / raw)
To: qemu-devel
Hello,
Am Freitag, 5. März 2004 23:35 schrieb Stealth Dave:
> gcc -static
> -Wl,-T,/home/stealthdave/download/emulators/qemu/i386-vl.ld -o
> qemu-fast vl.o block.o ide.o vga.o sb16.o dma.o oss.o fdc.o osdep.o
> sdl.o libqemu.a -lm -L/usr/lib -lSDL -lpthread -lm -ldl -lasound
> -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext
> /usr//bin/ld: cannot find -lm
> collect2: ld returned 1 exit status
> make[1]: *** [qemu-fast] Error 1
> make[1]: Leaving directory `/mnt/data/download/emulators/qemu/i386'
> make: *** [all] Error 1
Since we're talking about compilation errors I think I should post my errors:
gcc -static -Wl,-T,/home/gebner/tmp/qemu/i386-vl.ld -o qemu-fast vl.o
block.o ide.o vga.o sb16.o dma.o oss.o fdc.o osdep.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
/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] Fehler 1
make[1]: Leaving directory `/home/gebner/data/tmp/qemu/i386'
make: *** [all] Fehler 1
I'm running up-to-date x86 gentoo.
Gabriel.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-03-12 23:14 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-05 22:35 [Qemu-devel] Problem compiling qemu on Mandrake 9.2 Stealth Dave
2004-03-10 8:14 ` Renzo Davoli
2004-03-10 8:17 ` Herbert Poetzl
2004-03-12 10:13 ` Mark IJbema
2004-03-12 18:53 ` Herbert Poetzl
2004-03-10 18:57 ` Richard Zidlicky
2004-03-12 3:21 ` Tim
2004-03-12 20:00 ` Gabriel Ebner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).