[OpenAFS-devel] Cannot configure openafs-1.2.11 with gcc on sun4x_56

Kris Van Hees aedil-afs@alchar.org
Fri, 13 Feb 2004 08:59:50 -0500


As far as I know, there is still no support to compile OpenAFS with gcc on
Solaris.  I believe that it might be possible to generate kernel modules
compiled with gcc these days (though I have never managed to get it to work)
but at least the build system for OpenAFS does not have support for it.

Can someone confirm on whether gcc (and assorted tools) on Solaris are
capable of this these days, or whether kernel module compiles still need
the SUNWspro compiler?

	Kris

On Fri, Feb 13, 2004 at 11:34:14AM +0100, Martin MOKREJ? wrote:
> Hi,
>   I want to compile my own binaries (as there are no Soalris 5.6 binaries
> available), but the following problem:
> 
> # CFLAGS='-O3 -pipe -mcpu=ultrasparc -mtune=ultrasparc' CC=gcc ./configure --enable-bos-new-config --enable-namei-fileserver --enable-fast-restart --enable-bitmap-later --enable-full-vos-listvol-switch --enable-transarc-paths --prefix=/usr/afsws
> creating cache ./config.cache
> checking for a BSD compatible install... /usr/local/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for gcc... gcc
> checking whether the C compiler (gcc -O3 -pipe -mcpu=ultrasparc -mtune=ultrasparc ) works... yes
> checking whether the C compiler (gcc -O3 -pipe -mcpu=ultrasparc -mtune=ultrasparc ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking host system type... sparc-sun-solaris2.6
> checking for AIX... no
> checking for POSIXized ISC... no
> checking for minix/config.h... no
> checking for pid_t... yes
> checking for size_t... yes
> checking return type of signal handlers... void
> checking for a BSD compatible install... /usr/local/bin/install -c
> checking whether ln -s works... yes
> <cut>
> 
> The problem is that generated uses solaris cc for which we have no
> licence and it is actually missing!
> 
> $ make
> make build
> make[1]: Entering directory `/scratch/src/openafs-1.2.11'
> make finale DEST=/scratch/src/openafs-1.2.11/sun4x_56/dest COMPILE_PART2B=all DESTDIR=
> make[2]: Entering directory `/scratch/src/openafs-1.2.11'
> cd src; cd config ; make all
> make[3]: Entering directory `/scratch/src/openafs-1.2.11/src/config'
> rm -f Makefile.version
> if      [ -r SRC/../CML/state ] ; \
> then    /bin/cp Makefile.version-CML Makefile.version ; \
> else    /bin/cp Makefile.version-NOCML Makefile.version ; \
> fi
> make -f Makefile.version AFS_component_version_number.c
> make[4]: Entering directory `/scratch/src/openafs-1.2.11/src/config'
> make[4]: `AFS_component_version_number.c' is up to date.
> make[4]: Leaving directory `/scratch/src/openafs-1.2.11/src/config'
> /opt/SUNWspro/bin/cc -g -I/scratch/src/openafs-1.2.11/include -dy -Bdynamic   -c -o config.o config.c
> make[3]: /opt/SUNWspro/bin/cc: Command not found
> make[3]: *** [config.o] Error 127
> make[3]: Leaving directory `/scratch/src/openafs-1.2.11/src/config'
> <cut>
> 
> 
> -- 
> Martin Mokrejs <mmokrejs@natur.cuni.cz>
> PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel

-- 
Never underestimate a Mage with:
 - the Intelligence to cast Magic Missile,
 - the Constitution to survive the first hit, and
 - the Dexterity to run fast enough to avoid being hit a second time.