FYI: trouble buidling gcc 3.2.1 on solaris 8 with AFS

John Bartelt bartelt@SLAC.Stanford.EDU
Fri Dec 6 17:06:00 GMT 2002


This message if FYI.  I have worked around my problem, but if you have 
any helpful ideas about what went wrong, I would be interested in
hearing them.

Background:  I maintain GCC on AFS file servers.  We use AFS for most
of our filespace, including home directories.  In the past, I have
always built and installed GCC on AFS without any problem, for
solaris and linux.  This worked at least through GCC 3.0.4.

With GCC 3.2.1 (and 3.2), I had no problem doing this on linux
(RedHat 7.2, pentium 3).  But with solaris 7 or 8 (sparc), the
"make" failed, but quite a ways into the process.  I tried
different configure options, and different starting versions of
gcc (and libtool), but it always died at the same place (see below).

Finally, in desperation, I tried building on a local disk (/tmp),
with the same configure options (including --prefix=/afs/....).
To my surprise, this worked.  The 'make install' also worked fine.

So I'm, puzzled as to why the make in AFS failed. One thing that
occasionally trips up software installation is hard links, which
are possible only under restricted circumstances in AFS.  But I
don't see any evidence that is the problem.

Here is the configure command that I used:
/afs/slac/package/gcc/src/gcc-3.2.1/configure  --prefix=/afs/slac.stanford.edu/p
ackage/gcc/gcc-3.2/3.2.1/sun4x_58 --enable-shared --enable-version-specific-runt
ime-libs

I also tried specifying the src dir (same as where configure is), and
leaving off the --enable-* options, but the result was the same.

The make log has 7805 lines, and ends with:

 checking whether to build shared libraries... yes
 checking whether to build static libraries... yes
 creating libtool
 loading cache ../config.cache
 loading cache ../config.cache within ltconfig
 configure: error: libtool tag configuration failed
 make: *** [configure-target-boehm-gc] Error 1
 
(It is using its own xgcc and libtool.)

If you are actually interested in this, I can send the complete log of the
configure and/or make steps. 

John Bartelt

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
John Bartelt                             bartelt@SLAC.Stanford.edu
Stanford Linear Accelerator Center       650-926-4591
MS 97, P.O. Box 4349                     
Stanford, CA 94309                       office:  SCS room 380



More information about the Gcc mailing list