[PATCH] Improve and consolidate sparc PIC assembler.

Mark Ashley mark at ibiblio.org
Wed May 8 03:19:26 CEST 2013


I've removed the perl substitution line and the behaviour hasn't changed

    cd /var/tmp
    rm -rf gmp-5.1.1 /gmp
    xz -dc /usr/local/src/gnu/gmp-5.1.1.tar.xz | gtar -xvf -
    mkdir /gmp
    cd gmp-5.1.1
    setenv M4 /usr/local/bin/m4
    ./configure --prefix=/gmp
    gmake

[...]
libtool: compile:  cc -xtarget=ultra -m64 -xcode=pic32 -D_STDC_C99=
-DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_perfpow
-I/usr/local/include -xO3 -xarch=v9 -xchip=generic -c perfpow.c -o
perfpow.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile --tag=CC ../mpn/m4-ccas
--m4="/usr/local/bin/m4" cc -xtarget=ultra -m64 -xcode=pic32 -D_STDC_C99=
-c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo gcd_1
| sed 's/_$//'`  -I/usr/local/include  -xO3 -xarch=v9 -xchip=generic  `test
-f 'gcd_1.asm' || echo './'`gcd_1.asm
libtool: compile:  ../mpn/m4-ccas --m4=/usr/local/bin/m4 cc -xtarget=ultra
-m64 -xcode=pic32 -D_STDC_C99= -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_gcd_1 -I/usr/local/include -xO3
-xarch=v9 -xchip=generic gcd_1.asm  -KPIC -DPIC -o .libs/gcd_1.o
/usr/local/bin/m4  -D_STDC_C99= -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP
-DOPERATION_gcd_1 -DPIC gcd_1.asm >tmp-gcd_1.s
 cc -xtarget=ultra -m64 -xcode=pic32 -D_STDC_C99= -c -DHAVE_CONFIG_H -I.
-I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_gcd_1 -I/usr/local/include -xO3
-xarch=v9 -xchip=generic tmp-gcd_1.s -KPIC -DPIC -o .libs/gcd_1.o
cc: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs
libtool: compile:  ../mpn/m4-ccas --m4=/usr/local/bin/m4 cc -xtarget=ultra
-m64 -xcode=pic32 -D_STDC_C99= -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_gcd_1 -I/usr/local/include -xO3
-xarch=v9 -xchip=generic gcd_1.asm -o gcd_1.o >/dev/null 2>&1
gmake[2]: *** [gcd_1.lo] Error 1
gmake[2]: Leaving directory `/var/tmp/gmp-5.1.1/mpn'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/gmp-5.1.1'
gmake: *** [all] Error 2

Repeating the last command without redirects:

host:/var/tmp/gmp-5.1.1/mpn root# ../mpn/m4-ccas --m4=/usr/local/bin/m4 cc
-xtarget=ultra -m64 -xcode=pic32 -D_STDC_C99= -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_gcd_1 -I/usr/local/include -xO3
-xarch=v9 -xchip=generic gcd_1.asm -o gcd_1.o
/usr/local/bin/m4  -D_STDC_C99= -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP
-DOPERATION_gcd_1 gcd_1.asm >tmp-gcd_1.s
 cc -xtarget=ultra -m64 -xcode=pic32 -D_STDC_C99= -c -DHAVE_CONFIG_H -I.
-I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_gcd_1 -I/usr/local/include -xO3
-xarch=v9 -xchip=generic tmp-gcd_1.s -o gcd_1.o
cc: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs
/opt/solarisstudio12.3/prod/bin/fbe: "tmp-gcd_1.s": , approx line 282:
internal error: pic_relocs(): hh reltype?
cc: fbe failed for tmp-gcd_1.s



On Wed, May 8, 2013 at 2:27 AM, Torbjorn Granlund <tg at gmplib.org> wrote:

> Mark Ashley <mark at ibiblio.org> writes:
>
>   I just read through the thread with this topic but couldn't see anything
>   conclusive I should try, since it's already patched up to 118683-10. Any
>   assistance most welcome :) I'm hoping it's not related to me substituting
>   -m64 to shut up the compiler.
>
> Please try an unmodified GMP.
>
> --
> Torbjörn
>


More information about the gmp-bugs mailing list