I downloaded osmesa 7.7 from mesa3d.org. Then I ran
make linux-x86

It built for a while, then it stopped with:

make[5]: Entering directory `/home/doriad/src/Mesa-7.7/src/gallium/drivers/svga'
gcc -c -I. -I../../../../src/gallium/include -I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers -I/src/gallium/include -I/src/gallium/auxiliary -I/src/gallium/drivers -I../../../../src/gallium/drivers/svga/include -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -O3 -g -fPIC -m32 -mmmx -msse -msse2 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_XSHM -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -I/usr/X11R6/include -std=c99 -ffast-math -fno-strict-aliasing -std=gnu99 -fvisibility=hidden -DHAVE_STDINT_H -DHAVE_SYS_TYPES_H svgadump/svga_shader_dump.c -o svgadump/svga_shader_dump.o
svgadump/svga_shader_dump.c: In function ‘svga_shader_dump’:
svgadump/svga_shader_dump.c:654:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[5]: *** [svgadump/svga_shader_dump.o] Error 1
make[5]: Leaving directory `/home/doriad/src/Mesa-7.7/src/gallium/drivers/svga'
make[4]: *** [default] Error 1
make[4]: Leaving directory `/home/doriad/src/Mesa-7.7/src/gallium/drivers'
make[3]: *** [default] Error 1
make[3]: Leaving directory `/home/doriad/src/Mesa-7.7/src/gallium'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/doriad/src/Mesa-7.7/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/home/doriad/src/Mesa-7.7'
make: *** [linux-x86] Error 2

Has anyone else had this problem?

Thanks,

David