[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Semi-OT: makedepend isn't aware of /usr/lib/gcc/$ARCH-redhat-linux/4.3.0/include/



Hello all,

I'm not sure if this is a bug or not, so I'm posting here before I open
up a BZ.

Here's a short test program:

$ cat test.c
#include <stdlib.h>
#include <stdio.h>


int main(int argc, char *argv[])
{
        printf("Hello world\n");
        return 0;
}

$ makedepend -f- test.c 
# DO NOT DELETE                                   
makedepend: warning:  test.c (reading /usr/include/stdlib.h, line 33): cannot find include file "stddef.h"                                                                                            
        not in /usr/include/stddef.h                                                                
makedepend: warning:  test.c (reading /usr/include/sys/types.h, line 147): cannot find include file "stddef.h"                                                                                          
        not in /usr/include/stddef.h                                                                
makedepend: warning:  test.c (reading /usr/include/alloca.h, line 25): cannot find include file "stddef.h"                                                                                              
        not in /usr/include/stddef.h                                                                
makedepend: warning:  test.c (reading /usr/include/stdio.h, line 34): cannot find include file "stddef.h"                                                                                               
        not in /usr/include/stddef.h                                                                
makedepend: warning:  test.c (reading /usr/include/_G_config.h, line 15): cannot find include file "stddef.h"
        not in /usr/include/stddef.h
makedepend: warning:  test.c (reading /usr/include/wchar.h, line 52): cannot find include file "stddef.h"
        not in /usr/include/stddef.h
makedepend: warning:  test.c (reading /usr/include/libio.h, line 53): cannot find include file "stdarg.h"
        not in /usr/include/stdarg.h

.. But once I add the missing include. (/usr/lib/gcc/xxx)

$ makedepend -f- test.c  -I/usr/lib/gcc/x86_64-redhat-linux/4.3.0/include/
# DO NOT DELETE
test.o: /usr/include/stdlib.h /usr/include/features.h
test.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
test.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h
test.o: /usr/lib/gcc/x86_64-redhat-linux/4.3.0/include/stddef.h
test.o: /usr/include/sys/types.h /usr/include/bits/types.h
test.o: /usr/include/bits/typesizes.h /usr/include/time.h
test.o: /usr/include/endian.h /usr/include/bits/endian.h
test.o: /usr/include/sys/select.h /usr/include/bits/select.h
test.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
test.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h
test.o: /usr/include/alloca.h /usr/include/stdio.h /usr/include/libio.h
test.o: /usr/include/_G_config.h /usr/include/wchar.h
test.o: /usr/lib/gcc/x86_64-redhat-linux/4.3.0/include/stdarg.h
test.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h

Shouldn't makedepend be aware of the hardware coded include
path /usr/lib/gcc/$ARCH-redhat-linux/xxx?

- Gilboa


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]