Hello everyone, 

I just completed building OpenAFS 1.2.7 for sparc64 against the Aurora Linux 
distribution, which is based off of RedHat 7.3 i386.

There were a couple problems and I noticed some interesting behavior in the 
build system. 

Aurora uses, by default, gcc 2.96 which will not compile the kernel module so 
we must resort to using kgcc which is some egcs package. That's not a problem 
because the kernel was also compiled with that (linux-2.4.19sparc64).

Here's how I configured the system:

CC=kgcc ./configure --enable-redhat-buildsys  \
                    --enable-transarc-paths   \
                    --with-afs-sysname=sparc64_linux24

then to build the system:

CC=kgcc make

This is where it gets interesting. When the compilation gets to 
src/libafs/Makefile it ignores the CC= . Instead of using kgcc, the Makefile 
that is generated for libafs insists on using sparc64-linux-gcc which is the 
incorrect version (2.96). In order to complete the build:

1. Change BOTH CC= lines in src/libafs/Makefile to CC=kgcc
2. In src/libafs run make. If make is run in the top level directory, 
src/libafs/Makefile is regenerated with the incorrect compiler.
3. Once the kernel module is complete, run make in the top level directory

Here's another interesting point, it seems that further along in the build 
process, the CC= directive is again ignored! I watched code compile using 
'cc' which is not kgcc. 


I think that's everything.

Stephen Evanchik


_______________________________________________
OpenAFS-devel mailing list
[EMAIL PROTECTED]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to