Error building 5.0.1 on Solaris 8 (x86)

Daniel Richard G. skunk at iSKUNK.ORG
Wed Apr 27 09:30:15 CEST 2011

Encountered the following:

/bin/bash ../libtool --mode=compile --tag=CC /tmp/gmp-5.0.1/mpn/m4-ccas --m4="m4" tg-gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I/tmp/gmp-5.0.1/mpn -I.. -D__GMP_WITHIN_GMP -I/tmp/gmp-5.0.1 -DOPERATION_`echo divrem_2 | sed 's/_$//'`    -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium2 -march=pentium2  `test -f 'divrem_2.asm' || echo '/tmp/gmp-5.0.1/mpn/'`divrem_2.asm
libtool: compile:  /tmp/gmp-5.0.1/mpn/m4-ccas --m4=m4 tg-gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I/tmp/gmp-5.0.1/mpn -I.. -D__GMP_WITHIN_GMP -I/tmp/gmp-5.0.1 -DOPERATION_divrem_2 -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium2 -march=pentium2 divrem_2.asm  -fPIC -DPIC -o divrem_2.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_divrem_2 -DPIC divrem_2.asm >tmp-divrem_2.s
 tg-gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I/tmp/gmp-5.0.1/mpn -I.. -D__GMP_WITHIN_GMP -I/tmp/gmp-5.0.1 -DOPERATION_divrem_2 -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium2 -march=pentium2 tmp-divrem_2.s -fPIC -DPIC -o divrem_2.o
        "tmp-divrem_2.s", line 116 : Syntax error
        "tmp-divrem_2.s", line 211 : Syntax error
gmake[2]: *** [divrem_2.lo] Error 1
gmake[2]: Leaving directory `/tmp/gmp-build/mpn'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/gmp-build'
gmake: *** [all] Error 2

Below are excerpts from the offending tmp-divrem_2.s file:

        seta    %dl
        cmp     20(%esp), %ebp
        setae   %al
        or      %dl, %al    <---- line 116
        jne     .L35
        mov     60(%esp), %esi          
        lea     -3(%esi,%ecx), %edi
        test    %edi, %edi
.Lfix:  seta    %dl
        cmp     20(%esp), %ebp
        setae   %al
        or      %dl, %al    <---- line 211
        je      .Lbck
        inc     %edi
        sub     20(%esp), %ebp


NAME = Daniel Richard G.     _\|/_    Remember, skunks
MAIL = skunk at iSKUNK.ORG     (/o|o\) _- don't smell bad---
MAIL+= skunk at alum.MIT.EDU   < (^),>     it's the people who
WWW  = (not there yet!)      /   \      annoy us that do!

More information about the gmp-bugs mailing list