This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't compile gcc-3.3.2 - /home/mitchell... Permission denied


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]