cc: assembler failed for tmp-divrem_2.s

Dennis Clarke dclarke at blastwave.org
Mon Mar 29 11:55:14 CEST 2010


>
> I know that I can build gmp 5.0.1 neatly with GCC but I had to try with
> Studio 11 again.
>
> Everything was going well until :
>
>  /opt/studio/SOS11/SUNWspro/bin/cc -c -DHAVE_CONFIG_H -I.
> -I../../gmp-5.0.1/mpn -I.. -D__GMP_WITHIN_GMP -I../../gmp-5.0.1
> -DOPERATION_divrem_2 -I/usr/local/include -fast -xstrconst -xildoff
> -xarch=pentium_pro -xnolibmil -Xa -Kpic -xregs=no%frameptr -xlibmieee -Qy
> -xdebugformat=dwarf -xs -D_TS_ERRNO tmp-divrem_2.s -KPIC -DPIC -o
> .libs/divrem_2.o
> Assembler:
>         "tmp-divrem_2.s", line 115 : Syntax error
>         Near line: "    or      %dl, %al"
>         "tmp-divrem_2.s", line 210 : Syntax error
>         Near line: "    or      %dl, %al"
> cc: assembler failed for tmp-divrem_2.s
> make[2]: *** [divrem_2.lo] Error 1
> make[2]: Leaving directory `/opt/csw/src/GNU/gmp-5.0.1-try1/mpn'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/csw/src/GNU/gmp-5.0.1-try1'
> *** Error code 2
> make: Fatal error: Command failed for target `all'
> $
>

The culprit is mpn/x86/divrem_2.asm which is some non-portable assembly.
There does seems to be a generic C language source at
mpn/generic/divrem_2.c but I can not recall the configure mechanisms to
select generic as opposed to hand rolled assembly in the build process.

-- 
Dennis




More information about the gmp-bugs mailing list