Compiling for sparcv8 and above

Aleksandar Milivojevic alex at milivojevic.org
Wed Jan 18 16:24:03 CET 2006


There's a small typo in mpi/config.links that prevents usage of 
optimized assembler code for v8 and later sparc processors (assembler 
code for v7 gets selected).  The config.links expects strings "sparc8" 
or "sparc9", while main configure accepts sparcv8 and sparcv9 (it bails 
out with error if passed --build=sparc8-sun-solaris2.9 (or sparc9)).  
There's some other "dead" CPU strings in config.links that are rejected 
by main configure (such as ultrasparc).

The attached patch fixes this.  However, it also exposes another bug.  
When links are setup to use sparc32v8 assembler routines, compilation 
fails with following error:

gcc  -g -O2 -Wall -Wno-pointer-sign   -o mpicalc  mpicalc.o 
../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a   
/opt/pbl/lib/libintl.so -lc -Wl,-rpath -Wl,/opt/pbl/lib
../mpi/libmpi.a(mpih-div.o): In function `mpihelp_mod_1':
../../mpi/mpih-div.c:186: undefined reference to `__udiv_qrnnd'
../../mpi/mpih-div.c:124: undefined reference to `__udiv_qrnnd'
../../mpi/mpih-div.c:87: undefined reference to `__udiv_qrnnd'
../mpi/libmpi.a(mpih-div.o): In function `mpihelp_divrem':
../../mpi/mpih-div.c:354: undefined reference to `__udiv_qrnnd'
../../mpi/mpih-div.c:238: undefined reference to `__udiv_qrnnd'
../mpi/libmpi.a(mpih-div.o):../../mpi/mpih-div.c:242: more undefined 
references to `__udiv_qrnnd' follow
collect2: ld returned 1 exit status


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.links.patch
Type: text/x-patch
Size: 763 bytes
Desc: not available
Url : /pipermail/attachments/20060118/c6410dd4/config.links.bin


More information about the Gnupg-users mailing list