#7127: libgcrypt fails to build in 64-bit on Solaris SPARC with gcc
----------------------+-----------------------------------------------------
Reporter: drkirkby | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.3
Component: solaris | Keywords:
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
Building on
* Sun Blade 2000, Solaris 10 update 7
* gcc 4.4.1
* SAGE64 exported to 'yes'
* Sage 4.1.2.rc0, which includes
* libgcrypt-1.4.3, as update at #7045.
The build failed with the errors below.
{{{
-I/export/home/drkirkby/sage/gcc64-sage-4.1.2.rc0/local/include -O2 -m64
-g -Wall -MT mpih-add1-asm.lo -MD -MP -MF .deps/mpih-add1-asm.Tpo -c mpih-
add1-asm.S -fPIC -DPIC -o .libs/mpih-add1-asm.o
/usr/ccs/bin/as: "/var/tmp//ccySzxz6.s", line 31: error: detect global
register use not covered .register pseudo-op
/usr/ccs/bin/as: "/var/tmp//ccySzxz6.s", line 34: error: detect global
register use not covered .register pseudo-op
/usr/ccs/bin/as: "/var/tmp//ccySzxz6.s", line 45: error: detect global
register use not covered .register pseudo-op
/usr/ccs/bin/as: "/var/tmp//ccySzxz6.s", line 49: error: detect global
register use not covered .register pseudo-op
/usr/ccs/bin/as: "/var/tmp//ccySzxz6.s", line 205: error: detect global
register use not covered .register pseudo-op
/usr/ccs/bin/as: "/var/tmp//ccySzxz6.s", line 206: error: detect global
register use not covered .register pseudo-op
make[4]: *** [mpih-add1-asm.lo] Error 1
make[4]: Leaving directory
`/export/home/drkirkby/sage/gcc64-sage-4.1.2.rc0/spkg/build/libgcrypt-1.4.4/src/mpi'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/export/home/drkirkby/sage/gcc64-sage-4.1.2.rc0/spkg/build/libgcrypt-1.4.4/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/export/home/drkirkby/sage/gcc64-sage-4.1.2.rc0/spkg/build/libgcrypt-1.4.4/src'
failed to build libgcrypt
real 1m53.930s
user 0m36.852s
sys 1m1.741s
sage: An error occurred while installing libgcrypt-1.4.4
}}}
A Google found this page on the gnupg-users mailing list.
[http://www.mail-archive.com/[email protected]/msg09887.html gnupg
compilation problems on Solaris 10 64 bit]
Someone suggested the person having the problem should use:
{{{
./configure with --disable-asm
}}}
That fixed the problem for him.
So I changed the spkg-install so the assembly code was disabled on 64-bit
Solaris. However, whilst the above problem did not display (I think the
build got further this time), it did eventually fail with
{{{
ld: fatal: file /export/home/drkirkby/sage/gcc64-sage-4.1.2.rc0/local/lib
/libgpg-error.so: wrong ELF class: ELFCLASS32
}}}
It looks like some code is being built 32-bit, and other code 64-bit,
which is the usual cause of this ''wrong ELF class:'' message.
Hence there remains a bug to be fixed here.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7127>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---