Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-768

[gcc 4.3.0] error: no include path in which to search for limits.h

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: Build and Installation
    • Labels:
      None
    • Environment:

      gcc 4.3.0

    • Severity:
      Compiler Error

      Description

      Building the library (4.2.0 as well as the head of trunk) with gcc 4.3 fails with the following error (the same error appears earlier in the build process while generating dependencies for other translation units but is ignored):

      $ nice make BUILDTYPE=15D BUILDDIR=/build/sebor/stdcxx-gcc-4.3.0-15D
      ...
      gcc -c -I/home/sebor/stdcxx/include/ansi -D_RWSTDDEBUG   -pthread -I/home/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-4.3.0-15D/include  -pedantic -nostdinc++ -g   -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align  -fPIC  /home/sebor/stdcxx/src/codecvt.cpp
      In file included from /home/sebor/stdcxx/include/ansi/limits.h:109,
                       from /home/sebor/stdcxx/src/codecvt.cpp:47:
      /usr/include/../include/limits.h:125:26: error: no include path in which to search for limits.h
      In file included from /home/sebor/stdcxx/src/codecvt.cpp:61:
      /home/sebor/stdcxx/include/loc/_localedef.h: In function 'const char* __rw::__rw_utf8toucs4(int*, const char*, const char*)':
      /home/sebor/stdcxx/include/loc/_localedef.h:763: warning: suggest parentheses around arithmetic in operand of |
      /home/sebor/stdcxx/src/codecvt.cpp: In member function 'virtual std::codecvt_base::result std::codecvt<char, char, __mbstate_t>::do_out(__mbstate_t&, const char*, const char*, const char*&, char*, char*, char*&) const':
      /home/sebor/stdcxx/src/codecvt.cpp:127: warning: suggest parentheses around && within ||
      /home/sebor/stdcxx/src/codecvt.cpp:128: warning: suggest parentheses around && within ||
      /home/sebor/stdcxx/src/codecvt.cpp: In member function 'virtual std::codecvt_base::result std::codecvt<char, char, __mbstate_t>::do_in(__mbstate_t&, const char*, const char*, const char*&, char*, char*, char*&) const':
      /home/sebor/stdcxx/src/codecvt.cpp:183: warning: suggest parentheses around && within ||
      /home/sebor/stdcxx/src/codecvt.cpp:184: warning: suggest parentheses around && within ||
      /home/sebor/stdcxx/src/codecvt.cpp: In member function 'virtual std::codecvt_base::result std::codecvt<char, char, __mbstate_t>::do_unshift(__mbstate_t&, char*, char*, char*&) const':
      /home/sebor/stdcxx/src/codecvt.cpp:204: warning: suggest parentheses around && within ||
      /home/sebor/stdcxx/src/codecvt.cpp: In member function 'virtual int std::codecvt<char, char, __mbstate_t>::do_length(__mbstate_t&, const char*, const char*, long unsigned int) const':
      /home/sebor/stdcxx/src/codecvt.cpp:246: warning: suggest parentheses around && within ||
      make[2]: *** [codecvt.o] Error 1
      make[2]: Leaving directory `/build/sebor/stdcxx-gcc-4.3.0-15D/lib'
      make[1]: *** [lib] Error 2
      make[1]: Leaving directory `/build/sebor/stdcxx-gcc-4.3.0-15D'
      make: *** [libstd] Error 2
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sebor Martin Sebor
                Reporter:
                sebor Martin Sebor
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Time Spent - 1h Remaining Estimate - 3h
                  3h
                  Logged:
                  Time Spent - 1h Remaining Estimate - 3h
                  1h