Fortran install problem

Brad Lucier lucier@math.purdue.edu
Tue Feb 12 19:42:00 GMT 2002


I've seen this problem before, but now it's causing me problems.

I have a sparc, on which my home directory is stored.

I have an alpha, which mounts my home directory from the sparc, and on which
I build gcc-3.1.  The lucier account on the alpha can change 
files/directories/... owned by lucier from the sparc.  So "make bootstrap"
works just fine.

Root on the alpha does *not* have root permissions on the sparc, so when I
try to "make install" as root on the alpha, from my home directory mounted
from the sparc, it fails with:

cd libI77; make CC='/home/c/lucier/programs/gcc/gcc-3.1/objdir-alphaev6/gcc/xgcc -B/home/c/lucier/programs/gcc/gcc-3.1/objdir-alphaev6/gcc/ -B/export/u10/gcc-3.1/alphaev6-unknown-linux-gnu/bin/ -B/export/u10/gcc-3.1/alphaev6-unknown-linux-gnu/lib/ -isystem /export/u10/gcc-3.1/alphaev6-unknown-linux-gnu/include' LIBTOOL='/bin/sh ./libtool' CFLAGS='-g -O2 -mieee' CPPFLAGS='' AR='ar' RANLIB='ranlib' prefix='/export/u10/gcc-3.1' exec_prefix='/export/u10/gcc-3.1' libdir='/export/u10/gcc-3.1/lib' libsubdir='/export/u10/gcc-3.1/lib/gcc-lib/alphaev6-unknown-linux-gnu/3.1' tooldir='/export/u10/gcc-3.1/alphaev6-unknown-linux-gnu' all
make[2]: Entering directory `/.amd_mnt/banach/export/u3/lucier/programs/gcc/gcc-3.1/objdir-alphaev6/alphaev6-unknown-linux-gnu/libf2c/libI77'
/bin/sh ../libtool --mode=compile /home/c/lucier/programs/gcc/gcc-3.1/objdir-alphaev6/gcc/xgcc -B/home/c/lucier/programs/gcc/gcc-3.1/objdir-alphaev6/gcc/ -B/export/u10/gcc-3.1/alphaev6-unknown-linux-gnu/bin/ -B/export/u10/gcc-3.1/alphaev6-unknown-linux-gnu/lib/ -isystem /export/u10/gcc-3.1/alphaev6-unknown-linux-gnu/include -c -I. -I../../../../libf2c/libI77 -I.. -I../../../../libf2c/libI77/..  -DHAVE_CONFIG_H -g -O2 -mieee ../../../../libf2c/libI77/Version.c -o VersionI.lo
rm: cannot unlink `VersionI.o': Permission denied
rm: cannot unlink `.libs/VersionI.o': Permission denied
rm: cannot unlink `VersionI.lo': Permission denied
rm: cannot unlink `VersionI.lo': Permission denied
../libtool: VersionI.loT: Permission denied
rm: cannot unlink `.libs/VersionI.o': Permission denied
/home/c/lucier/programs/gcc/gcc-3.1/objdir-alphaev6/gcc/xgcc -B/home/c/lucier/programs/gcc/gcc-3.1/objdir-alphaev6/gcc/ -B/export/u10/gcc-3.1/alphaev6-unknown-linux-gnu/bin/ -B/export/u10/gcc-3.1/alphaev6-unknown-linux-gnu/lib/ -isystem /export/u10/gcc-3.1/alphaev6-unknown-linux-gnu/include -c -I. -I../../../../libf2c/libI77 -I.. -I../../../../libf2c/libI77/.. -DHAVE_CONFIG_H -g -O2 -mieee ../../../../libf2c/libI77/Version.c  -fPIC -DPIC -o .libs/VersionI.o
Assembler messages:
FATAL: Can't create .libs/VersionI.o: Permission denied
make[2]: *** [VersionI.lo] Error 1
make[2]: Leaving directory `/.amd_mnt/banach/export/u3/lucier/programs/gcc/gcc-3.1/objdir-alphaev6/alphaev6-unknown-linux-gnu/libf2c/libI77'
make[1]: *** [i77] Error 2
make[1]: Leaving directory `/.amd_mnt/banach/export/u3/lucier/programs/gcc/gcc-3.1/objdir-alphaev6/alphaev6-unknown-linux-gnu/libf2c'
make: *** [install-target-libf2c] Error 2

So the makefile needs to be fixed so that it doesn't try to build any files
in the build directory when installing into the install directory.

Brad



More information about the Gcc mailing list