This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [dave@hiauly1.hia.nrc.ca: Incorrect file name simplication]
- To: zackw at Stanford dot EDU (Zack Weinberg)
- Subject: Re: [dave@hiauly1.hia.nrc.ca: Incorrect file name simplication]
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 29 Mar 2001 17:48:19 -0500 (EST)
- Cc: neil at daikokuya dot demon dot co dot uk, gcc-bugs at gcc dot gnu dot org
> > What do you suggest we do here? It's a pathname-simplification-
> > doesn't-work-with-symlinks issue.
> ...
> > Looking at fix-header with gdb, it appears that the file
> > `/usr/include/sys/../h/types.h' gets simplied to `/usr/include/h/types.h'
> > which doesn't exist because `sys' is a symbolic link to `/sys/h'. This
> > causes open_file to fail.
>
> I'd like some more context. How do we get a silly path like that in
> the first place?
Seems to come from fixproto script:
+ test sys/types.h = NONE
+ test -f /xxx/gnu/gcc-3.0/objdir/gcc/include/sys/types.h -a -n ' include'
+ grep sys/types.h fixproto.list
+ true
+ rel_source_file=ansi_compat.h
+ abs_source_file=/usr/include/ansi_compat.h
+ abs_target_file=/xxx/gnu/gcc-3.0/objdir/gcc/include/ansi_compat.h
+ test ansi_compat.h = NONE
+ test -f /xxx/gnu/gcc-3.0/objdir/gcc/include/ansi_compat.h -a -n ' include'
+ grep ansi_compat.h fixproto.list
+ true
+ rel_source_file=strings.h
+ abs_source_file=/usr/include/strings.h
+ abs_target_file=/xxx/gnu/gcc-3.0/objdir/gcc/include/strings.h
+ test strings.h = NONE
+ test -f /xxx/gnu/gcc-3.0/objdir/gcc/include/strings.h -a -n ' include'
+ grep strings.h fixproto.list
+ true
+ rel_source_file=sys/../h/types.h
+ abs_source_file=/usr/include/sys/../h/types.h
+ abs_target_file=/xxx/gnu/gcc-3.0/objdir/gcc/include/sys/../h/types.h
+ test sys/../h/types.h = NONE
+ test -f /xxx/gnu/gcc-3.0/objdir/gcc/include/sys/../h/types.h -a -n ' include'
+ grep sys/../h/types.h fixproto.list
+ /xxx/gnu/gcc-3.0/objdir/gcc/fix-header sys/../h/types.h /usr/include/sys/../h/
types.h /xxx/gnu/gcc-3.0/objdir/gcc/include/sys/../h/types.h -D__STDC__=0 -D__cp
lusplus -I/xxx/gnu/gcc-3.0/objdir/gcc/include -I/usr/include
+ test 33 '!=' 0
+ exit 1
make[2]: *** [stmp-fixproto] Error 1
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)