Jens Geiregat wrote: > Hi, > > I'm trying to compile the bzip2 benchmark of the SPEC CPU2006 > benchmark suite [1] with gcc-4.1.3 (part of Ubuntu Gutsy) and with the > -msoft-float flag enabled. Unfortunately, I keep getting these errors: > gcc-4.1 -static -msoft-float -c -o spec.o -DSPEC_CPU -DNDEBUG -O2 spec.c > gcc-4.1 -static -msoft-float -c -o blocksort.o -DSPEC_CPU -DNDEBUG > -O2 blocksort.c > gcc-4.1 -static -msoft-float -c -o bzip2.o -DSPEC_CPU -DNDEBUG -O2 bzip2.c > [...] > gcc-4.1 -static -msoft-float -O2 -Wl,-Map,bzip2.map spec.o > blocksort.o bzip2.o bzlib.o compress.o crctable.o decompress.o > huffman.o randtable.o -o bzip2 -lgcc > spec.o: In function `ran': > spec.c:(.text+0x49): undefined reference to `__floatsisf' > spec.c:(.text+0x5a): undefined reference to `__mulsf3' > spec.c:(.text+0x62): undefined reference to `__extendsfdf2' > [...] > > Searching the web and this mailinglist gave me no solution to my > problem. Do I need to compile gcc with some special config arguments? > Is there a library that I need to add to the command line? You'd need to build gcc with soft-float multilibs. I'm not sure that this can be supported at all on a GNU/Linux i386 system; I think you'd have to have a soft-float version of glibc, for example. Though not impossible, this would be difficult and pointless. Andrew.