I know this topic had been discussed before, but I hope I am bringing some
insights into what exactly is happening, and a workaround (works for me ;) )
While trying to compile gnupg-1.4.7 on Sparc Solaris 10 using 64-bit gcc-3.4.6,
I run into these things:
- If I run plain `./configure', I get in the end: Version info: gnupg 1.4.7 Configured for: SunOS (sparc-sun-solaris2.10) Extra cpu specific functions: udiv
`make' fails as follows (in the mpi directory):
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -g -O2 -Wall -c _mpih-
add1.s
/usr/ccs/bin/as: "_mpih-add1.s", line 23: error: detect global register use not
covered .register pseudo-op
/usr/ccs/bin/as: "_mpih-add1.s", line 26: error: detect global register use not
covered .register pseudo-op
[SNIP]
- If I run `./configure --disable-asm', the error is exactly the same.
- If I run `./configure --disable-asm --host=sparcv9-sun-solaris2.10', I get Version info: gnupg 1.4.7 Configured for: SunOS (sparcv9-sun-solaris2.10)
(Note that there is no line with "Extra cpu specific functions..."
make' and make check' are both successful.
- I also tried `./configure --host=sparcv9-sun-solaris2.10' (without disabling
assembler). I get this:
Version info: gnupg 1.4.7 Configured for: SunOS (sparcv9-sun-solaris2.10) Extra cpu specific functions: udiv
`make' fails with the same error.
Conclusions:
- --disable-asm does not disable assembler everywhere - mpi still uses it.
- configure script fails to determine host type correctly and needs to be
forced using --host=sparcv9-sun-solaris2.10. Together with --disable-asm this
fixes compilation.
If you need more input, I can always reproduce the error, or run any tests.
Andy