Can't compile gcc-3.3.2 - /home/mitchell... Permission denied
Richard Earnshaw
rearnsha@gcc.gnu.org
Fri Aug 27 17:06:00 GMT 2004
On Fri, 2004-08-27 at 15:57, Paolo Bonzini wrote:
> > I'm trying to compile gcc v3.3.2 on Solaris 8 but when I run make I
> > continue to get:
> >
> > /home/mitchell/gcc-3.3.2/gcc-3.3.2/gcc/java/parse.y:49: config.h:
> > Permission denied
> > [...]
> > /home/mitchell/gcc-3.3.2/gcc-3.3.2/gcc/java/parse.y:16458: gtype-java.h:
> > Permission denied
> > make[1]: *** [java/parse.o] Error 1
> > make[1]: Leaving directory `/tmp/cjs/gcc-3.3.2/gcc'
> > make: *** [all-gcc] Error 2
> >
> > What gives? I assume this is connected to Mark Mitchell?
>
> These are the paths that are stored in the bison-generated parser: they
> are in #line directives, and refer to the absolute path on the machine
> where bison was run (Mark Mitchell's, since he's the release manager for
> 3.3.2).
>
> You have some permissions screwed up, it looks like. Did you start a
> build as root (umask 700), and are continuing it with another user?
>
> Paolo
Do you have a user on your system with that name (mitchell)? If so, is
their home directory non-readable? It sounds like the compiler is doing
an include file search and getting confused by the #line directives
(which change the search path order).
You can probably work around the problem by editing gcc/java/parse.y and
replacing all instances of '/home/mitchell' with '.'
R.
More information about the Gcc
mailing list