[OpenAFS] building 1.2.2 with gcc on Solaris 8

Wangden wngdn@src.uchicago.edu
Thu, 18 Oct 2001 18:42:02 -0500


Hi all,

We're trying to build OpenAFS 1.2.2 on a Solaris 8 box (sparcv9, FWIW)
using gcc 3.0.1 and having some trouble.  It looks to me like no one
has done this before, because the paths are hard-coded to point to the
Sun Workshop compiler - configure can't even change them.

Getting the right paths and so on wasn't so hard, but we've run into
some trouble involving ar and sparcv9 code.  In
src/config/Makefile.sun4x_58.in, I tried fixing XCFLAGS64
(s/-xarch=v9/-mcpu=v9/) but ar complained.  I also tried putting the
-mcpu=v9 in XCFLAGS so that it would be used "everywhere" (haven't
checked to see how universally XCFLAGS is used), but got roughly the
same error, which is:

gcc -g -I/root/myz/openafs-1.2.2/include -Bdynamic -D __EXTENSIONS__ -mcpu=v9  -
c  config.c
/var/tmp/ccD9lIsV.s: Assembler messages:
/var/tmp/ccD9lIsV.s:365: Error: Architecture mismatch on "be".
/var/tmp/ccD9lIsV.s:365:  (Requires v9|v9a|v9b; requested architecture is sparcl
ite.)
/var/tmp/ccD9lIsV.s:393: Error: Architecture mismatch on "bne".
/var/tmp/ccD9lIsV.s:393:  (Requires v9|v9a|v9b; requested architecture is sparcl
ite.)
/var/tmp/ccD9lIsV.s:424: Error: Architecture mismatch on "bne".
/var/tmp/ccD9lIsV.s:424:  (Requires v9|v9a|v9b; requested architecture is sparcl
ite.)
/var/tmp/ccD9lIsV.s:467: Error: Architecture mismatch on "be".
/var/tmp/ccD9lIsV.s:467:  (Requires v9|v9a|v9b; requested architecture is sparcl
ite.)
*** Error code 1
make: Fatal error: Command failed for target `config.o'
Current working directory /path/to/openafs-1.2.2/src/config

I'm a little out of my depth on this one.  If anyone could help us
out, I'd be most grateful, and I'd be happy to provide patches to the
appropriate files to make this easier for others in the future.

Cheers,

Wangden