[LLVMbugs] [Bug 1396] NEW: llvm-gcc can't compile limits.h on Linux

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun May 6 09:28:14 PDT 2007


http://llvm.org/bugs/show_bug.cgi?id=1396

           Summary: llvm-gcc can't compile limits.h on Linux
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at reidspencer.com


I tried to run the nightly test but get this error:

/usr/include/limits.h:125:26: error: no include path in which to search for limits.h

from many sources. The limits.h code looks like:

 /* Get the compiler's limits.h, which defines almost all the ISO constants.

    We put this #include_next outside the double inclusion check because
    it should be possible to include this file more than once and still get
    the definitions from gcc's header.  */
#if defined __GNUC__ && !defined _GCC_LIMITS_H_
/* `_GCC_LIMITS_H_' is what GCC's file defines.  */
# include_next <limits.h>
#endif

The #include_next directive should find the compiler's limits.h which is in
llvm-gcc's install dir under lib/gcc/i686-pc-linux-gnu/4.0.1/include. Why it
doesn't find the file there, I don't know. 

Is something wrong with fix_includes?



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list