Franck MICHEL on Tue, 14 Oct 2003 11:06:34 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: 64 bit installation on sparcv9


Igor Schein wrote:
>You need to do either
>
>env CC="gcc -m64" ./Configure ...
>
>or
>
>env CC="cc -xarch=v9" CFLAGS="-xarch=v9" ./Configure ...
>
>depending on whethere you're using GNU cc or Forte cc.


Unfortunately, it does not work. I've tried Pari 2.2.7, Pari 2.2.7 with
GMP, and Pari 2.1.5, with Gcc and Forte cc, and I always failed. I would
like to use Pari 2.2.7 with GMP but I prefered to check also other
versions; errors messages are not the same.

Below are the results of my trials.

Cheers
 
 Franck

----------------------------------------------------------------
Installation of Pari 2.2.7 (development CHANGES-1.835) with gcc

env CC="gcc -m64" ./Configure --prefix=/scratch/fmichel/gp64cvs
No error message

make gp
Stop after:

gcc -m64  -o libpari-2.2.so.7.0.0 -shared -mimpure-text -O3 -DGCC_INLINE
-Wall -fomit-frame-pointer    -DBOTH_GNUPLOT_AND_X11
-Wl,-G,-h,libpari-2.2.so.7 kernel.o mp.o alglin1.o alglin2.o arith1.o
arith2.o base1.o base2.o base3.o base4.o base5.o bibli1.o bibli2.o buch1.o
buch2.o buch3.o buch4.o galconj.o gen1.o gen2.o gen3.o ifactor1.o perm.o
polarit1.o polarit2.o polarit3.o rootpol.o subcyclo.o subgroup.o trans1.o
trans2.o trans3.o aprcl.o elliptic.o galois.o groupid.o kummer.o mpqs.o
nffactor.o part.o stark.o subfield.o thue.o anal.o compat.o errmsg.o es.o
init.o members.o sumiter.o mpinl.o -lc -ldl -lm
ld: fatal: file kernel.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to libpari-2.2.so.7.0.0
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libpari-2.2.so.7.0.0'
Current working directory
/dsk2/scratch/fmichel/parisource/pari/Osolaris-sparcv9
*** Error code 1
make: Fatal error: Command failed for target `gp'

----------------------------------------------------------------
Installation of Pari 2.2.7 (development CHANGES-1.835) GMP Kernel with gcc

env CC="gcc -m64" ./Configure --with-gmp --prefix=/scratch/fmichel/gp64gmpcvs
Message:
...Found libgmp in /usr/local/lib
...Found gmp header in /usr/local/include
ld.so.1: solaris-sparcv9-rlv4531: fatal: /usr/local/lib/libgcc_s.so.1:
wrong ELF class: ELFCLASS32
Using GNU MP, version

make gp
Stop after:
gcc -m64  -o libpari-2.2.so.7.0.0 -shared -mimpure-text -O3 -DGCC_INLINE
-Wall -fomit-frame-pointer    -DBOTH_GNUPLOT_AND_X11
-Wl,-G,-h,libpari-2.2.so.7 kernel.o mp.o alglin1.o alglin2.o arith1.o
arith2.o base1.o base2.o base3.o base4.o base5.o bibli1.o bibli2.o buch1.o
buch2.o buch3.o buch4.o galconj.o gen1.o gen2.o gen3.o ifactor1.o perm.o
polarit1.o polarit2.o polarit3.o rootpol.o subcyclo.o subgroup.o trans1.o
trans2.o trans3.o aprcl.o elliptic.o galois.o groupid.o kummer.o mpqs.o
nffactor.o part.o stark.o subfield.o thue.o anal.o compat.o errmsg.o es.o
init.o members.o sumiter.o mpinl.o -lc -ldl -lm -L/usr/local/lib -lgmp
ld: fatal: file kernel.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to libpari-2.2.so.7.0.0
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libpari-2.2.so.7.0.0'
Current working directory
/dsk2/scratch/fmichel/parisource/pari/Osolaris-sparcv9
*** Error code 1
make: Fatal error: Command failed for target `gp'


----------------------------------------------------------------
Installation of Pari 2.2.7 (development CHANGES-1.835) with Forte cc

env CC="cc -xarch=v9" CFLAGS="-xarch=v9" ./Configure
--prefix=/scratch/fmichel/gp64cvscc
No error message

