I have been trying to compile QEMU ever since I heard about it a couple of weeks ago. I keep running into the same error, everytime I try. Config works alright, then the compile complains that ld can't find -lm, which lib is that? I am not sure what I am missing. Any one have any insight to this? Here is the compile error:

gcc  -static -Wl,-T,/home/jeffrey/tmp/qemu-0.6.1/i386-vl.ld  -o qemu-fast vl.o osdep.o block.o readline.o monitor.o pci.o console.o block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o audio.o noaudio.o wavaudio.o sdlaudio.o ossaudio.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o cirrus_vga.o mixeng.o gdbstub.o sdl.o slirp/cksum.o slirp/if.o slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o slirp/bootp.o slirp/debug.o slirp/tftp.o libqemu.a  -lm -lz -L/usr/lib -lSDL -lpthread -lm -ldl -lasound -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext -lutil
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1