make gp
Stop after:
cc -xarch=v9  -o libpari-2.2.so.7.0.0 -G -h libpari-2.2.so.7 kernel.o mp.o
alglin1.o alglin2.o arith1.o arith2.o base1.o base2.o base3.o base4.o
base5.o bibli1.o bibli2.o buch1.o buch2.o buch3.o buch4.o galconj.o gen1.o
gen2.o gen3.o ifactor1.o perm.o polarit1.o polarit2.o polarit3.o rootpol.o
subcyclo.o subgroup.o trans1.o trans2.o trans3.o aprcl.o elliptic.o
galois.o groupid.o kummer.o mpqs.o nffactor.o part.o stark.o subfield.o
thue.o anal.o compat.o errmsg.o es.o init.o members.o sumiter.o mpinl.o -lc
-ldl -lm
ld: fatal: file kernel.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to libpari-2.2.so.7.0.0
*** Error code 1
make: Fatal error: Command failed for target `libpari-2.2.so.7.0.0'
Current working directory
/dsk2/scratch/fmichel/parisource/pari1/Osolaris-sparcv9
*** Error code 1
make: Fatal error: Command failed for target `gp'


----------------------------------------------------------------
Installation of Pari 2.2.7 (development CHANGES-1.835) GMP Kernel with
Forte cc

env CC="cc -xarch=v9" CFLAGS="-xarch=v9" ./Configure --with-gmp
--prefix=/scratch/fmichel/gp64gmpcvscc

make gp
Stops after:
cc -xarch=v9  -o libpari-2.2.so.7.0.0 -G -h libpari-2.2.so.7 kernel.o mp.o
alglin1.o alglin2.o arith1.o arith2.o base1.o base2.o base3.o base4.o
base5.o bibli1.o bibli2.o buch1.o buch2.o buch3.o buch4.o galconj.o gen1.o
gen2.o gen3.o ifactor1.o perm.o polarit1.o polarit2.o polarit3.o rootpol.o
subcyclo.o subgroup.o trans1.o trans2.o trans3.o aprcl.o elliptic.o
galois.o groupid.o kummer.o mpqs.o nffactor.o part.o stark.o subfield.o
thue.o anal.o compat.o errmsg.o es.o init.o members.o sumiter.o mpinl.o -lc
-ldl -lm -L/usr/local/lib -lgmp
ld: fatal: file kernel.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to libpari-2.2.so.7.0.0
*** Error code 1
make: Fatal error: Command failed for target `libpari-2.2.so.7.0.0'
Current working directory
/dsk2/scratch/fmichel/parisource/pari1/Osolaris-sparcv9
*** Error code 1
make: Fatal error: Command failed for target `gp'

----------------------------------------------------------------
Installation of Pari 2.1.5 with gcc

env CC="gcc -m64" ./Configure --prefix=/scratch/fmichel/gp64
No error message

make gp
Output:
cd Osolaris-sparcv9; make gp
gcc -m64 -c -O3 -DGCC_INLINE -Wall -Wno-implicit -fomit-frame-pointer -I.
-I../src/headers -I../src/language -I/usr/local/include -o gp.o ../src/gp/gp.c
In file included from ../src/headers/pari.h:94,
                 from ../src/gp/gp.c:21:
pariinl.h:58: warning: call-clobbered register used for global register
variable
pariinl.h: In function `mulssmod':
pariinl.h:887: error: asm-specifier for variable `hiremainder' conflicts
with asm clobber list
pariinl.h:887: confused by earlier errors, bailing out
*** Error code 1
make: Fatal error: Command failed for target `gp.o'
Current working directory
/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9
*** Error code 1
make: Fatal error: Command failed for target `gp'


----------------------------------------------------------------
Installation of Pari 2.1.5 with Forte cc

env CC="cc -xarch=v9" CFLAGS="-xarch=v9" ./Configure
No error message

make gp
Stop after:
cc -xarch=v9 -o gp-dyn -fast gp.o gp_init.o gp_rl.o highlvl.o whatnow.o
plot.o plotport.o
-R/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9
-R/scratch/fmichel/gp64cc/lib -R/usr/openwin/lib
-L/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9
-L/usr/local/lib -lreadline -lncurses -L/scratch/fmichel/gp64cc/lib -lpari
-L/usr/openwin/lib -lX11 -lsocket -lnsl -ldl -lm
cc: Warning: -xarch=native has been explicitly specified, or implicitly
specified by a macro option, -xarch=native on this architecture implies
-xarch=v8plusb which generates code that does not run on pre UltraSPARC III
processors
Undefined                       first referenced
 symbol                             in file
subllx
/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9/libpari.so
subll
/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9/libpari.so
addmul
/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9/libpari.so
overflow
/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9/libpari.so
addll
/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9/libpari.so
hiremainder
/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9/libpari.so
mulll
/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9/libpari.so
addllx
/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9/libpari.so
ld: fatal: Symbol referencing errors. No output written to gp-dyn
*** Error code 1
make: Fatal error: Command failed for target `gp-dyn'
Current working directory
/dsk2/scratch/fmichel/parisource/pari-2.1.5/Osolaris-sparcv9
*** Error code 1
make: Fatal error: Command failed for target `gp'